之前的bug重新提交(T_T)~~~~
This commit is contained in:
+10
-14
@@ -78,16 +78,14 @@ public class SarStandardComplianceAssessResultController {
|
|||||||
if (eo.getPosition() == 1) {
|
if (eo.getPosition() == 1) {
|
||||||
QueryWrapper<SarInterpretationNationalStandard> queryWrapper = new QueryWrapper<>();
|
QueryWrapper<SarInterpretationNationalStandard> queryWrapper = new QueryWrapper<>();
|
||||||
IPage<SarInterpretationNationalStandard> iPage = new Page<>(eo.getCurrent(), eo.getSize());
|
IPage<SarInterpretationNationalStandard> iPage = new Page<>(eo.getCurrent(), eo.getSize());
|
||||||
queryWrapper.select("distinct STAND_ID, STAND_NUMBER, STAND_NAME, STAND_TYPE, INTERPRETATION_TIME,type");
|
queryWrapper.select("distinct STAND_ID, STAND_NUMBER, STAND_NAME, STAND_TYPE, INTERPRETATION_TIME");
|
||||||
if (eo.getStandName() != null && !eo.getStandName().trim().equals("")) {
|
if (eo.getStandName() != null && !eo.getStandName().trim().equals("")) {
|
||||||
queryWrapper.like("STAND_NAME", eo.getStandName().trim());
|
queryWrapper.like("STAND_NAME", eo.getStandName().trim());
|
||||||
}
|
}
|
||||||
if (eo.getStandNumber() != null && !eo.getStandNumber().trim().equals("")) {
|
if (eo.getStandNumber() != null && !eo.getStandNumber().trim().equals("")) {
|
||||||
queryWrapper.like("STAND_NUMBER", eo.getStandNumber().trim());
|
queryWrapper.like("STAND_NUMBER", eo.getStandNumber().trim());
|
||||||
}
|
}
|
||||||
// if (eo.getType() != null && !eo.getType().trim().equals("")) {
|
|
||||||
// queryWrapper.like("type",eo.getType().trim());
|
|
||||||
// }
|
|
||||||
IPage<SarInterpretationNationalStandard> page = iSarInterpretationNationalStandardService.page(iPage, queryWrapper);
|
IPage<SarInterpretationNationalStandard> page = iSarInterpretationNationalStandardService.page(iPage, queryWrapper);
|
||||||
|
|
||||||
while (page.getRecords().remove(null)) ;
|
while (page.getRecords().remove(null)) ;
|
||||||
@@ -96,24 +94,22 @@ public class SarStandardComplianceAssessResultController {
|
|||||||
} else {
|
} else {
|
||||||
QueryWrapper<SarInterpretationForeignStandard> queryWrapper = new QueryWrapper<>();
|
QueryWrapper<SarInterpretationForeignStandard> queryWrapper = new QueryWrapper<>();
|
||||||
IPage<SarInterpretationForeignStandard> iPage = new Page<>(eo.getCurrent(), eo.getSize());
|
IPage<SarInterpretationForeignStandard> iPage = new Page<>(eo.getCurrent(), eo.getSize());
|
||||||
queryWrapper.select("distinct STAND_ID, STAND_NUMBER, STAND_NAME, STAND_TYPE, INTERPRETATION_TIME,type");
|
queryWrapper.select("distinct STAND_ID, STAND_NUMBER, STAND_NAME, STAND_TYPE, INTERPRETATION_TIME");
|
||||||
if (eo.getStandName() != null && !eo.getStandName().trim().equals("")) {
|
if (eo.getStandName() != null && !eo.getStandName().trim().equals("")) {
|
||||||
queryWrapper.like("STAND_NAME", eo.getStandName().trim());
|
queryWrapper.like("STAND_NAME", eo.getStandName().trim());
|
||||||
}
|
}
|
||||||
if (eo.getStandNumber() != null && !eo.getStandNumber().trim().equals("")) {
|
if (eo.getStandNumber() != null && !eo.getStandNumber().trim().equals("")) {
|
||||||
queryWrapper.like("STAND_NUMBER", eo.getStandNumber().trim());
|
queryWrapper.like("STAND_NUMBER", eo.getStandNumber().trim());
|
||||||
}
|
}
|
||||||
// if (eo.getType() != null && !eo.getType().trim().equals("")) {
|
|
||||||
// queryWrapper.like("type",eo.getType().trim());
|
|
||||||
// }
|
|
||||||
IPage<SarInterpretationForeignStandard> page = iSarInterpretationForeignStandardService.page(iPage, queryWrapper);
|
IPage<SarInterpretationForeignStandard> page = iSarInterpretationForeignStandardService.page(iPage, queryWrapper);
|
||||||
while (page.getRecords().remove(null)) ;
|
while(page.getRecords().remove(null));
|
||||||
return Result.success(page);
|
return Result.success(page);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class InsertEntity<T> {
|
private static class InsertEntity<T>{
|
||||||
List<Map> entityList;
|
List<Map> entityList;
|
||||||
T eo;
|
T eo;
|
||||||
}
|
}
|
||||||
@@ -145,7 +141,7 @@ public class SarStandardComplianceAssessResultController {
|
|||||||
}
|
}
|
||||||
iSarInterpretationNationalStandardService.saveOrUpdateBatch(entityList);
|
iSarInterpretationNationalStandardService.saveOrUpdateBatch(entityList);
|
||||||
|
|
||||||
} else {
|
}else{
|
||||||
List<SarInterpretationForeignStandard> entityList = new ArrayList<>();
|
List<SarInterpretationForeignStandard> entityList = new ArrayList<>();
|
||||||
for (int i = 0; i < insertEntity.entityList.size(); i++) {
|
for (int i = 0; i < insertEntity.entityList.size(); i++) {
|
||||||
SarInterpretationForeignStandard obj = new SarInterpretationForeignStandard();
|
SarInterpretationForeignStandard obj = new SarInterpretationForeignStandard();
|
||||||
@@ -166,10 +162,10 @@ public class SarStandardComplianceAssessResultController {
|
|||||||
public ResponseMessage<IPage<SarStandardComplianceProductAssess>> selectProduct(SarStandardComplianceProductAssessEO eo) throws Exception {
|
public ResponseMessage<IPage<SarStandardComplianceProductAssess>> selectProduct(SarStandardComplianceProductAssessEO eo) throws Exception {
|
||||||
IPage<SarStandardComplianceProductAssess> iPage = new Page<>(eo.getCurrent(), eo.getSize());
|
IPage<SarStandardComplianceProductAssess> iPage = new Page<>(eo.getCurrent(), eo.getSize());
|
||||||
QueryWrapper<SarStandardComplianceProductAssess> queryWrapper = new QueryWrapper<>();
|
QueryWrapper<SarStandardComplianceProductAssess> queryWrapper = new QueryWrapper<>();
|
||||||
if (eo.getType() != null) queryWrapper.eq("type", eo.getType());
|
|
||||||
if (eo.getProductName() != null) queryWrapper.like("product_name", eo.getProductName());
|
if (eo.getProductName() != null) queryWrapper.like("product_name", eo.getProductName());
|
||||||
if (eo.getStandId() != null) queryWrapper.like("STAND_ID", eo.getStandId());
|
// if (eo.getStandId() != null) queryWrapper.like("STAND_ID", eo.getStandId());
|
||||||
if (eo.getInterpretationTime() != null) queryWrapper.eq("INTERPRETATION_TIME", eo.getInterpretationTime());
|
// if (eo.getInterpretationTime() != null) queryWrapper.eq("INTERPRETATION_TIME", eo.getInterpretationTime());
|
||||||
|
|
||||||
IPage<SarStandardComplianceProductAssess> page = iSarStandardComplianceProductAssessService.page(iPage, queryWrapper);
|
IPage<SarStandardComplianceProductAssess> page = iSarStandardComplianceProductAssessService.page(iPage, queryWrapper);
|
||||||
return Result.success(page);
|
return Result.success(page);
|
||||||
}
|
}
|
||||||
|
|||||||
+8
@@ -91,6 +91,10 @@ public class SarStandardComplianceProductAssess extends BaseEntity {
|
|||||||
@ApiModelProperty(value = "在产产品合规信息")
|
@ApiModelProperty(value = "在产产品合规信息")
|
||||||
private String productionCompliance;
|
private String productionCompliance;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "在产产品不合规信息")
|
||||||
|
@TableField("production_non_compliance")
|
||||||
|
private String productionNonCompliance;
|
||||||
|
|
||||||
@ApiModelProperty(value = "在产产品不合规应对措施")
|
@ApiModelProperty(value = "在产产品不合规应对措施")
|
||||||
private String productionCountermeasures;
|
private String productionCountermeasures;
|
||||||
|
|
||||||
@@ -113,6 +117,10 @@ public class SarStandardComplianceProductAssess extends BaseEntity {
|
|||||||
@TableField("clause_name")
|
@TableField("clause_name")
|
||||||
private String clauseName;
|
private String clauseName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "流程UUID")
|
||||||
|
@TableField("type")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user