提交修改
This commit is contained in:
parent
367bdbbec5
commit
de76f1bb12
@ -468,7 +468,7 @@ public class ResultRecordController extends AbstractController {
|
|||||||
List<FlowChartDetailRecord> flowChartDetailRecords =
|
List<FlowChartDetailRecord> flowChartDetailRecords =
|
||||||
flowChartDetailRecordService.selectFlowChartDetailRecordsByFlowProcess(resultRecord.getEvaluationId(), ChartFlowType.SCORE.getCode());//获取参与评分的人
|
flowChartDetailRecordService.selectFlowChartDetailRecordsByFlowProcess(resultRecord.getEvaluationId(), ChartFlowType.SCORE.getCode());//获取参与评分的人
|
||||||
|
|
||||||
//List<FlowRecord> flowRecords = flowRecordService.selectFlowRecordByRecordIdFlowProcess(resultRecord.getId(), ChartFlowType.SCORE.getCode());
|
List<FlowRecord> flowRecords1 = flowRecordService.selectFlowRecordByRecordIdFlowProcess(resultRecord.getId(), ChartFlowType.SCORE.getCode());
|
||||||
List<StaffEntity> staffs = new ArrayList<>();
|
List<StaffEntity> staffs = new ArrayList<>();
|
||||||
Boolean isAllScore = true;//false表示返回所有的评分,true表示值返回评分了的人
|
Boolean isAllScore = true;//false表示返回所有的评分,true表示值返回评分了的人
|
||||||
Boolean isOrScore = false;//是否为或签
|
Boolean isOrScore = false;//是否为或签
|
||||||
@ -987,8 +987,8 @@ public class ResultRecordController extends AbstractController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resultRecordService.updateResultRecordById(resultRecord);
|
resultRecordService.updateResultRecordById(resultRecord);
|
||||||
|
String commentId = null;
|
||||||
if(dto.getCommentId() != null && dto.getCommentId().intValue() > 0){
|
if(dto.getSave() == null && editResultDetails.size() > 0){//非暂存
|
||||||
//修改评论信息
|
//修改评论信息
|
||||||
log.info("修改了多少个指标{}", editResultDetails.size());
|
log.info("修改了多少个指标{}", editResultDetails.size());
|
||||||
editResultDetails.addAll(resultDetailService.selectNotNoticeResultDetailByRecordId(dto.getId())) ;
|
editResultDetails.addAll(resultDetailService.selectNotNoticeResultDetailByRecordId(dto.getId())) ;
|
||||||
@ -1058,17 +1058,13 @@ public class ResultRecordController extends AbstractController {
|
|||||||
}
|
}
|
||||||
if(commandValue.length() > 0){
|
if(commandValue.length() > 0){
|
||||||
log.info("需要写入评论,具体呢容为{}", commandValue);
|
log.info("需要写入评论,具体呢容为{}", commandValue);
|
||||||
ResultComment resultComment = resultCommentService.selectResultCommentById(dto.getCommentId());
|
ResultComment resultComment = new ResultComment();//resultCommentService.selectResultCommentById(dto.getCommentId());
|
||||||
log.info("resultComment的值{}", resultComment);
|
log.info("resultComment的值{}", resultComment);
|
||||||
if(resultComment.getOptDesc().indexOf("制定了目标") >= 0){
|
resultComment.setOptDesc("修改了目标");
|
||||||
resultComment.setOptDesc("修改了目标");
|
resultComment.setComment(commandValue);
|
||||||
resultComment.setComment(commandValue);
|
|
||||||
}else{
|
|
||||||
resultComment.setOptDesc("修改了目标-" + resultComment.getOptDesc());
|
|
||||||
|
|
||||||
resultComment.setComment((resultComment.getComment() == null ? "" : (resultComment.getComment() + "\n")) + commandValue);
|
resultCommentService.insertResultComment(resultComment);//.updateResultCommentCommentById(dto.getCommentId(), commandValue);
|
||||||
}
|
commentId = resultComment.getId().toString();
|
||||||
resultCommentService.updateResultCommentById(resultComment);//.updateResultCommentCommentById(dto.getCommentId(), commandValue);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
@ -1084,7 +1080,7 @@ public class ResultRecordController extends AbstractController {
|
|||||||
resultDetailService.updateBatchById(editResultDetails);
|
resultDetailService.updateBatchById(editResultDetails);
|
||||||
}
|
}
|
||||||
|
|
||||||
return R.ok();
|
return R.ok().put("commentId", commentId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -101,6 +101,7 @@ public class ResultRecordDetailDto {
|
|||||||
@ApiModelProperty(value = "职位", name = "position")
|
@ApiModelProperty(value = "职位", name = "position")
|
||||||
private String position;
|
private String position;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user