|
|
@ -81,7 +81,7 @@ |
|
|
AND a.workflow_id like #{query.workflowId} |
|
|
AND a.workflow_id like #{query.workflowId} |
|
|
</if> |
|
|
</if> |
|
|
<if test = "query.classificationNo != null and query.classificationNo != ''"> |
|
|
<if test = "query.classificationNo != null and query.classificationNo != ''"> |
|
|
AND a.workflow_id like #{query.classificationNo} |
|
|
|
|
|
|
|
|
AND a.classification_no like #{query.classificationNo} |
|
|
</if> |
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
group by a.site, a.bu, d.bu_desc, a.classification_no, a.classification_name, a.menu_id, c.name, a.workflow_id, |
|
|
group by a.site, a.bu, d.bu_desc, a.classification_no, a.classification_name, a.menu_id, c.name, a.workflow_id, |
|
|
@ -142,7 +142,8 @@ |
|
|
<select id="getRequestNodeData" resultType="com.spring.modules.request.vo.PlmRequestDetailVo"> |
|
|
<select id="getRequestNodeData" resultType="com.spring.modules.request.vo.PlmRequestDetailVo"> |
|
|
SELECT |
|
|
SELECT |
|
|
a.nodeid nodeId, |
|
|
a.nodeid nodeId, |
|
|
a.nodename nodeName |
|
|
|
|
|
|
|
|
a.nodename nodeName, |
|
|
|
|
|
a.nodeorder seqNo |
|
|
FROM VIEW_Process_management_OA_PLM a |
|
|
FROM VIEW_Process_management_OA_PLM a |
|
|
<where> |
|
|
<where> |
|
|
<if test = "workflowId != null and workflowId != ''"> |
|
|
<if test = "workflowId != null and workflowId != ''"> |
|
|
@ -152,11 +153,11 @@ |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<insert id="saveRequestNode"> |
|
|
<insert id="saveRequestNode"> |
|
|
INSERT INTO plm_request_node (site,bu,classification_no,node_id,node_name,node_type,create_date,create_by,remark,workflow_id) |
|
|
|
|
|
|
|
|
INSERT INTO plm_request_node (site,bu,classification_no,node_id,node_name,node_type,create_date,create_by,remark,workflow_id, seq_no) |
|
|
values |
|
|
values |
|
|
<foreach item="data" index="index" collection="list" separator=","> |
|
|
<foreach item="data" index="index" collection="list" separator=","> |
|
|
(#{data.site}, #{data.bu},#{data.classificationNo},#{data.nodeId},#{data.nodeName},#{data.nodeType},#{data.createDate} |
|
|
(#{data.site}, #{data.bu},#{data.classificationNo},#{data.nodeId},#{data.nodeName},#{data.nodeType},#{data.createDate} |
|
|
,#{data.createBy},#{data.remark},#{data.workflowId}) |
|
|
|
|
|
|
|
|
,#{data.createBy},#{data.remark},#{data.workflowId},#{data.seqNo}) |
|
|
</foreach> |
|
|
</foreach> |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
@ -168,7 +169,8 @@ |
|
|
c.workflowname, |
|
|
c.workflowname, |
|
|
a.node_id, |
|
|
a.node_id, |
|
|
a.node_name, |
|
|
a.node_name, |
|
|
a.node_type |
|
|
|
|
|
|
|
|
a.node_type, |
|
|
|
|
|
a.seq_no |
|
|
FROM plm_request_node a |
|
|
FROM plm_request_node a |
|
|
LEFT JOIN plm_request_header b ON a.site = b.site and a.classification_no = b.classification_no and a.workflow_id = b.workflow_id |
|
|
LEFT JOIN plm_request_header b ON a.site = b.site and a.classification_no = b.classification_no and a.workflow_id = b.workflow_id |
|
|
LEFT JOIN VIEW_Process_management_OA_PLM c ON a.workflow_id = c.workflowid |
|
|
LEFT JOIN VIEW_Process_management_OA_PLM c ON a.workflow_id = c.workflowid |
|
|
@ -183,7 +185,8 @@ |
|
|
AND a.workflow_id like #{query.workflowId} |
|
|
AND a.workflow_id like #{query.workflowId} |
|
|
</if> |
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
group by a.site, a.classification_no, a.workflow_id, c.workflowname, a.node_id, a.node_name, a.node_type |
|
|
|
|
|
|
|
|
group by a.site, a.classification_no, a.workflow_id, c.workflowname, a.node_id, a.node_name, a.node_type, a.seq_no |
|
|
|
|
|
order by a.seq_no |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="getNodeDetail" parameterType="com.spring.modules.request.vo.PlmRequestDetailVo" resultType="com.spring.modules.request.vo.PlmRequestDetailVo"> |
|
|
<select id="getNodeDetail" parameterType="com.spring.modules.request.vo.PlmRequestDetailVo" resultType="com.spring.modules.request.vo.PlmRequestDetailVo"> |
|
|
|