From b5a3c0f6823d17d4acd97545cee3556a07f09865 Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期二, 03 九月 2024 10:56:23 +0800
Subject: [PATCH] 移动生产日志定时任务优化

---
 pms-parent/pms-global/src/main/resources/mapper/PrWorkingInstructionMapper.xml |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrWorkingInstructionMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrWorkingInstructionMapper.xml
index 29742ce..037176a 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/PrWorkingInstructionMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/PrWorkingInstructionMapper.xml
@@ -14,6 +14,12 @@
         id,node_id,file_id
     </sql>
 
+    <select id="selectByNodeId" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from pr_working_instruction
+        where  node_id = #{nodeId,jdbcType=BIGINT}
+    </select>
     <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
         select
         <include refid="Base_Column_List" />
@@ -36,12 +42,12 @@
         insert into pr_working_instruction
         <trim prefix="(" suffix=")" suffixOverrides=",">
                 <if test="id != null">id,</if>
-                <if test="nodeId != null">node_id,</if>
+                <if test="nodeId!= null">node_id,</if>
                 <if test="fileId != null">file_id,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
                 <if test="id != null">#{id,jdbcType=BIGINT},</if>
-                <if test="nodeId != null">#{nodeId,jdbcType=BIGINT},</if>
+                <if test="nodeId!= null">#{nodeId,jdbcType=BIGINT},</if>
                 <if test="fileId != null">#{fileId,jdbcType=BIGINT},</if>
         </trim>
     </insert>
@@ -62,7 +68,7 @@
     <update id="updateByPrimaryKeySelective" parameterType="com.dy.pmsGlobal.pojoPr.PrWorkingInstruction">
         update pr_working_instruction
         <set>
-                <if test="nodeId != null">
+                <if test="nodeId!= null">
                     node_id = #{nodeId,jdbcType=BIGINT},
                 </if>
                 <if test="fileId != null">

--
Gitblit v1.8.0