标准合规评估流程 项目评估结果后台查询bug~~~~
This commit is contained in:
+16
-3
@@ -59,13 +59,16 @@ public class SarStandardComplianceAssessResultController {
|
|||||||
if (eo.getStandApplicationType() == 1) {
|
if (eo.getStandApplicationType() == 1) {
|
||||||
QueryWrapper<SarStandardComplianceProductAssess> queryWrapper = new QueryWrapper<>();
|
QueryWrapper<SarStandardComplianceProductAssess> queryWrapper = new QueryWrapper<>();
|
||||||
IPage<SarStandardComplianceProductAssess> iPage = new Page<>(eo.getCurrent(), eo.getSize());
|
IPage<SarStandardComplianceProductAssess> iPage = new Page<>(eo.getCurrent(), eo.getSize());
|
||||||
queryWrapper.select("distinct STAND_ID, STAND_NUMBER, STAND_NAME, STAND_TYPE, INTERPRETATION_TIME");
|
queryWrapper.select("distinct STAND_ID, STAND_NUMBER, STAND_NAME, STAND_TYPE, INTERPRETATION_TIME,type");
|
||||||
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<SarStandardComplianceProductAssess> page = iSarStandardComplianceProductAssessService.page(iPage, queryWrapper);
|
IPage<SarStandardComplianceProductAssess> page = iSarStandardComplianceProductAssessService.page(iPage, queryWrapper);
|
||||||
|
|
||||||
while(page.getRecords().remove(null));
|
while(page.getRecords().remove(null));
|
||||||
@@ -75,13 +78,16 @@ 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");
|
queryWrapper.select("distinct STAND_ID, STAND_NUMBER, STAND_NAME, STAND_TYPE, INTERPRETATION_TIME,type");
|
||||||
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));
|
||||||
@@ -90,13 +96,16 @@ 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");
|
queryWrapper.select("distinct STAND_ID, STAND_NUMBER, STAND_NAME, STAND_TYPE, INTERPRETATION_TIME,type");
|
||||||
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));
|
||||||
@@ -158,9 +167,13 @@ 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<>();
|
||||||
|
// queryWrapper.select("*");
|
||||||
|
|
||||||
|
if (eo.getType() !=null) queryWrapper.like("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());
|
||||||
|
// queryWrapper.last("WHERE type = " + eo.getType());
|
||||||
|
|
||||||
IPage<SarStandardComplianceProductAssess> page = iSarStandardComplianceProductAssessService.page(iPage, queryWrapper);
|
IPage<SarStandardComplianceProductAssess> page = iSarStandardComplianceProductAssessService.page(iPage, queryWrapper);
|
||||||
|
|
||||||
|
|||||||
+4
@@ -117,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;
|
||||||
|
|
||||||
|
|||||||
+4
@@ -18,6 +18,10 @@ public class SarStandardComplianceProductAssessEO{
|
|||||||
@TableField("STAND_ID")
|
@TableField("STAND_ID")
|
||||||
private String standId;
|
private String standId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "流程UUID")
|
||||||
|
@TableField("type")
|
||||||
|
private String type;
|
||||||
|
|
||||||
@ApiModelProperty(value = "'项目名称'")
|
@ApiModelProperty(value = "'项目名称'")
|
||||||
private String productName;
|
private String productName;
|
||||||
|
|
||||||
|
|||||||
+3
@@ -25,6 +25,9 @@ public class SarStandardsInfoEO {
|
|||||||
@ApiModelProperty(value = "国内1,国外2")
|
@ApiModelProperty(value = "国内1,国外2")
|
||||||
private Integer position=1;
|
private Integer position=1;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "流程UUID")
|
||||||
|
@TableField("type")
|
||||||
|
private String type;
|
||||||
|
|
||||||
@ApiModelProperty("页数")
|
@ApiModelProperty("页数")
|
||||||
private Integer current=1;
|
private Integer current=1;
|
||||||
|
|||||||
Reference in New Issue
Block a user