فهرست منبع

修复逻辑删除相关问题

Signed-off-by: hamjin <335908093@qq.com>
hamjin 2 سال پیش
والد
کامیت
6da705d3fe

+ 2 - 2
ruoyi-system/src/main/resources/mapper/system/PoCollectionMapper.xml

@@ -66,7 +66,7 @@
             <if test="cochain != null ">and cochain = #{cochain}</if>
             <if test="tetherId != null ">and tether_id = #{tetherId}</if>
             <if test="delFlag != null">and del_flag = #{delFlag}</if>
-            <if test="delFlag == null">and del_flag = #{0}</if>
+            <if test="delFlag == null">and del_flag = 0</if>
         </where>
     </select>
 
@@ -173,7 +173,7 @@
 
     <update id="deletePoCollectionByCollectionId" parameterType="Long">
         update po_collection
-        SET del_flag = #{1}
+        SET del_flag = 1
         where collection_id = #{collectionId}
     </update>
 

+ 2 - 2
ruoyi-system/src/main/resources/mapper/system/PoNoticeMapper.xml

@@ -64,7 +64,7 @@
                 AND notice_type like concat('%', #{noticeType}, '%')
             </if>
             <if test="delFlag != null">and del_flag = #{delFlag}</if>
-            <if test="delFlag == null">and del_flag = #{0}</if>
+            <if test="delFlag == null">and del_flag = 0</if>
         </where>
     </select>
 
@@ -116,7 +116,7 @@
 
     <update id="deletePoNoticeById" parameterType="Long">
         update po_notice
-        SET del_flag = #{1}
+        SET del_flag = 1
         where notice_id = #{noticeId}
     </update>