加字段并修改技术评估查询
This commit is contained in:
+2
-2
@@ -76,14 +76,14 @@ public class SarStandardComplianceAssessResultController {
|
||||
if (eo.getPosition() == 1) {
|
||||
QueryWrapper<SarInterpretationNationalStandard> queryWrapper = new QueryWrapper<>();
|
||||
IPage<SarInterpretationNationalStandard> iPage = new Page<>(eo.getCurrent(), eo.getSize());
|
||||
queryWrapper.select("distinct STAND_ID, STAND_NUMBER, STAND_NAME, STAND_TYPE, INTERPRETATION_TIME,risk_degree");
|
||||
queryWrapper.select("distinct STAND_ID, STAND_NUMBER, STAND_NAME, STAND_TYPE, min(INTERPRETATION_TIME) as INTERPRETATION_TIME,risk_degree,prc_num");
|
||||
if (eo.getStandName() != null && !eo.getStandName().trim().equals("")) {
|
||||
queryWrapper.like("STAND_NAME", eo.getStandName().trim());
|
||||
}
|
||||
if (eo.getStandNumber() != null && !eo.getStandNumber().trim().equals("")) {
|
||||
queryWrapper.like("STAND_NUMBER", eo.getStandNumber().trim());
|
||||
}
|
||||
|
||||
queryWrapper.groupBy("STAND_ID, STAND_NUMBER, STAND_NAME, STAND_TYPE,risk_degree,prc_num");
|
||||
IPage<SarInterpretationNationalStandard> page = iSarInterpretationNationalStandardService.page(iPage, queryWrapper);
|
||||
|
||||
while (page.getRecords().remove(null)) ;
|
||||
|
||||
+3
@@ -39,6 +39,9 @@ public class InterpretationEO {
|
||||
@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date interpretationTime;
|
||||
|
||||
@ApiModelProperty(value = "流程编号")
|
||||
private String prcNum;
|
||||
|
||||
@ApiModelProperty(value = "国内(1)/外(2)")
|
||||
private Integer position=1;
|
||||
|
||||
|
||||
+3
@@ -98,6 +98,9 @@ public class SarInterpretationNationalStandard extends BaseEntity {
|
||||
@TableField("risk_degree")
|
||||
private String riskDegree;
|
||||
|
||||
@ApiModelProperty(value = "流程编号")
|
||||
private String prcNum;
|
||||
|
||||
|
||||
@TableField(exist = false)
|
||||
private String applyArctic;
|
||||
|
||||
+6
@@ -76,6 +76,9 @@
|
||||
<if test="specificItem!=null and specificItem!=''">
|
||||
AND sins.specific_item like concat(concat('%',#{specificItem}),'%')
|
||||
</if>
|
||||
<if test="prcNum!=null and prcNum!=''">
|
||||
AND sins.prc_num like concat(concat('%',#{prcNum}),'%')
|
||||
</if>
|
||||
ORDER BY sins.STAND_ID, sins.specific_item
|
||||
|
||||
) c ORDER BY c.STAND_ID, CONVERT(SUBSTRING(c.specific_item,1,(SELECT LOCATE('.',CONCAT(c.specific_item,'.')))),SIGNED) ,rows
|
||||
@@ -100,6 +103,9 @@
|
||||
<if test="standName!=null and standName!=''">
|
||||
AND STAND_NAME like concat(concat('%',#{standName}),'%')
|
||||
</if>
|
||||
<if test="prcNum!=null and prcNum!=''">
|
||||
AND prc_num like concat(concat('%',#{prcNum}),'%')
|
||||
</if>
|
||||
<if test="specificItem!=null and specificItem!=''">
|
||||
AND specific_item like concat(concat('%',#{specificItem}),'%')
|
||||
</if>
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE sar_interpretation_national_standard
|
||||
ADD COLUMN `prc_num` varchar(255) NULL COMMENT '流程编号' AFTER `risk_degree`;
|
||||
Reference in New Issue
Block a user