From c7fd687b61cd48deb75325183e230a3c33b345e8 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期三, 15 三月 2023 23:26:23 +0800
Subject: [PATCH] 优化保养转单功能
---
java110-db/src/main/resources/mapper/oa/OaWorkflowXmlServiceDaoImplMapper.xml | 150 ++++++++++++++++++++++++-------------------------
1 files changed, 73 insertions(+), 77 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/oa/OaWorkflowXmlServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/oa/OaWorkflowXmlServiceDaoImplMapper.xml
index 0e5434f..a693a58 100644
--- a/java110-db/src/main/resources/mapper/oa/OaWorkflowXmlServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/oa/OaWorkflowXmlServiceDaoImplMapper.xml
@@ -5,102 +5,98 @@
<mapper namespace="oaWorkflowXmlServiceDaoImpl">
-
-
-
<!-- 淇濆瓨OA娴佺▼鍥句俊鎭� add by wuxw 2018-07-03 -->
<insert id="saveOaWorkflowXmlInfo" parameterType="Map">
insert into oa_workflow_xml(
-xml_id,store_id,bpmn_xml,flow_id,svg_xml
-) values (
-#{xmlId},#{storeId},#{bpmnXml},#{flowId},#{svgXml}
-)
+ xml_id,store_id,bpmn_xml,flow_id,svg_xml
+ ) values (
+ #{xmlId},#{storeId},#{bpmnXml},#{flowId},#{svgXml}
+ )
</insert>
-
<!-- 鏌ヨOA娴佺▼鍥句俊鎭� add by wuxw 2018-07-03 -->
<select id="getOaWorkflowXmlInfo" parameterType="Map" resultType="Map">
- select t.status_cd,t.status_cd statusCd,t.xml_id,t.xml_id xmlId,t.store_id,t.store_id storeId,t.bpmn_xml,t.bpmn_xml bpmnXml,t.flow_id,t.flow_id flowId,t.svg_xml,t.svg_xml svgXml
-from oa_workflow_xml t
-where 1 =1
-<if test="statusCd !=null and statusCd != ''">
- and t.status_cd= #{statusCd}
-</if>
-<if test="xmlId !=null and xmlId != ''">
- and t.xml_id= #{xmlId}
-</if>
-<if test="storeId !=null and storeId != ''">
- and t.store_id= #{storeId}
-</if>
-<if test="bpmnXml !=null and bpmnXml != ''">
- and t.bpmn_xml= #{bpmnXml}
-</if>
-<if test="flowId !=null and flowId != ''">
- and t.flow_id= #{flowId}
-</if>
-<if test="svgXml !=null and svgXml != ''">
- and t.svg_xml= #{svgXml}
-</if>
-order by t.create_time desc
-<if test="page != -1 and page != null ">
- limit #{page}, #{row}
-</if>
+ select t.status_cd,t.status_cd statusCd,t.xml_id,t.xml_id xmlId,t.store_id,t.store_id
+ storeId,t.bpmn_xml,t.bpmn_xml bpmnXml,t.flow_id,t.flow_id flowId,t.svg_xml,t.svg_xml svgXml
+ from oa_workflow_xml t
+ where 1 =1
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="xmlId !=null and xmlId != ''">
+ and t.xml_id= #{xmlId}
+ </if>
+ <if test="storeId !=null and storeId != ''">
+ and t.store_id= #{storeId}
+ </if>
+ <if test="bpmnXml !=null and bpmnXml != ''">
+ and t.bpmn_xml= #{bpmnXml}
+ </if>
+ <if test="flowId !=null and flowId != ''">
+ and t.flow_id= #{flowId}
+ </if>
+ <if test="svgXml !=null and svgXml != ''">
+ and t.svg_xml= #{svgXml}
+ </if>
+ order by t.create_time desc
+ <if test="page != -1 and page != null ">
+ limit #{page}, #{row}
+ </if>
</select>
-
-
<!-- 淇敼OA娴佺▼鍥句俊鎭� add by wuxw 2018-07-03 -->
<update id="updateOaWorkflowXmlInfo" parameterType="Map">
- update oa_workflow_xml t set t.status_cd = #{statusCd}
-<if test="newBId != null and newBId != ''">
-,t.b_id = #{newBId}
-</if>
-<if test="storeId !=null and storeId != ''">
-, t.store_id= #{storeId}
-</if>
-<if test="bpmnXml !=null and bpmnXml != ''">
-, t.bpmn_xml= #{bpmnXml}
-</if>
-<if test="flowId !=null and flowId != ''">
-, t.flow_id= #{flowId}
-</if>
-<if test="svgXml !=null and svgXml != ''">
-, t.svg_xml= #{svgXml}
-</if>
- where 1=1 <if test="xmlId !=null and xmlId != ''">
-and t.xml_id= #{xmlId}
-</if>
+ update oa_workflow_xml t set t.status_cd = #{statusCd}
+ <if test="newBId != null and newBId != ''">
+ ,t.b_id = #{newBId}
+ </if>
+ <if test="storeId !=null and storeId != ''">
+ , t.store_id= #{storeId}
+ </if>
+ <if test="bpmnXml !=null and bpmnXml != ''">
+ , t.bpmn_xml= #{bpmnXml}
+ </if>
+ <if test="flowId !=null and flowId != ''">
+ , t.flow_id= #{flowId}
+ </if>
+ <if test="svgXml !=null and svgXml != ''">
+ , t.svg_xml= #{svgXml}
+ </if>
+ where 1=1
+ <if test="xmlId !=null and xmlId != ''">
+ and t.xml_id= #{xmlId}
+ </if>
</update>
<!-- 鏌ヨOA娴佺▼鍥炬暟閲� add by wuxw 2018-07-03 -->
- <select id="queryOaWorkflowXmlsCount" parameterType="Map" resultType="Map">
- select count(1) count
-from oa_workflow_xml t
-where 1 =1
-<if test="statusCd !=null and statusCd != ''">
- and t.status_cd= #{statusCd}
-</if>
-<if test="xmlId !=null and xmlId != ''">
- and t.xml_id= #{xmlId}
-</if>
-<if test="storeId !=null and storeId != ''">
- and t.store_id= #{storeId}
-</if>
-<if test="bpmnXml !=null and bpmnXml != ''">
- and t.bpmn_xml= #{bpmnXml}
-</if>
-<if test="flowId !=null and flowId != ''">
- and t.flow_id= #{flowId}
-</if>
-<if test="svgXml !=null and svgXml != ''">
- and t.svg_xml= #{svgXml}
-</if>
+ <select id="queryOaWorkflowXmlsCount" parameterType="Map" resultType="Map">
+ select count(1) count
+ from oa_workflow_xml t
+ where 1 =1
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="xmlId !=null and xmlId != ''">
+ and t.xml_id= #{xmlId}
+ </if>
+ <if test="storeId !=null and storeId != ''">
+ and t.store_id= #{storeId}
+ </if>
+ <if test="bpmnXml !=null and bpmnXml != ''">
+ and t.bpmn_xml= #{bpmnXml}
+ </if>
+ <if test="flowId !=null and flowId != ''">
+ and t.flow_id= #{flowId}
+ </if>
+ <if test="svgXml !=null and svgXml != ''">
+ and t.svg_xml= #{svgXml}
+ </if>
- </select>
+ </select>
</mapper>
--
Gitblit v1.8.0