feat 修改标准合规评估结果接口
This commit is contained in:
+27
-6
@@ -61,7 +61,11 @@ public class SarStandardComplianceAssessResultController {
|
||||
if (eo.getStandNumber() != null && !eo.getStandNumber().trim().equals("")) {
|
||||
queryWrapper.like("STAND_NUMBER",eo.getStandNumber().trim());
|
||||
}
|
||||
return Result.success(iSarStandardComplianceProductAssessService.page(iPage,queryWrapper));
|
||||
IPage<SarStandardComplianceProductAssess> page = iSarStandardComplianceProductAssessService.page(iPage, queryWrapper);
|
||||
|
||||
while(page.getRecords().remove(null));
|
||||
|
||||
return Result.success(page);
|
||||
}else {
|
||||
if(eo.getPosition()==1){
|
||||
QueryWrapper<SarInterpretationNationalStandard> queryWrapper = new QueryWrapper<>();
|
||||
@@ -73,7 +77,10 @@ public class SarStandardComplianceAssessResultController {
|
||||
if (eo.getStandNumber() != null && !eo.getStandNumber().trim().equals("")) {
|
||||
queryWrapper.like("STAND_NUMBER",eo.getStandNumber().trim());
|
||||
}
|
||||
return Result.success(iSarInterpretationNationalStandardService.page(iPage,queryWrapper));
|
||||
IPage<SarInterpretationNationalStandard> page = iSarInterpretationNationalStandardService.page(iPage, queryWrapper);
|
||||
while(page.getRecords().remove(null));
|
||||
|
||||
return Result.success(page);
|
||||
}else{
|
||||
QueryWrapper<SarInterpretationForeignStandard> queryWrapper = new QueryWrapper<>();
|
||||
IPage<SarInterpretationForeignStandard> iPage = new Page<>(eo.getCurrent(), eo.getSize());
|
||||
@@ -84,7 +91,10 @@ public class SarStandardComplianceAssessResultController {
|
||||
if (eo.getStandNumber() != null && !eo.getStandNumber().trim().equals("")) {
|
||||
queryWrapper.like("STAND_NUMBER",eo.getStandNumber().trim());
|
||||
}
|
||||
return Result.success(iSarInterpretationForeignStandardService.page(iPage,queryWrapper));
|
||||
|
||||
IPage<SarInterpretationForeignStandard> page = iSarInterpretationForeignStandardService.page(iPage, queryWrapper);
|
||||
while(page.getRecords().remove(null));
|
||||
return Result.success(page);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -96,7 +106,12 @@ public class SarStandardComplianceAssessResultController {
|
||||
if (eo.getProductName() != null) queryWrapper.like("product_name", eo.getProductName());
|
||||
if (eo.getStandId() != null) queryWrapper.like("STAND_ID", eo.getStandId());
|
||||
if (eo.getInterpretationTime() != null) queryWrapper.eq("INTERPRETATION_TIME", eo.getInterpretationTime());
|
||||
return Result.success(iSarStandardComplianceProductAssessService.page(iPage, queryWrapper));
|
||||
|
||||
IPage<SarStandardComplianceProductAssess> page = iSarStandardComplianceProductAssessService.page(iPage, queryWrapper);
|
||||
|
||||
while(page.getRecords().remove(null));
|
||||
|
||||
return Result.success(page);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "条件查询技术审核符合性清单")
|
||||
@@ -107,13 +122,19 @@ public class SarStandardComplianceAssessResultController {
|
||||
QueryWrapper<SarInterpretationNationalStandard> queryWrapper = new QueryWrapper<>();
|
||||
if (eo.getInterpretationTime() != null) queryWrapper.eq("INTERPRETATION_TIME", eo.getInterpretationTime());
|
||||
if(eo.getStandId()!=null)queryWrapper.eq("STAND_ID",eo.getStandId());
|
||||
return Result.success(iSarInterpretationNationalStandardService.page(iPage, queryWrapper));
|
||||
|
||||
IPage<SarInterpretationNationalStandard> page = iSarInterpretationNationalStandardService.page(iPage, queryWrapper);
|
||||
while(page.getRecords().remove(null));
|
||||
return Result.success(page);
|
||||
} else {
|
||||
IPage<SarInterpretationForeignStandard> iPage = new Page<>(eo.getCurrent(), eo.getSize());
|
||||
QueryWrapper<SarInterpretationForeignStandard> queryWrapper = new QueryWrapper<>();
|
||||
if (eo.getInterpretationTime() != null) queryWrapper.eq("INTERPRETATION_TIME", eo.getInterpretationTime());
|
||||
if(eo.getStandId()!=null)queryWrapper.eq("STAND_ID",eo.getStandId());
|
||||
return Result.success(iSarInterpretationForeignStandardService.page(iPage, queryWrapper));
|
||||
IPage<SarInterpretationForeignStandard> page = iSarInterpretationForeignStandardService.page(iPage, queryWrapper);
|
||||
while(page.getRecords().remove(null));
|
||||
|
||||
return Result.success(page);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user