一致评估
This commit is contained in:
+13
@@ -86,6 +86,19 @@ public class SarFileCompareItemCommentController extends JeroController<SarFileC
|
|||||||
return Result.OK("添加成功!");
|
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("添加成功!");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
*
|
*
|
||||||
|
|||||||
+2
@@ -68,4 +68,6 @@ public interface ISarFileCompareItemCommentService extends IService<SarFileCompa
|
|||||||
SarFileCompareResultVO queryCompareResult(String infoId);
|
SarFileCompareResultVO queryCompareResult(String infoId);
|
||||||
|
|
||||||
void exportResXls(HttpServletRequest request,HttpServletResponse response, String infoId, String selectIds, boolean includeComments, String cut);
|
void exportResXls(HttpServletRequest request,HttpServletResponse response, String infoId, String selectIds, boolean includeComments, String cut);
|
||||||
|
|
||||||
|
void consensusAssessment(SarFileCompareItemComment sarFileCompareItemComment);
|
||||||
}
|
}
|
||||||
|
|||||||
+16
@@ -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());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user