Commit 4b5c0ece authored by suhuiguang's avatar suhuiguang

1.增加是否有是否存在不符合项

parent 8b96819b
...@@ -201,4 +201,11 @@ public class JyjcInspectionResult extends BaseEntity { ...@@ -201,4 +201,11 @@ public class JyjcInspectionResult extends BaseEntity {
*/ */
@TableField(value = "supervisory_code") @TableField(value = "supervisory_code")
private String supervisoryCode; private String supervisoryCode;
/**
* 是否存在不符合项
*/
@TableField(value = "is_exist_nc")
private Boolean isExistNc;
} }
package com.yeejoin.amos.boot.module.jyjc.api.model; package com.yeejoin.amos.boot.module.jyjc.api.model;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
...@@ -9,7 +8,6 @@ import lombok.EqualsAndHashCode; ...@@ -9,7 +8,6 @@ import lombok.EqualsAndHashCode;
import org.typroject.tyboot.core.rdbms.model.BaseModel; import org.typroject.tyboot.core.rdbms.model.BaseModel;
import java.util.Date; import java.util.Date;
import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
...@@ -129,7 +127,7 @@ public class JyjcInspectionResultModel extends BaseModel { ...@@ -129,7 +127,7 @@ public class JyjcInspectionResultModel extends BaseModel {
private String useUnitCreditCode; private String useUnitCreditCode;
@ApiModelProperty(value = "检验结果技术参数") @ApiModelProperty(value = "检验结果技术参数")
private Map<String,Object> resultParamModelMap; private Map<String, Object> resultParamModelMap;
@ApiModelProperty(value = "附件类型(特种设备检验报告:1,监检证书:2)") @ApiModelProperty(value = "附件类型(特种设备检验报告:1,监检证书:2)")
private String attachmentType; private String attachmentType;
...@@ -168,4 +166,9 @@ public class JyjcInspectionResultModel extends BaseModel { ...@@ -168,4 +166,9 @@ public class JyjcInspectionResultModel extends BaseModel {
* 身份标识(前端行内权限按钮控制用) * 身份标识(前端行内权限按钮控制用)
*/ */
private String identity; private String identity;
/**
* 是否存在不符合项
*/
private Boolean isExistNc;
} }
...@@ -161,6 +161,6 @@ ...@@ -161,6 +161,6 @@
</otherwise> </otherwise>
</choose> </choose>
</where> </where>
ORDER BY res.application_date DESC ORDER BY res.sequence_nbr DESC
</select> </select>
</mapper> </mapper>
...@@ -625,6 +625,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec ...@@ -625,6 +625,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
resultModel.setEquDefine(applicationEquipModels.get(i).getEquDefine()); resultModel.setEquDefine(applicationEquipModels.get(i).getEquDefine());
resultModel.setEquCategory(applicationEquipModels.get(i).getEquCategory()); resultModel.setEquCategory(applicationEquipModels.get(i).getEquCategory());
resultModel.setEquList(applicationEquipModels.get(i).getEquList()); resultModel.setEquList(applicationEquipModels.get(i).getEquList());
resultModel.setIsExistNc(false);
resultModels.add(resultModel); resultModels.add(resultModel);
} }
inspectionResultService.saveOrUpdateBatch(resultModels); inspectionResultService.saveOrUpdateBatch(resultModels);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment