Merge branch 'version_performance_2.0' of http://gitlab.ldxinyong.com/enterpriseManagement/lz_management into version_performance_2.0

This commit is contained in:
杜建超 2020-12-18 14:02:07 +08:00
commit 72ad2910be
2 changed files with 11 additions and 15 deletions

View File

@ -1,6 +1,7 @@
package com.lz.common.aspect;
import com.alibaba.fastjson.JSON;
import com.lz.common.exception.RRException;
import com.lz.common.utils.OrderUtil;
import com.lz.common.utils.R;
import com.lz.common.utils.ServletUtils;
@ -111,8 +112,13 @@ public class LogAspect {
result = point.proceed();
return result;
} catch (Exception e) {
if(e instanceof RRException){
result = R.error(((RRException) e).getMsg());
}else{
result = R.error();
}
logger.error("controller error.", e);
result = R.error();
} finally {
if(cm.toString().toLowerCase().contains("captcha")){
logger.info(StringUtil.appendStrs(

View File

@ -826,20 +826,10 @@ public class ResultRecordController extends AbstractController {
boolean isSetKeyResult = false;
List<FlowRecord> flowRecords = flowRecordService.selectFlowRecordByRecordIdStatus(dto.getId(), 2);
if(flowRecords.size() > 0){
if(dto.getSave() != null && dto.getSave().intValue() ==1){
if(flowRecords.get(0).getFlowProcess().intValue() < 1){//因为先提交流程在保存所以这里写了小于2
//指定目标中
log.info("暂存制定目标中");
isSetKeyResult = true;
}
}else{
if(flowRecords.get(0).getFlowProcess().intValue() < 2){//因为先提交流程在保存所以这里写了小于2
//指定目标中
log.info("制定目标中");
isSetKeyResult = true;
}
if(flowRecords.get(0).getFlowProcess().intValue() < 1){
log.info("制定目标中");
isSetKeyResult = true;
}
}
@ -992,7 +982,7 @@ public class ResultRecordController extends AbstractController {
resultRecordService.updateResultRecordById(resultRecord);
String commentId = null;
if(dto.getSave() == null && editResultDetails.size() > 0){//非暂存
if(dto.getSave() == null){//非暂存
//修改评论信息
log.info("修改了多少个指标{}", editResultDetails.size());
editResultDetails.addAll(resultDetailService.selectNotNoticeResultDetailByRecordId(dto.getId())) ;