修改再制定目标是可能的提示修改指标
This commit is contained in:
parent
c333fc78a4
commit
c029461eee
@ -882,6 +882,7 @@ public class ResultRecordController extends AbstractController {
|
|||||||
//去重
|
//去重
|
||||||
mapDetails = updateResultDetails.stream().collect(Collectors.toMap(ResultDetail::getId, Function.identity(), (e, r) -> e));
|
mapDetails = updateResultDetails.stream().collect(Collectors.toMap(ResultDetail::getId, Function.identity(), (e, r) -> e));
|
||||||
updateResultDetails = mapDetails.values().stream().collect(Collectors.toList());
|
updateResultDetails = mapDetails.values().stream().collect(Collectors.toList());
|
||||||
|
if(!isSetKeyResult){
|
||||||
log.info("实际需要写入评论的内容条数{}", updateResultDetails.size());
|
log.info("实际需要写入评论的内容条数{}", updateResultDetails.size());
|
||||||
if(updateResultDetails.size() > 0){
|
if(updateResultDetails.size() > 0){
|
||||||
updates.addAll(inserts);
|
updates.addAll(inserts);
|
||||||
@ -943,12 +944,21 @@ public class ResultRecordController extends AbstractController {
|
|||||||
}
|
}
|
||||||
if(commandValue.length() > 0){
|
if(commandValue.length() > 0){
|
||||||
log.info("需要写入评论,具体呢容为{}", commandValue);
|
log.info("需要写入评论,具体呢容为{}", commandValue);
|
||||||
resultDetailService.updateBatchById(updateResultDetails);
|
|
||||||
resultCommentService.updateResultCommentCommentById(dto.getCommentId(), commandValue);
|
resultCommentService.updateResultCommentCommentById(dto.getCommentId(), commandValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
for (ResultDetail resultDetail1:updateResultDetails
|
||||||
|
) {
|
||||||
|
if(resultDetail1.getIsBack().intValue() == 3){
|
||||||
|
resultDetail1.setIsBack(0);
|
||||||
|
}else{
|
||||||
|
resultDetail1.setIsBack(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
resultDetailService.updateBatchById(updateResultDetails);
|
||||||
}
|
}
|
||||||
|
|
||||||
return R.ok();
|
return R.ok();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user