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
2281baa016
@ -13,4 +13,5 @@ public class ApprovalDto {
|
||||
private Long flowRecordId;// 流程 id
|
||||
private int resetFlag;
|
||||
private int clearFlag;//0 全清,1 还是保留指标
|
||||
private Long commentId;
|
||||
}
|
||||
|
||||
@ -143,6 +143,7 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
||||
@Autowired
|
||||
private ResultScoreService resultScoreService;
|
||||
|
||||
|
||||
@Override
|
||||
public ResultRecord selectResultRecordById(Long id) {
|
||||
return resultRecordMapper.selectResultRecordById(id);
|
||||
@ -1067,12 +1068,24 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
|
||||
StaffEntity staffEntity = staffService.selectStaffById(approvalDto.getLoginUserId());
|
||||
if (staffEntity != null) {
|
||||
ResultComment resultComment = new ResultComment();
|
||||
resultComment.setComment(approvalDto.getComment());
|
||||
if(approvalDto.getCommentId() !=null && approvalDto.getCommentId() > 0 ){
|
||||
log.info("更新前评论commentId=" + approvalDto.getCommentId());
|
||||
resultComment = resultCommentService.selectResultCommentById(approvalDto.getCommentId());
|
||||
}
|
||||
String comment = StringUtil.isNotBlank(resultComment.getComment()) ? resultComment.getComment() + "_" : "";
|
||||
String optDesc = StringUtil.isNotBlank(resultComment.getOptDesc()) ? resultComment.getOptDesc() + "_" : "";
|
||||
resultComment.setComment(comment + approvalDto.getComment());
|
||||
resultComment.setStaffName(staffEntity.getName());
|
||||
resultComment.setStaffId(staffEntity.getId());
|
||||
resultComment.setRecordId(approvalDto.getResultRecordId());
|
||||
resultComment.setOptDesc(approvalDto.getMenuName() + flowChart.getName());
|
||||
resultCommentService.insertResultComment(resultComment);
|
||||
resultComment.setOptDesc(optDesc + approvalDto.getMenuName() + flowChart.getName());
|
||||
if (approvalDto.getCommentId() !=null && approvalDto.getCommentId() > 0 ){
|
||||
resultCommentService.updateResultCommentById(resultComment);
|
||||
log.info("更新后评论commentId=" + resultComment.getId());
|
||||
}else{
|
||||
resultCommentService.insertResultComment(resultComment);
|
||||
log.info("插入后评论commentId=" + resultComment.getId());
|
||||
}
|
||||
return resultComment.getId();
|
||||
}
|
||||
return 0l;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user