fix
This commit is contained in:
parent
c0fdf12869
commit
d03e2d998f
@ -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);
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user