| | |
| | | import com.gkhy.exam.common.utils.SecurityUtils; |
| | | import com.gkhy.exam.system.domain.FactorContent; |
| | | import com.gkhy.exam.system.domain.FactorControl; |
| | | import com.gkhy.exam.system.domain.FactorDiscern; |
| | | import com.gkhy.exam.system.mapper.FactorContentMapper; |
| | | import com.gkhy.exam.system.mapper.FactorControlMapper; |
| | | import com.gkhy.exam.system.mapper.FactorDiscernMapper; |
| | | import com.gkhy.exam.system.service.FactorControlService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public CommonResult deletedFactorControl(Integer factorControlId) { |
| | | public CommonResult deletedFactorControl(Integer factorControlId,Integer factorDiscrenId) { |
| | | FactorControl factorControl = new FactorControl(); |
| | | factorControl.setId(factorControlId); |
| | | factorControl.setUpdateTime(LocalDateTime.now()); |
| | | factorControl.setUpdateBy(SecurityUtils.getUsername()); |
| | | factorControl.setDelFlag(2); |
| | | factorControlMapper.updateById(factorControl); |
| | | factorContentMapper.updateByFactorId(factorDiscrenId); |
| | | return CommonResult.success(); |
| | | } |
| | | } |