This commit is contained in:
bianyadong
2024-05-25 19:37:36 +08:00
parent ce11c59f15
commit d6ed19b60d
2 changed files with 2 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ public class EmployeeTrainingDAO {
public Integer unCompleteNum(Long shopId) { public Integer unCompleteNum(Long shopId) {
Example example = new Example(EmployeeTrainingDO.class); Example example = new Example(EmployeeTrainingDO.class);
example.createCriteria().andEqualTo("shopId", shopId).andCondition("theoretical_exam_status != 1").andCondition("practical_exam_status != 1"); example.createCriteria().andEqualTo("shopId", shopId).andCondition("(theoretical_exam_status != 1 or practical_exam_status != 1)");
return employeeTrainingMapper.selectCountByExample(example); return employeeTrainingMapper.selectCountByExample(example);
} }
} }

View File

@@ -658,7 +658,7 @@ public class EmployeeTrainingServiceImpl implements EmployeeTrainingService {
employeeTrainingDAO.updateByPrimaryKeySelective(employeeTrainingDO); employeeTrainingDAO.updateByPrimaryKeySelective(employeeTrainingDO);
//查询员工是否全部培训完成 //查询员工是否全部培训完成
Integer unCompleteNum = employeeTrainingDAO.unCompleteNum(tempUserDetailDO.getShopId()); Integer unCompleteNum = employeeTrainingDAO.unCompleteNum(employeeTrainingDO.getShopId());
if (unCompleteNum != null && unCompleteNum == 0) { if (unCompleteNum != null && unCompleteNum == 0) {
// 培训全部结束 // 培训全部结束