正在显示
7 个修改的文件
包含
43 行增加
和
1 行删除
| @@ -165,6 +165,8 @@ public class TblContractController extends BaseController { | @@ -165,6 +165,8 @@ public class TblContractController extends BaseController { | ||
| 165 | TblBusinessWorkflowBo tblBusinessWorkflowBo = new TblBusinessWorkflowBo(); | 165 | TblBusinessWorkflowBo tblBusinessWorkflowBo = new TblBusinessWorkflowBo(); |
| 166 | tblBusinessWorkflowBo.setBusinessId(id); | 166 | tblBusinessWorkflowBo.setBusinessId(id); |
| 167 | tblBusinessWorkflowBo.setProcInsId(processInstance.getProcessInstanceId()); | 167 | tblBusinessWorkflowBo.setProcInsId(processInstance.getProcessInstanceId()); |
| 168 | + tblBusinessWorkflowBo.setProcDefId(procDefId); | ||
| 169 | + tblBusinessWorkflowBo.setDeployId(processInstance.getDeploymentId()); | ||
| 168 | TableName table = TblContract.class.getAnnotation(TableName.class); | 170 | TableName table = TblContract.class.getAnnotation(TableName.class); |
| 169 | tblBusinessWorkflowBo.setTableName(table.value()); | 171 | tblBusinessWorkflowBo.setTableName(table.value()); |
| 170 | iTblBusinessWorkflowService.insertByBo(tblBusinessWorkflowBo); | 172 | iTblBusinessWorkflowService.insertByBo(tblBusinessWorkflowBo); |
| @@ -34,6 +34,14 @@ public class TblBusinessWorkflow extends BaseEntity { | @@ -34,6 +34,14 @@ public class TblBusinessWorkflow extends BaseEntity { | ||
| 34 | * | 34 | * |
| 35 | */ | 35 | */ |
| 36 | private String procInsId; | 36 | private String procInsId; |
| 37 | + /** | ||
| 38 | + * | ||
| 39 | + */ | ||
| 40 | + private String procDefId; | ||
| 41 | + /** | ||
| 42 | + * | ||
| 43 | + */ | ||
| 44 | + private String deployId; | ||
| 37 | 45 | ||
| 38 | /** | 46 | /** |
| 39 | * | 47 | * |
| @@ -38,6 +38,18 @@ public class TblBusinessWorkflowBo extends BaseEntity { | @@ -38,6 +38,18 @@ public class TblBusinessWorkflowBo extends BaseEntity { | ||
| 38 | */ | 38 | */ |
| 39 | @NotBlank(message = "不能为空", groups = { EditGroup.class }) | 39 | @NotBlank(message = "不能为空", groups = { EditGroup.class }) |
| 40 | private String procInsId; | 40 | private String procInsId; |
| 41 | + | ||
| 42 | + /** | ||
| 43 | + * | ||
| 44 | + */ | ||
| 45 | + @NotBlank(message = "不能为空", groups = { EditGroup.class }) | ||
| 46 | + private String procDefId; | ||
| 47 | + | ||
| 48 | + /** | ||
| 49 | + * | ||
| 50 | + */ | ||
| 51 | + @NotBlank(message = "不能为空", groups = { EditGroup.class }) | ||
| 52 | + private String deployId; | ||
| 41 | /** | 53 | /** |
| 42 | * | 54 | * |
| 43 | */ | 55 | */ |
| @@ -38,6 +38,18 @@ public class TblBusinessWorkflowVo { | @@ -38,6 +38,18 @@ public class TblBusinessWorkflowVo { | ||
| 38 | */ | 38 | */ |
| 39 | @ExcelProperty(value = "") | 39 | @ExcelProperty(value = "") |
| 40 | private String procInsId; | 40 | private String procInsId; |
| 41 | + | ||
| 42 | + /** | ||
| 43 | + * | ||
| 44 | + */ | ||
| 45 | + @ExcelProperty(value = "") | ||
| 46 | + private String procDefId; | ||
| 47 | + | ||
| 48 | + /** | ||
| 49 | + * | ||
| 50 | + */ | ||
| 51 | + @ExcelProperty(value = "") | ||
| 52 | + private String deployId; | ||
| 41 | /** | 53 | /** |
| 42 | * | 54 | * |
| 43 | */ | 55 | */ |
| @@ -104,5 +104,7 @@ public class TblContractModel extends BaseEntity { | @@ -104,5 +104,7 @@ public class TblContractModel extends BaseEntity { | ||
| 104 | private Long id; | 104 | private Long id; |
| 105 | 105 | ||
| 106 | private String procInsId; | 106 | private String procInsId; |
| 107 | + private String procDefId; | ||
| 108 | + private String deployId; | ||
| 107 | 109 | ||
| 108 | } | 110 | } |
| @@ -8,6 +8,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -8,6 +8,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 8 | <result property="tableName" column="table_name"/> | 8 | <result property="tableName" column="table_name"/> |
| 9 | <result property="businessId" column="business_id"/> | 9 | <result property="businessId" column="business_id"/> |
| 10 | <result property="procInsId" column="proc_ins_id"/> | 10 | <result property="procInsId" column="proc_ins_id"/> |
| 11 | + <result property="deployId" column="deploy_id"/> | ||
| 12 | + <result property="procDefId" column="proc_def_id"/> | ||
| 11 | <result property="id" column="id"/> | 13 | <result property="id" column="id"/> |
| 12 | <result property="createBy" column="create_by"/> | 14 | <result property="createBy" column="create_by"/> |
| 13 | <result property="createTime" column="create_time"/> | 15 | <result property="createTime" column="create_time"/> |
| @@ -28,6 +28,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -28,6 +28,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 28 | <result property="updateBy" column="update_by"/> | 28 | <result property="updateBy" column="update_by"/> |
| 29 | <result property="updateTime" column="update_time"/> | 29 | <result property="updateTime" column="update_time"/> |
| 30 | <result property="procInsId" column="proc_ins_id"/> | 30 | <result property="procInsId" column="proc_ins_id"/> |
| 31 | + <result property="procDdfId" column="proc_def_id"/> | ||
| 32 | + <result property="deployId" column="deploy_id"/> | ||
| 31 | </resultMap> | 33 | </resultMap> |
| 32 | <resultMap type="com.ruoyi.compliancemanagement.model.TblContractModel" id="TblContractModelResult"> | 34 | <resultMap type="com.ruoyi.compliancemanagement.model.TblContractModel" id="TblContractModelResult"> |
| 33 | <result property="id" column="id"/> | 35 | <result property="id" column="id"/> |
| @@ -53,6 +55,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -53,6 +55,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 53 | <result property="updateBy" column="update_by"/> | 55 | <result property="updateBy" column="update_by"/> |
| 54 | <result property="updateTime" column="update_time"/> | 56 | <result property="updateTime" column="update_time"/> |
| 55 | <result property="procInsId" column="proc_ins_id"/> | 57 | <result property="procInsId" column="proc_ins_id"/> |
| 58 | + <result property="procDefId" column="proc_def_id"/> | ||
| 59 | + <result property="deployId" column="deploy_id"/> | ||
| 56 | </resultMap> | 60 | </resultMap> |
| 57 | <select id="selectList" resultMap="TblContractModelResult"> | 61 | <select id="selectList" resultMap="TblContractModelResult"> |
| 58 | SELECT | 62 | SELECT |
| @@ -77,7 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -77,7 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 77 | a.create_by, | 81 | a.create_by, |
| 78 | a.create_time, | 82 | a.create_time, |
| 79 | a.update_by, | 83 | a.update_by, |
| 80 | - a.update_time,b.proc_ins_id | 84 | + a.update_time,b.proc_ins_id,b.proc_def_id,b.deploy_id |
| 81 | FROM | 85 | FROM |
| 82 | tbl_contract a | 86 | tbl_contract a |
| 83 | LEFT JOIN tbl_business_workflow b ON a.id = b.business_id | 87 | LEFT JOIN tbl_business_workflow b ON a.id = b.business_id |
-
请 注册 或 登录 后发表评论