This commit is contained in:
杜建超 2020-10-28 18:02:53 +08:00
parent 5c46cd4a52
commit 72c50b6272
2 changed files with 7 additions and 4 deletions

View File

@ -121,9 +121,12 @@ public class EvaluationGroupServiceImpl extends ServiceImpl<EvaluationGroupMappe
) { ) {
List<String> ids = evaluationGroupService.selectAllStaffIdsByGroupId(group.getId()); List<String> ids = evaluationGroupService.selectAllStaffIdsByGroupId(group.getId());
group.setCounts(ids.size()); group.setCounts(ids.size());
int i = evaluationStartStaffMapper.existByStartIdAndEvaluationId(req.getStartId(),group.getId()); //是否通知评分
if(i>0){ if(req.getStartId()!=null){
group.setScore(1); int i = evaluationStartStaffMapper.existByStartIdAndEvaluationId(req.getStartId(),group.getId());
if(i>0){
group.setScore(1);
}
} }
} }
return pageUtils; return pageUtils;

View File

@ -128,7 +128,7 @@
<select id="existByStartIdAndEvaluationId" resultType="Integer"> <select id="existByStartIdAndEvaluationId" resultType="Integer">
select count(1) from lz_evaluation_start_staff where is_delete = 0 and evaluation_id=#{evaluationId} select count(1) from lz_evaluation_start_staff where is_delete = 0 and evaluation_id=#{evaluationId}
AND staff_id =#{staffId} and score = 1 limit 1 AND start_id =#{startId} and score = 1 limit 1
</select> </select>
</mapper> </mapper>