From 6934b649fadc65d61d427c451bd598803b95b7f1 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期三, 25 八月 2021 13:08:09 +0800
Subject: [PATCH] 优化代码

---
 java110-db/src/main/resources/mapper/oa/OaWorkflowFormServiceDaoImplMapper.xml |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/oa/OaWorkflowFormServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/oa/OaWorkflowFormServiceDaoImplMapper.xml
index f33f66b..6e655aa 100644
--- a/java110-db/src/main/resources/mapper/oa/OaWorkflowFormServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/oa/OaWorkflowFormServiceDaoImplMapper.xml
@@ -175,13 +175,20 @@
         <foreach collection="columns" item="item" separator=",">
             ${item}
         </foreach>
-        id,create_user_id,create_user_name,state
+        ,id,create_user_id,create_user_name,state
         )values(
         <foreach collection="values" item="valueItem" separator=",">
             #{valueItem}
-        </foreach>,
-        #{id},#{state},#{createUserId},#{createUserName}
+        </foreach>
+        ,#{id},#{state},#{createUserId},#{createUserName}
         )
     </insert>
 
+    <!-- 淇敼淇℃伅 -->
+    <update id="updateOaWorkflowFormData" parameterType="Map">
+        update set ${tableName} t set t.state = #{state}
+        where t.id = #{id}
+    </update>
+
+
 </mapper>

--
Gitblit v1.8.0