Browse Source

判断当月是否已经评估分

ops-management-platform-backend-dev
gjh 2 weeks ago
parent
commit
e851a11b45
  1. 6
      ruoyi-modules/guoyan-platform/src/main/java/org/dromara/platform/service/impl/EvaluationInfoServiceImpl.java

6
ruoyi-modules/guoyan-platform/src/main/java/org/dromara/platform/service/impl/EvaluationInfoServiceImpl.java

@ -212,7 +212,11 @@ public class EvaluationInfoServiceImpl implements IEvaluationInfoService {
LambdaQueryWrapper<EvaluationInfo> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(EvaluationInfo::getIoCompany, ioCompany);
queryWrapper.eq(EvaluationInfo::getCheckTime, checkTime);
return baseMapper.selectCount(queryWrapper) < 1;
Long size = baseMapper.selectCount(queryWrapper);
if (size >0){
throw new ServiceException("当前新增考核已存在,请重新选择考核时间");
}
return true;
}

Loading…
Cancel
Save