|
@@ -381,7 +381,7 @@ public class AnnualInspectionController {
|
|
|
@Verifier(fields = {"id", "selfcheckDate", "selfcheckReportImg"})
|
|
|
public RestResponse selfcheck(@Ver @RequestBody InspectionRequest request) {
|
|
|
AnnualInspection entity = annualInspectionService.getById(request.getId());
|
|
|
- Verify.notNull(entity);
|
|
|
+ Verify.notNull(entity, "年检记录不存在,请核查");
|
|
|
|
|
|
entity.setSelfcheckDate(request.getSelfcheckDate());
|
|
|
entity.setSelfcheckReportImg(request.getSelfcheckReportImg());
|
|
@@ -402,7 +402,7 @@ public class AnnualInspectionController {
|
|
|
@Verifier(fields = {"id", "checkDate", "checkResultImg"})
|
|
|
public RestResponse check(@Ver @RequestBody InspectionRequest request) {
|
|
|
AnnualInspection entity = annualInspectionService.getById(request.getId());
|
|
|
- Verify.notNull(entity);
|
|
|
+ Verify.notNull(entity, "年检记录不存在,请核查");
|
|
|
|
|
|
entity.setCheckDate(request.getCheckDate());
|
|
|
entity.setCheckResultImg(request.getCheckResultImg());
|
|
@@ -423,7 +423,7 @@ public class AnnualInspectionController {
|
|
|
@Verifier(fields = {"id", "certificateImgUrl", "annualInspectionImg"})
|
|
|
public RestResponse finish(@Ver @RequestBody InspectionRequest request) {
|
|
|
AnnualInspection entity = annualInspectionService.getById(request.getId());
|
|
|
- Verify.notNull(entity);
|
|
|
+ Verify.notNull(entity, "年检记录不存在,请核查");
|
|
|
|
|
|
entity.setCertificateImgUrl(request.getCertificateImgUrl());
|
|
|
entity.setAnnualInspectionImg(request.getAnnualInspectionImg());
|
|
@@ -440,7 +440,7 @@ public class AnnualInspectionController {
|
|
|
log.info("headerAlias: {}", headerAlias);
|
|
|
//查询数据
|
|
|
List<InspectionResponse> inspections = annualInspectionService.listByIdList(request);
|
|
|
- Verify.notNull(inspections);
|
|
|
+ Verify.notNull(inspections, "年检记录不存在,请核查");
|
|
|
|
|
|
//压缩文件夹
|
|
|
File baseDir = null;
|