feat(hrm): 添加印章申请流程实例关联功能
- 在 HrmSealReqMapper.xml 中新增 inst_id 字段映射 - 修改 selectVoWithProjectById 查询方法 - 添加 hrm_flow_instance 表关联查询 - 实现业务ID关联流程实例数据获取
This commit is contained in:
@@ -36,6 +36,7 @@
|
|||||||
<result column="product_status" property="productStatus"/>
|
<result column="product_status" property="productStatus"/>
|
||||||
<result column="color" property="color"/>
|
<result column="color" property="color"/>
|
||||||
<result column="customerId" property="customerId"/>
|
<result column="customerId" property="customerId"/>
|
||||||
|
<result column="inst_id" property="instId"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<select id="selectVoWithProjectById" resultMap="VoResultMap">
|
<select id="selectVoWithProjectById" resultMap="VoResultMap">
|
||||||
@@ -56,9 +57,11 @@
|
|||||||
p.project_status,
|
p.project_status,
|
||||||
p.product_status,
|
p.product_status,
|
||||||
p.color,
|
p.color,
|
||||||
p.customer_id AS customerId
|
p.customer_id AS customerId,
|
||||||
|
i.inst_id AS instId
|
||||||
FROM hrm_seal_req s
|
FROM hrm_seal_req s
|
||||||
LEFT JOIN sys_oa_project p ON s.project_id = p.project_id
|
LEFT JOIN sys_oa_project p ON s.project_id = p.project_id
|
||||||
|
LEFT JOIN hrm_flow_instance i ON s.biz_id = i.biz_id and i.biz_type = 'seal' and i.del_flag = 0
|
||||||
WHERE s.biz_id = #{bizId}
|
WHERE s.biz_id = #{bizId}
|
||||||
AND s.del_flag = 0
|
AND s.del_flag = 0
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Reference in New Issue
Block a user