考核培训状态
This commit is contained in:
@@ -77,11 +77,8 @@ public class EmployeeTrainingDAO {
|
||||
}
|
||||
|
||||
public Integer unCompleteNum(Long shopId) {
|
||||
List<Integer> statusList = new ArrayList<>();
|
||||
statusList.add(0);
|
||||
statusList.add(1);
|
||||
Example example = new Example(EmployeeTrainingDO.class);
|
||||
example.createCriteria().andIn("assessmentStatus", statusList).andEqualTo("shopId", shopId);
|
||||
example.createCriteria().andEqualTo("shopId", shopId).andCondition("theoreticalExamStatus != 1").andCondition("practical_exam_status != 1", 1);
|
||||
return employeeTrainingMapper.selectCountByExample(example);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -649,10 +649,10 @@ public class EmployeeTrainingServiceImpl implements EmployeeTrainingService {
|
||||
}
|
||||
|
||||
|
||||
if (employeeTrainingDO.getPracticalExamStatus() == CommonConstants.TWO || employeeTrainingDO.getTheoreticalExamStatus() == CommonConstants.TWO) {
|
||||
if (employeeTrainingDO.getPracticalExamStatus() == CommonConstants.TWO) {
|
||||
employeeTrainingDO.setAssessmentStatus(CommonConstants.THREE);
|
||||
}
|
||||
if (employeeTrainingDO.getPracticalExamStatus() == 1 && employeeTrainingDO.getTheoreticalExamStatus() == 1) {
|
||||
if (employeeTrainingDO.getPracticalExamStatus() == 1) {
|
||||
employeeTrainingDO.setAssessmentStatus(CommonConstants.TWO);
|
||||
}
|
||||
employeeTrainingDAO.updateByPrimaryKeySelective(employeeTrainingDO);
|
||||
|
||||
Reference in New Issue
Block a user