Commit a8c43e2d authored by suhuiguang's avatar suhuiguang

1.报检计划排期-增加已经排期时,行内按钮变成已排期

parent 567ef88c
...@@ -163,6 +163,9 @@ public class JyjcInspectionApplicationModel extends BaseModel { ...@@ -163,6 +163,9 @@ public class JyjcInspectionApplicationModel extends BaseModel {
private String instanceId; private String instanceId;
@ApiModelProperty(value = "是否已经进行计划排期")
private Boolean isExistPlanData;
public String getProcessInstanceId() { public String getProcessInstanceId() {
return this.instanceId != null ? this.instanceId : this.processInstanceId; return this.instanceId != null ? this.instanceId : this.processInstanceId;
} }
......
...@@ -69,6 +69,9 @@ ...@@ -69,6 +69,9 @@
<select id="selectForPage" resultType="com.yeejoin.amos.boot.module.jyjc.api.model.JyjcInspectionApplicationModel"> <select id="selectForPage" resultType="com.yeejoin.amos.boot.module.jyjc.api.model.JyjcInspectionApplicationModel">
SELECT SELECT
tzjia.*, tzjia.*,
case
when tzjia.plan_data<![CDATA[<>]]> '' then TRUE
else false END as isExistPlanData,
cdd1.NAME AS inspectionClassify, cdd1.NAME AS inspectionClassify,
cdd3.NAME AS inspectionType, cdd3.NAME AS inspectionType,
(SELECT name FROM "tz_equipment_category" ca where ca.code = tzjia.equip_classify) AS equipClassify, (SELECT name FROM "tz_equipment_category" ca where ca.code = tzjia.equip_classify) AS equipClassify,
......
...@@ -98,7 +98,7 @@ public class RuleActionHandler { ...@@ -98,7 +98,7 @@ public class RuleActionHandler {
} }
private String getArea(String record) { private String getArea(String record) {
UseInfo equipUseInfo = useInfoMapper.selectOne(Wrappers.<UseInfo>lambdaQuery().select(UseInfo::getCity).eq(UseInfo::getRecord, record)); UseInfo equipUseInfo = useInfoMapper.selectOne(Wrappers.<UseInfo>lambdaQuery().select(UseInfo::getCity,UseInfo::getCounty).eq(UseInfo::getRecord, record));
if (equipUseInfo == null) { if (equipUseInfo == null) {
return ""; return "";
} }
......
...@@ -463,8 +463,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec ...@@ -463,8 +463,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
currentApplicationUnitCode = companyCode; currentApplicationUnitCode = companyCode;
currentInspectionUnitCode = companyCode; currentInspectionUnitCode = companyCode;
} }
Page<JyjcInspectionApplicationModel> resultPage = this.getBaseMapper().selectForPage(page, model, identity, currentApplicationUnitCode, currentInspectionUnitCode, currentUserId); return this.getBaseMapper().selectForPage(page, model, identity, currentApplicationUnitCode, currentInspectionUnitCode, currentUserId);
return resultPage;
} }
private String getCompanyIdentityByType(String companyType) { private String getCompanyIdentityByType(String companyType) {
......
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