From 69de93a9e15ebcd4c7c04065a3519a130bfab368 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Tue, 2 Jan 2024 14:44:22 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E7=BA=BF=E4=B8=8B=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E7=A5=A8=E9=A2=84=E8=A7=88=E6=8E=A5=E5=8F=A3=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ticket/workTicket/entity/WorkTicketInfoEntity.java | 3 +++ .../hzims/ticket/twoTicket/entity/WorkTicketFinish.java | 15 +++++++++++++++ .../twoTicket/service/impl/TicketProcessServiceImpl.java | 3 ++- hzims-service/ticket/src/main/resources/db/2.0.1.sql | 5 +++++ .../resources/file/线下工作票审批流程.bpmn20.xml | 9 +++++++-- 5 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 hzims-service/ticket/src/main/resources/db/2.0.1.sql diff --git a/hzims-service-api/ticket-api/src/main/java/com/hnac/hzims/ticket/workTicket/entity/WorkTicketInfoEntity.java b/hzims-service-api/ticket-api/src/main/java/com/hnac/hzims/ticket/workTicket/entity/WorkTicketInfoEntity.java index e25a44d..5fda1e0 100644 --- a/hzims-service-api/ticket-api/src/main/java/com/hnac/hzims/ticket/workTicket/entity/WorkTicketInfoEntity.java +++ b/hzims-service-api/ticket-api/src/main/java/com/hnac/hzims/ticket/workTicket/entity/WorkTicketInfoEntity.java @@ -497,4 +497,7 @@ public class WorkTicketInfoEntity extends TenantEntity implements Serializable { @TableField(exist=false) private Integer isQualified; + @ApiModelProperty("是否线下 : 1-线下,0-线上") + private Boolean isOffline; + } diff --git a/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/entity/WorkTicketFinish.java b/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/entity/WorkTicketFinish.java index b785073..f0819e9 100644 --- a/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/entity/WorkTicketFinish.java +++ b/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/entity/WorkTicketFinish.java @@ -166,6 +166,21 @@ public class WorkTicketFinish implements Serializable { */ private String otherItems; + /** + * 工作终结负责人 + */ + private String endPrincipalName; + + /** + * 工作终结许可人 + */ + private String endLicensorName; + + /** + * 工作票终结许可人 + */ + private String finishLicensorName; + } diff --git a/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java b/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java index 0d1e79c..29cda63 100644 --- a/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java +++ b/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java @@ -506,6 +506,7 @@ public class TicketProcessServiceImpl implements TicketProcessService { } workTicket.setProcessInstanceId(response.getProcessInstanceId()); this.saveWorkTicket(workTicket,response); + firstWorkTicketService.updateById(workTicket); List safetyMeasuresList = workTicketVo.getSafetyMeasuresList(); if(CollectionUtil.isNotEmpty(safetyMeasuresList)) { workTicketSafetyMeasureService.saveOrUpdateBatch(safetyMeasuresList); @@ -1366,7 +1367,7 @@ public class TicketProcessServiceImpl implements TicketProcessService { this.saveSafetyMeasures(workTicketVo.getSafetyMeasuresList(), workTicketVo.getWorkTicket()); this.saveWorkTicketContentDto(workTicketVo.getWorkTicketContentDtoList(), workTicketVo.getWorkTicket()); // 开启工作流 - String processInstanceId = this.startOfflineTicketProcess(workTicketVo); + this.startOfflineTicketProcess(workTicketVo); return workTicket.getId(); } diff --git a/hzims-service/ticket/src/main/resources/db/2.0.1.sql b/hzims-service/ticket/src/main/resources/db/2.0.1.sql new file mode 100644 index 0000000..4568f6b --- /dev/null +++ b/hzims-service/ticket/src/main/resources/db/2.0.1.sql @@ -0,0 +1,5 @@ +alter table `hzims_work_ticket_finish` add column `end_principal_name` varchar(50) comment '工作终结负责人'; +alter table `hzims_work_ticket_finish` add column `end_licensor_name` varchar(50) comment '工作终结许可人'; +alter table `hzims_work_ticket_finish` add column `finish_licensor_name` varchar(50) comment '工作票终结许可人'; + +alter table `hzims_work_ticket_info` add column `is_offline` tinyint(2) default 0 comment '是否线下 : 1-线下,0-线上'; \ No newline at end of file diff --git a/hzims-service/ticket/src/main/resources/file/线下工作票审批流程.bpmn20.xml b/hzims-service/ticket/src/main/resources/file/线下工作票审批流程.bpmn20.xml index 4d87dfc..7660161 100644 --- a/hzims-service/ticket/src/main/resources/file/线下工作票审批流程.bpmn20.xml +++ b/hzims-service/ticket/src/main/resources/file/线下工作票审批流程.bpmn20.xml @@ -4,6 +4,7 @@ + @@ -11,6 +12,7 @@ + @@ -18,17 +20,20 @@ + - + + - + +