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
40bc33e5d9
@ -254,6 +254,7 @@ public class ResultRecordController extends AbstractController {
|
|||||||
list.add(resultDetailService.getWenHuaJiaZhiGuaResult2());
|
list.add(resultDetailService.getWenHuaJiaZhiGuaResult2());
|
||||||
list.add(resultDetailService.getLastResult(resultRecord.getLastScore()));
|
list.add(resultDetailService.getLastResult(resultRecord.getLastScore()));
|
||||||
List<ResultComment> comments = resultCommentService.selectByRecordId(resultRecord.getId());
|
List<ResultComment> comments = resultCommentService.selectByRecordId(resultRecord.getId());
|
||||||
|
|
||||||
if (CollectionUtils.isNotEmpty(comments)) {
|
if (CollectionUtils.isNotEmpty(comments)) {
|
||||||
ResultDetailResp header = new ResultDetailResp();
|
ResultDetailResp header = new ResultDetailResp();
|
||||||
header.setCheckRange("领导");
|
header.setCheckRange("领导");
|
||||||
@ -966,13 +967,10 @@ public class ResultRecordController extends AbstractController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除
|
* 删除
|
||||||
*/
|
*/
|
||||||
// 审批:http://localhost:8080/lz_management/user/lzresultrecord/new/approval?resultRecordId=267&status=1&comment=xxx&menuName=bbb
|
// 审批:http://localhost:8080/lz_management/user/lzresultrecord/new/approval?resultRecordId=215&status=1&comment=xxx&menuName=bbb
|
||||||
// 跳过:http://localhost:8080/lz_management/user/lzresultrecord/new/approval?resultRecordId=215&status=4&menuName=bbb&flowRecordId=360
|
// 跳过:http://localhost:8080/lz_management/user/lzresultrecord/new/approval?resultRecordId=215&status=4&menuName=bbb&flowRecordId=360
|
||||||
// 转交:http://localhost:8080/lz_management/user/lzresultrecord/new/approval?resultRecordId=215&status=8&menuName=bbb&flowRecordId=360&transferStaffId=294
|
// 转交:http://localhost:8080/lz_management/user/lzresultrecord/new/approval?resultRecordId=215&status=8&menuName=bbb&flowRecordId=360&transferStaffId=294
|
||||||
@RequestMapping("/new/approval")
|
@RequestMapping("/new/approval")
|
||||||
@ -990,7 +988,7 @@ public class ResultRecordController extends AbstractController {
|
|||||||
/**
|
/**
|
||||||
* 删除
|
* 删除
|
||||||
*/
|
*/
|
||||||
// http://localhost:8080/lz_management/user/lzresultrecord/new/resultRecordDetail?resultRecordId=322&loginUserId=313
|
// http://localhost:8080/lz_management/user/lzresultrecord/new/resultRecordDetail?resultRecordId=331&loginUserId=825
|
||||||
@RequestMapping("/new/resultRecordDetail")
|
@RequestMapping("/new/resultRecordDetail")
|
||||||
public R newResultRecordList(RecordDetailDto recordDetailDto) {
|
public R newResultRecordList(RecordDetailDto recordDetailDto) {
|
||||||
if(recordDetailDto.getLoginUserId() ==null && getUser() !=null ){
|
if(recordDetailDto.getLoginUserId() ==null && getUser() !=null ){
|
||||||
|
|||||||
@ -8,5 +8,6 @@ public class FlowDetailResp {
|
|||||||
private String staffName;
|
private String staffName;
|
||||||
private Long flowRecordId;
|
private Long flowRecordId;
|
||||||
private String departName;
|
private String departName;
|
||||||
|
private String avatar;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,6 +68,9 @@ public class FlowRecord implements java.io.Serializable {
|
|||||||
//flow_manager表中id
|
//flow_manager表中id
|
||||||
@ApiModelProperty(value = "flow_manager表中id", name = "processId")
|
@ApiModelProperty(value = "flow_manager表中id", name = "processId")
|
||||||
private Long processId;
|
private Long processId;
|
||||||
|
//当前是目标确认还是评分,0,目标制定,1,目标确认,2执行中,3,结果值录入,4,评分,5考核结束
|
||||||
|
@ApiModelProperty(value = "当前是目标确认还是评分,0,目标制定,1,目标确认,2执行中,3,结果值录入,4,评分,5考核结束", name = "flowProcess")
|
||||||
|
private Integer flowProcess;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
@ -323,6 +326,21 @@ public class FlowRecord implements java.io.Serializable {
|
|||||||
this.processId = processId;
|
this.processId = processId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 当前是目标确认还是评分,0,目标制定,1,目标确认,2执行中,3,结果值录入,4,评分,5考核结束
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Integer getFlowProcess() {
|
||||||
|
return flowProcess;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 当前是目标确认还是评分,0,目标制定,1,目标确认,2执行中,3,结果值录入,4,评分,5考核结束
|
||||||
|
* @param flowProcess
|
||||||
|
*/
|
||||||
|
public void setFlowProcess(Integer flowProcess) {
|
||||||
|
this.flowProcess = flowProcess;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "FlowRecord{" +
|
return "FlowRecord{" +
|
||||||
@ -343,6 +361,7 @@ public class FlowRecord implements java.io.Serializable {
|
|||||||
",statusName=" + statusName +
|
",statusName=" + statusName +
|
||||||
",type=" + type +
|
",type=" + type +
|
||||||
",processId=" + processId +
|
",processId=" + processId +
|
||||||
|
",flowProcess=" + flowProcess +
|
||||||
"}";
|
"}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,4 +1,5 @@
|
|||||||
package com.lz.modules.sys.entity.app;
|
package com.lz.modules.sys.entity.app;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
@ -6,6 +7,8 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* </p>*业绩评论表
|
* </p>*业绩评论表
|
||||||
@ -50,6 +53,10 @@ public class ResultComment implements java.io.Serializable {
|
|||||||
//操作名称
|
//操作名称
|
||||||
@ApiModelProperty(value = "操作名称", name = "optDesc")
|
@ApiModelProperty(value = "操作名称", name = "optDesc")
|
||||||
private String optDesc;
|
private String optDesc;
|
||||||
|
|
||||||
|
|
||||||
|
@TableField(exist=false)
|
||||||
|
private String avatar;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
|
|||||||
@ -3,7 +3,6 @@ package com.lz.modules.sys.service.app.impl;
|
|||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.dingtalk.api.response.OapiDepartmentListResponse;
|
|
||||||
import com.lz.common.emun.WorkMsgTypeEnum;
|
import com.lz.common.emun.WorkMsgTypeEnum;
|
||||||
import com.lz.common.exception.RRException;
|
import com.lz.common.exception.RRException;
|
||||||
import com.lz.common.utils.*;
|
import com.lz.common.utils.*;
|
||||||
@ -802,6 +801,7 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
|||||||
flowRecord.setFlowId(flowApprovalRole.getFlowId());
|
flowRecord.setFlowId(flowApprovalRole.getFlowId());
|
||||||
FlowChart flowChart = flowService.selectFlowChartByChartId(flowApprovalRole.getFlowId());
|
FlowChart flowChart = flowService.selectFlowChartByChartId(flowApprovalRole.getFlowId());
|
||||||
flowRecord.setProcessId(flowChart.getProcessId());
|
flowRecord.setProcessId(flowChart.getProcessId());
|
||||||
|
flowRecord.setFlowProcess(flowChart.getFlowProcess());
|
||||||
String staffRole = StaffRoles.getStaffRole(staffEntity.getId(), StringUtil.strToLongs(flowApprovalRole.getRoleId()));
|
String staffRole = StaffRoles.getStaffRole(staffEntity.getId(), StringUtil.strToLongs(flowApprovalRole.getRoleId()));
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
flowRecord.setStatus(FlowRecordStatusEnums.CURRENT_FLOW_STATUS.getStatus());
|
flowRecord.setStatus(FlowRecordStatusEnums.CURRENT_FLOW_STATUS.getStatus());
|
||||||
@ -986,6 +986,7 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
|||||||
}
|
}
|
||||||
FlowChart currentFlowChart = flowService.selectFlowChartByChartId(currentFlowRecord.getFlowId());
|
FlowChart currentFlowChart = flowService.selectFlowChartByChartId(currentFlowRecord.getFlowId());
|
||||||
resultRecord.setFlowProcess(currentFlowChart.getFlowProcess());
|
resultRecord.setFlowProcess(currentFlowChart.getFlowProcess());
|
||||||
|
|
||||||
resultRecord.setFlowStaffIdRole(nextFlowRecords.size() == 1 ? currentFlowRecord.getFlowStaffIdRole() : null);
|
resultRecord.setFlowStaffIdRole(nextFlowRecords.size() == 1 ? currentFlowRecord.getFlowStaffIdRole() : null);
|
||||||
resultRecord.setCurrentApprovalStaffId(nextFlowRecords.size() == 1 ? currentFlowRecord.getApprovalStaffId() : null);
|
resultRecord.setCurrentApprovalStaffId(nextFlowRecords.size() == 1 ? currentFlowRecord.getApprovalStaffId() : null);
|
||||||
resultRecord.setCurrentApprovalStaffName(nextFlowRecords.size() == 1 ? currentFlowRecord.getApprovalStaffName() : null);
|
resultRecord.setCurrentApprovalStaffName(nextFlowRecords.size() == 1 ? currentFlowRecord.getApprovalStaffName() : null);
|
||||||
@ -1107,17 +1108,30 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
|||||||
|
|
||||||
List<FlowDetailResp> flowDetailRespList = new ArrayList<>();
|
List<FlowDetailResp> flowDetailRespList = new ArrayList<>();
|
||||||
mySetFlowDetailRespList(flowDetailRespList,flowRecord);
|
mySetFlowDetailRespList(flowDetailRespList,flowRecord);
|
||||||
|
|
||||||
resp.setFlowDetailRespList(flowDetailRespList);
|
resp.setFlowDetailRespList(flowDetailRespList);
|
||||||
flowRecordList.add(resp);
|
flowRecordList.add(resp);
|
||||||
flowIndex = flowRecord.getFlowIndex();
|
flowIndex = flowRecord.getFlowIndex();
|
||||||
}
|
}
|
||||||
|
boolean flag = true;
|
||||||
|
for(FlowRecordResp flowRecordResp : flowRecordList) {
|
||||||
|
if (flowRecordResp.getStatus() == 0) {
|
||||||
|
flag = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
FlowRecordResp end = new FlowRecordResp();
|
FlowRecordResp end = new FlowRecordResp();
|
||||||
end.setFlowName("结束");
|
end.setFlowName("结束");
|
||||||
|
end.setStatus(flag ? 1 : 0);
|
||||||
flowRecordList.add(end);
|
flowRecordList.add(end);
|
||||||
List<ResultComment> resultCommentList = resultCommentService.selectByRecordId(recordDetailDto.getResultRecordId());
|
List<ResultComment> resultCommentList = resultCommentService.selectByRecordId(recordDetailDto.getResultRecordId());
|
||||||
|
for(ResultComment resultComment:resultCommentList){
|
||||||
|
StaffEntity staffEntity = staffService.selectStaffById(resultComment.getStaffId());
|
||||||
|
resultComment.setAvatar(staffEntity.getAvatar());
|
||||||
|
}
|
||||||
|
|
||||||
Map<String,Integer> auth = new HashMap<>();
|
Map<String,Integer> auth = new HashMap<>();
|
||||||
|
auth.put("showScore",1);
|
||||||
|
auth.put("showResult",1);
|
||||||
List<FlowRecord> currentResultRecords = flowRecordService.selectFlowRecordByRecordIdStatus(recordDetailDto.getResultRecordId(),2);
|
List<FlowRecord> currentResultRecords = flowRecordService.selectFlowRecordByRecordIdStatus(recordDetailDto.getResultRecordId(),2);
|
||||||
if(currentResultRecords !=null && currentResultRecords.size() > 0 ){
|
if(currentResultRecords !=null && currentResultRecords.size() > 0 ){
|
||||||
FlowRecord currentResultRecord = null;
|
FlowRecord currentResultRecord = null;
|
||||||
@ -1159,7 +1173,9 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
|||||||
flowDetailResp.setCurrentStaffId(flowRecord.getApprovalStaffId());
|
flowDetailResp.setCurrentStaffId(flowRecord.getApprovalStaffId());
|
||||||
flowDetailResp.setStaffName(flowRecord.getApprovalStaffName());
|
flowDetailResp.setStaffName(flowRecord.getApprovalStaffName());
|
||||||
flowDetailResp.setFlowRecordId(flowRecord.getId());
|
flowDetailResp.setFlowRecordId(flowRecord.getId());
|
||||||
|
StaffEntity staffEntity = staffService.selectStaffById(flowRecord.getApprovalStaffId());
|
||||||
DepartmentsStaffRelateEntity departmentsStaffRelateEntity = departmentsStaffRelateService.selectLastDepartmentByStaffId(flowRecord.getApprovalStaffId());
|
DepartmentsStaffRelateEntity departmentsStaffRelateEntity = departmentsStaffRelateService.selectLastDepartmentByStaffId(flowRecord.getApprovalStaffId());
|
||||||
|
flowDetailResp.setAvatar(staffEntity.getAvatar());
|
||||||
if(departmentsStaffRelateEntity !=null){
|
if(departmentsStaffRelateEntity !=null){
|
||||||
DepartmentsEntity departmentsEntity = departmentsDao.selectByDepartmentId(departmentsStaffRelateEntity.getDepartmentId());
|
DepartmentsEntity departmentsEntity = departmentsDao.selectByDepartmentId(departmentsStaffRelateEntity.getDepartmentId());
|
||||||
flowDetailResp.setDepartName(departmentsEntity.getDepartmentName());
|
flowDetailResp.setDepartName(departmentsEntity.getDepartmentName());
|
||||||
|
|||||||
@ -102,7 +102,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<select id="selectByRecordId" resultType="com.lz.modules.sys.entity.app.ResultComment">
|
<select id="selectByRecordId" resultType="com.lz.modules.sys.entity.app.ResultComment">
|
||||||
select * from lz_result_comment where record_id=#{recordId} and is_delete = 0
|
select * from lz_result_comment where record_id=#{recordId} and is_delete = 0 order by id desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectLastComment" resultType="com.lz.modules.sys.entity.app.ResultComment">
|
<select id="selectLastComment" resultType="com.lz.modules.sys.entity.app.ResultComment">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user