This commit is contained in:
杜建超 2020-11-02 10:34:20 +08:00
parent c920b25a89
commit 1781c3fdcb
3 changed files with 14 additions and 6 deletions

View File

@ -186,14 +186,21 @@ public class AssessManagerServiceImpl implements AssessManagerService {
staffs.retainAll(change);
List<Long> collect = staffs.stream().map(s -> Long.valueOf(s)).collect(toList());
collect.removeAll(longs);
groupStaffs.setStaffIds(collect);
groupS.add(groupStaffs);
if(CollectionUtils.isNotEmpty(collect)){
groupStaffs.setStaffIds(collect);
groupS.add(groupStaffs);
}
}
StartGroups startGroups = new StartGroups();
startGroups.setStartId(req.getStartId());
startGroups.setGroups(groupS);
flowStartService.startStaffs(startGroups);
try {
flowStartService.startStaffs(startGroups);
} catch (Exception e) {
log.error("调用初始化失败");
return R.error("初始化失败");
}
return R.ok();

View File

@ -451,7 +451,8 @@
<update id="batchDeleteByStartIdAndStaffId">
update lz_result_record set is_delete = 1 where
update lz_result_record set is_delete = 1,gmt_modified = now()
where
is_delete = 0
and start_id = #{startId}
and staff_id in (

View File

@ -143,7 +143,7 @@
lz_evaluation_start_staff
set
score = 1,
,gmt_modified = now()
gmt_modified = now()
where is_delete = 0 and score = 0 and type = 0
and evaluation_id = #{evaluationId} and start_id = #{startId}
</update>
@ -154,7 +154,7 @@
lz_evaluation_start_staff
set
is_delete = 1,
,gmt_modified = now()
gmt_modified = now()
where is_delete = 0 and type = 0
and start_id = #{startId}
and staff_id in (