This commit is contained in:
杜建超 2020-11-13 11:25:13 +08:00
parent c0fdf12869
commit d03e2d998f
5 changed files with 7 additions and 5 deletions

View File

@ -43,7 +43,7 @@ public interface EvaluationGroupMapper extends BaseMapper<EvaluationGroup> {
EvaluationGroup selectEvaluationGroupByName(@Param("name") String name);
void deleteByCopyIds(@Param("ids") List<Long> ids);
void deleteByCopyIds(@Param("ids") List<Long> ids,@Param("startId")Long startId);
List<Long> selectIdsByCopyIds(@Param("copyIds")String copyIds,@Param("startId")Long startId);

View File

@ -52,7 +52,7 @@ public interface EvaluationGroupService extends IService<EvaluationGroup> {
//获取考核组里面所有参与的人员信息去除重复去除离职
List<StaffSimpleInfo> selectAllStaffSimpleInfoByGroupId(EvaluationGroup evaluationGroup);
void deleteByCopyIds(List<Long> ids);
void deleteByCopyIds(List<Long> ids,Long startId);
R checkStaff(CheckStaffReq checkStaffReq);

View File

@ -311,8 +311,8 @@ public class EvaluationGroupServiceImpl extends ServiceImpl<EvaluationGroupMappe
@Override
public void deleteByCopyIds(List<Long> ids) {
evaluationGroupMapper.deleteByCopyIds(ids);
public void deleteByCopyIds(List<Long> ids,Long startId) {
evaluationGroupMapper.deleteByCopyIds(ids,startId);
}

View File

@ -174,7 +174,7 @@ public class AssessManagerServiceImpl implements AssessManagerService {
List<String> ids = Arrays.asList(split);
List<Long> collect = ids.stream().map(s -> Long.valueOf(s)).collect(toList());
//删除副本组
evaluationGroupService.deleteByCopyIds(collect);
evaluationGroupService.deleteByCopyIds(collect,flowStart.getId());
}
resultRecordMapper.batchDeleteByStartId(flowStart.getId());
return ;
@ -260,6 +260,7 @@ public class AssessManagerServiceImpl implements AssessManagerService {
StartGroups startGroups = new StartGroups();
startGroups.setStartId(req.getStartId());
startGroups.setGroups(groupS);
log.info("添加人员初始化请求:" + JSON.toJSONString(startGroups));
R r = flowStartService.startStaffs(startGroups);
log.info("添加人员初始化返回:" + JSON.toJSONString(r));
return r;

View File

@ -141,6 +141,7 @@
<update id="deleteByCopyIds">
update lz_evaluation_group set is_delete = 1 where is_delete=0
and start_id = #{startId}
and copy_id in (
<foreach collection="ids" item="id" separator=",">
#{id}