一致评估

This commit is contained in:
CD
2022-09-28 10:29:48 +08:00
parent e5a6df0110
commit c3929f9e30
3 changed files with 31 additions and 0 deletions
@@ -86,6 +86,19 @@ public class SarFileCompareItemCommentController extends JeroController<SarFileC
return Result.OK("添加成功!");
}
/**
* 一致评估
* @param sarFileCompareItemComment
* @return
*/
@AutoLog(value = "一致评估")
@ApiOperation(value = "一致评估", notes = "一致评估")
@PostMapping(value = "/consensusAssessment")
public Result<?> consensusAssessment(@Validated @RequestBody SarFileCompareItemComment sarFileCompareItemComment) {
sarFileCompareItemCommentService.consensusAssessment(sarFileCompareItemComment);
return Result.OK("添加成功!");
}
/**
* 编辑
*
@@ -68,4 +68,6 @@ public interface ISarFileCompareItemCommentService extends IService<SarFileCompa
SarFileCompareResultVO queryCompareResult(String infoId);
void exportResXls(HttpServletRequest request,HttpServletResponse response, String infoId, String selectIds, boolean includeComments, String cut);
void consensusAssessment(SarFileCompareItemComment sarFileCompareItemComment);
}
@@ -344,4 +344,20 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
}
}
/**
* 一致评估
* @param sarFileCompareItemComment
*/
@Override
public void consensusAssessment(SarFileCompareItemComment sarFileCompareItemComment) {
Date now = new Date();
sarFileCompareItemComment.setCreateTime(now);
sarFileCompareItemComment.setUpdateTime(now);
sarFileCompareItemComment.setComment("一致");
save(sarFileCompareItemComment);
SarFileCompareItemServiceImpl.updateReviewedById(sarFileCompareItemComment.getItemsIdLeft());
SarFileCompareItemServiceImpl.updateReviewedById(sarFileCompareItemComment.getItemsIdRight());
}
}