Merge branch 'version_performance_2.0' of http://gitlab.ldxinyong.com/enterpriseManagement/lz_management into version_performance_2.0
This commit is contained in:
commit
eaa4fa541c
@ -43,7 +43,7 @@ public interface EvaluationGroupMapper extends BaseMapper<EvaluationGroup> {
|
|||||||
|
|
||||||
EvaluationGroup selectEvaluationGroupByName(@Param("name") String name);
|
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);
|
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);
|
List<StaffSimpleInfo> selectAllStaffSimpleInfoByGroupId(EvaluationGroup evaluationGroup);
|
||||||
|
|
||||||
void deleteByCopyIds(List<Long> ids);
|
void deleteByCopyIds(List<Long> ids,Long startId);
|
||||||
|
|
||||||
R checkStaff(CheckStaffReq checkStaffReq);
|
R checkStaff(CheckStaffReq checkStaffReq);
|
||||||
|
|
||||||
|
|||||||
@ -311,8 +311,8 @@ public class EvaluationGroupServiceImpl extends ServiceImpl<EvaluationGroupMappe
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void deleteByCopyIds(List<Long> ids) {
|
public void deleteByCopyIds(List<Long> ids,Long startId) {
|
||||||
evaluationGroupMapper.deleteByCopyIds(ids);
|
evaluationGroupMapper.deleteByCopyIds(ids,startId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -14,9 +14,9 @@ public class TaskListDto {
|
|||||||
|
|
||||||
private Long recordId;
|
private Long recordId;
|
||||||
|
|
||||||
private Long staffId;
|
private Long recordStaffId;
|
||||||
|
|
||||||
private Long currentApprovalStaffId;
|
private Long approvalStaffId;
|
||||||
|
|
||||||
private Long startId;
|
private Long startId;
|
||||||
|
|
||||||
|
|||||||
@ -174,7 +174,7 @@ public class AssessManagerServiceImpl implements AssessManagerService {
|
|||||||
List<String> ids = Arrays.asList(split);
|
List<String> ids = Arrays.asList(split);
|
||||||
List<Long> collect = ids.stream().map(s -> Long.valueOf(s)).collect(toList());
|
List<Long> collect = ids.stream().map(s -> Long.valueOf(s)).collect(toList());
|
||||||
//删除副本组
|
//删除副本组
|
||||||
evaluationGroupService.deleteByCopyIds(collect);
|
evaluationGroupService.deleteByCopyIds(collect,flowStart.getId());
|
||||||
}
|
}
|
||||||
resultRecordMapper.batchDeleteByStartId(flowStart.getId());
|
resultRecordMapper.batchDeleteByStartId(flowStart.getId());
|
||||||
return ;
|
return ;
|
||||||
@ -260,6 +260,7 @@ public class AssessManagerServiceImpl implements AssessManagerService {
|
|||||||
StartGroups startGroups = new StartGroups();
|
StartGroups startGroups = new StartGroups();
|
||||||
startGroups.setStartId(req.getStartId());
|
startGroups.setStartId(req.getStartId());
|
||||||
startGroups.setGroups(groupS);
|
startGroups.setGroups(groupS);
|
||||||
|
log.info("添加人员初始化请求:" + JSON.toJSONString(startGroups));
|
||||||
R r = flowStartService.startStaffs(startGroups);
|
R r = flowStartService.startStaffs(startGroups);
|
||||||
log.info("添加人员初始化返回:" + JSON.toJSONString(r));
|
log.info("添加人员初始化返回:" + JSON.toJSONString(r));
|
||||||
return r;
|
return r;
|
||||||
|
|||||||
@ -68,10 +68,10 @@ public class AssessServiceImpl implements AssessService {
|
|||||||
List<TaskListDto> dtos = pageUtils.getList();
|
List<TaskListDto> dtos = pageUtils.getList();
|
||||||
dtos.stream().forEach(taskListDto -> {
|
dtos.stream().forEach(taskListDto -> {
|
||||||
TaskListRes res = new TaskListRes();
|
TaskListRes res = new TaskListRes();
|
||||||
StaffEntity staffEntity = staffService.selectStaffById(taskListDto.getStaffId());
|
StaffEntity staffEntity = staffService.selectStaffById(taskListDto.getRecordStaffId());
|
||||||
res.setAvatar(Optional.ofNullable(staffEntity.getAvatar()).orElse(StringUtil.EMPTY));
|
res.setAvatar(Optional.ofNullable(staffEntity.getAvatar()).orElse(StringUtil.EMPTY));
|
||||||
String name = staffEntity.getName();
|
String name = staffEntity.getName();
|
||||||
if(taskListDto.getStaffId().equals(taskListDto.getCurrentApprovalStaffId())){
|
if(taskListDto.getRecordStaffId().equals(taskListDto.getApprovalStaffId())){
|
||||||
name = "您";
|
name = "您";
|
||||||
}
|
}
|
||||||
FlowStart start = flowStartService.selectFlowStartById(taskListDto.getStartId());
|
FlowStart start = flowStartService.selectFlowStartById(taskListDto.getStartId());
|
||||||
|
|||||||
@ -141,6 +141,7 @@
|
|||||||
|
|
||||||
<update id="deleteByCopyIds">
|
<update id="deleteByCopyIds">
|
||||||
update lz_evaluation_group set is_delete = 1 where is_delete=0
|
update lz_evaluation_group set is_delete = 1 where is_delete=0
|
||||||
|
and start_id = #{startId}
|
||||||
and copy_id in (
|
and copy_id in (
|
||||||
<foreach collection="ids" item="id" separator=",">
|
<foreach collection="ids" item="id" separator=",">
|
||||||
#{id}
|
#{id}
|
||||||
|
|||||||
@ -186,7 +186,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectTodoTasksByApprovalStaffId" resultType="com.lz.modules.performance.dto.TaskListDto">
|
<select id="selectTodoTasksByApprovalStaffId" resultType="com.lz.modules.performance.dto.TaskListDto">
|
||||||
SELECT DISTINCT(record_id),f.flow_process,f.flow_name,current_approval_staff_id,staff_id,start_id,r.gmt_modified,f.type from lz_flow_record f
|
SELECT DISTINCT(record_id),f.flow_process,f.flow_name,f.approval_staff_id,f.record_staff_id,start_id,r.gmt_modified,f.type from lz_flow_record f
|
||||||
LEFT JOIN lz_result_record r
|
LEFT JOIN lz_result_record r
|
||||||
ON f.record_id = r.id
|
ON f.record_id = r.id
|
||||||
where f.is_delete=0 and r.is_delete=0
|
where f.is_delete=0 and r.is_delete=0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user