Commit 85caa3f5 authored by suhuiguang's avatar suhuiguang

Merge branch 'develop_tzs_register' into develop_tzs_feat/xzspj

parents fe8bd9f7 1def9590
...@@ -172,12 +172,18 @@ public class JgOverDesignServiceLife extends BaseEntity { ...@@ -172,12 +172,18 @@ public class JgOverDesignServiceLife extends BaseEntity {
@TableField("use_registration_code") @TableField("use_registration_code")
private String useRegistrationCode; private String useRegistrationCode;
@TableField(exist = false) @TableField("equ_list")
private String equList; private String equList;
@TableField("equ_list_name")
private String equListName;
@TableField(exist = false) @TableField(exist = false)
private String equCategory; private String equCategory;
@TableField(exist = false)
private String equCategoryName;
/** /**
* 首次使用截止日期 * 首次使用截止日期
*/ */
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
ovds.use_registration_code AS useRegistrationCode, ovds.use_registration_code AS useRegistrationCode,
ovds.next_execute_user_ids AS nextExecuteUserIds, ovds.next_execute_user_ids AS nextExecuteUserIds,
ovds.create_user_id AS createUserId, ovds.create_user_id AS createUserId,
ovds.next_tASk_id AS nextTASkId, ovds.next_task_id AS nextTaskId,
ovds.USE_UNIT_NAME AS useUnitName, ovds.USE_UNIT_NAME AS useUnitName,
jri.PRODUCT_NAME AS productName, jri.PRODUCT_NAME AS productName,
jri.EQU_CODE AS equCode, jri.EQU_CODE AS equCode,
......
...@@ -234,8 +234,10 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign ...@@ -234,8 +234,10 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign
.findFirst() .findFirst()
.map(e -> Objects.toString(e.get(key), "")) .map(e -> Objects.toString(e.get(key), ""))
.orElse(""); .orElse("");
overDesignServiceLife.setEquList(getFirstValue.apply("equList")); overDesignServiceLife.setEquList(getFirstValue.apply("equListCode"));
overDesignServiceLife.setEquCategory(getFirstValue.apply("equCategory")); overDesignServiceLife.setEquListName(getFirstValue.apply("equList"));
overDesignServiceLife.setEquCategory(getFirstValue.apply("equCategoryCode"));
overDesignServiceLife.setEquCategoryName(getFirstValue.apply("equCategory"));
boolean hasId = StringUtils.isEmpty(overDesignDto.getSequenceNbr()); boolean hasId = StringUtils.isEmpty(overDesignDto.getSequenceNbr());
//新增 //新增
if (hasId) { if (hasId) {
...@@ -275,7 +277,8 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign ...@@ -275,7 +277,8 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign
equip.setSafetyAssessmentReport(JSONObject.toJSONString(device.get("safetyAssessmentReport"))); equip.setSafetyAssessmentReport(JSONObject.toJSONString(device.get("safetyAssessmentReport")));
} }
equipList.add(equip); equipList.add(equip);
overDesignServiceLife.setEquList(Objects.toString(device.get("equList"), "")); overDesignServiceLife.setEquList(Objects.toString(device.get("equListCode"), ""));
overDesignServiceLife.setEquListName(Objects.toString(device.get("equList"), ""));
}); });
//保存或更新检验信息 //保存或更新检验信息
this.updateOrCreateInspectionDetection(equipmentLists); this.updateOrCreateInspectionDetection(equipmentLists);
...@@ -313,7 +316,7 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign ...@@ -313,7 +316,7 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign
BeanUtil.copyProperties(overDesignServiceLife, taskMessageDto); BeanUtil.copyProperties(overDesignServiceLife, taskMessageDto);
taskMessageDto.setEquipId(String.valueOf(map.get("equipId"))); taskMessageDto.setEquipId(String.valueOf(map.get("equipId")));
dto.setModel(taskMessageDto); dto.setModel(taskMessageDto);
dto.setTaskContent(String.format("来自%s的业务办理,【申请单号:%s】", ObjectUtils.isEmpty(overDesignServiceLife.getEquList()) ? "" : overDesignServiceLife.getEquList(), dto.setTaskContent(String.format("来自%s的业务办理,【申请单号:%s】", ObjectUtils.isEmpty(overDesignServiceLife.getEquListName()) ? "" : overDesignServiceLife.getEquListName(),
overDesignServiceLife.getApplyNo())); overDesignServiceLife.getApplyNo()));
dto.setTaskCode(overDesignServiceLife.getApplyNo()); dto.setTaskCode(overDesignServiceLife.getApplyNo());
dto.setTaskType(String.valueOf(BusinessTypeEnum.JG_OVER_DESIGN_SERVICE_LIFE.getCode())); dto.setTaskType(String.valueOf(BusinessTypeEnum.JG_OVER_DESIGN_SERVICE_LIFE.getCode()));
...@@ -787,7 +790,7 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign ...@@ -787,7 +790,7 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign
dto.setFlowStatus(commonService.getDictionaryCodeByName(jgOverDesignServiceLife.getStatus())); dto.setFlowStatus(commonService.getDictionaryCodeByName(jgOverDesignServiceLife.getStatus()));
dto.setFlowStatusLabel(jgOverDesignServiceLife.getStatus()); dto.setFlowStatusLabel(jgOverDesignServiceLife.getStatus());
dto.setStartUserId(jgOverDesignServiceLife.getCreateUserId()); dto.setStartUserId(jgOverDesignServiceLife.getCreateUserId());
dto.setStartUser(jgOverDesignServiceLife.getRecUserName()); dto.setStartUser(jgOverDesignServiceLife.getCreateUserName());
dto.setStartUserCompanyName(jgOverDesignServiceLife.getUseUnitName()); dto.setStartUserCompanyName(jgOverDesignServiceLife.getUseUnitName());
dto.setStartDate(new Date()); dto.setStartDate(new Date());
jgOverDesignServiceLife.setInstanceId(workflowResultDto.getInstanceId()); jgOverDesignServiceLife.setInstanceId(workflowResultDto.getInstanceId());
...@@ -799,7 +802,7 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign ...@@ -799,7 +802,7 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign
dto.setNextExecuteUser(workflowResultDto.getNextExecutorRoleIds()); dto.setNextExecuteUser(workflowResultDto.getNextExecutorRoleIds());
dto.setTaskContent( dto.setTaskContent(
String.format("来自%s的业务办理,【申请单号:%s】", String.format("来自%s的业务办理,【申请单号:%s】",
ObjectUtils.isEmpty(jgOverDesignServiceLife.getEquList()) ? "" : jgOverDesignServiceLife.getEquList(), ObjectUtils.isEmpty(jgOverDesignServiceLife.getEquListName()) ? "" : jgOverDesignServiceLife.getEquListName(),
jgOverDesignServiceLife.getApplyNo())); jgOverDesignServiceLife.getApplyNo()));
dto.setFlowCode(jgOverDesignServiceLife.getNextTaskId()); dto.setFlowCode(jgOverDesignServiceLife.getNextTaskId());
list.add(dto); list.add(dto);
......
...@@ -65,6 +65,11 @@ ...@@ -65,6 +65,11 @@
"name": "补证登记", "name": "补证登记",
"code": "DJ_BZ", "code": "DJ_BZ",
"image": "upload/tzs/common/image/补证登记.png" "image": "upload/tzs/common/image/补证登记.png"
},
{
"name": "超设计使用年限变更",
"code": "DJ_CSJ",
"image": "upload/tzs/common/image/超设计使用年限.png"
} }
], ],
"WBBA": [ "WBBA": [
......
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