优化修改提示文案

This commit is contained in:
wulin 2020-12-07 16:13:31 +08:00
parent 5787104f13
commit c333fc78a4

View File

@ -894,11 +894,11 @@ public class ResultRecordController extends AbstractController {
) { ) {
log.info("修改的对象为{}", resultDetail1); log.info("修改的对象为{}", resultDetail1);
if(resultDetail1.getIsDelete().intValue() == 1){ if(resultDetail1.getIsDelete().intValue() == 1){
commandValue += (commandIndex + "(删除) 指标" + resultDetail1.getTarget() + "\r\n"); commandValue += (commandIndex + "(删除) 指标" + resultDetail1.getTarget() + "\n");
commandIndex++; commandIndex++;
resultDetail1.setIsBack(1); resultDetail1.setIsBack(1);
}else if(resultDetail1.getIsBack().intValue() == 3){ }else if(resultDetail1.getIsBack().intValue() == 3){
commandValue += (commandIndex + "(新增) 指标" + resultDetail1.getTarget() + "\r\n"); commandValue += (commandIndex + "(新增) 指标" + resultDetail1.getTarget() + "\n");
commandIndex++; commandIndex++;
resultDetail1.setIsBack(0); resultDetail1.setIsBack(0);
}else{ }else{
@ -912,24 +912,24 @@ public class ResultRecordController extends AbstractController {
if(!resultDetail.getTarget().equals(resultDetail1.getTarget())){ if(!resultDetail.getTarget().equals(resultDetail1.getTarget())){
//打上标识 //打上标识
value += ("(修改) 名称:" + value += ("(修改) 名称:" +
resultDetail1.getTarget()+ " 为:" + resultDetail.getTarget() + "\r\n"); resultDetail1.getTarget()+ " \n()\n" + resultDetail.getTarget() + "\n");
isUp = true; isUp = true;
}else{ }else{
heard = "指标:" + resultDetail1.getTarget() + "\r\n"; heard = "指标:" + resultDetail1.getTarget() + "\n";
} }
if(!resultDetail.getKeyResult().equals(resultDetail1.getKeyResult())){ if(!resultDetail.getKeyResult().equals(resultDetail1.getKeyResult())){
//打上标识 //打上标识
value += ("(修改) 考核标准:" + value += ("(修改) 考核标准:" +
resultDetail1.getKeyResult() + " 为:" + resultDetail.getKeyResult() + "\r\n"); resultDetail1.getKeyResult() + "\n(为)\n" + resultDetail.getKeyResult() + "\n");
isUp = true; isUp = true;
} }
if(!resultDetail.getCheckWeight().equals(resultDetail1.getCheckWeight())){ if(!resultDetail.getCheckWeight().equals(resultDetail1.getCheckWeight())){
//打上标识 //打上标识
value += ("(修改) 权重:" + value += ("(修改) 权重:" +
resultDetail1.getCheckWeight().multiply(new BigDecimal(100)).intValue() + "% 为:" resultDetail1.getCheckWeight().multiply(new BigDecimal(100)).intValue() + "%\n(为)\n"
+ resultDetail.getCheckWeight().multiply(new BigDecimal(100)).intValue() + + resultDetail.getCheckWeight().multiply(new BigDecimal(100)).intValue() +
"%\r\n"); "%\n");
isUp = true; isUp = true;
} }
if(isUp){ if(isUp){