songxy пре 1 година
родитељ
комит
a1de319c96
1 измењених фајлова са 6 додато и 1 уклоњено
  1. 6 1
      BJYSYBZ_S/src/main/resources/mapper/YbzBJMapper.xml

+ 6 - 1
BJYSYBZ_S/src/main/resources/mapper/YbzBJMapper.xml

@@ -858,7 +858,12 @@
             dqsj = null,
         </if>
         lxfs = #{lxfs}
-        where xh = #{id} and objectid = ${num}
+        <where>
+            xh = #{id}
+            <if test="num != null">
+                and objectid = #{num}
+            </if>
+        </where>
     </update>
     <update id="updateManageGddwByDkId">
         update sde.bjwkfly2000