2
0

2 Revīzijas caa33d817a ... 8991effb62

Autors SHA1 Ziņojums Datums
  hamjin 8991effb62 通知公告: 查询时默认排除被逻辑删除的 2 gadi atpakaļ
  hamjin 1415f1c53c 藏品管理: 查询时默认排除被逻辑删除的 2 gadi atpakaļ

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

@@ -55,17 +55,18 @@
     <select id="selectPoCollectionList" parameterType="PoCollection" resultMap="PoCollectionResult">
         <include refid="selectPoCollectionVo"/>
         <where>
-            <if test="collectionTitle != null  and collectionTitle != ''"> and collection_title = #{collectionTitle}</if>
-            <if test="status != null  and status != ''"> and status = #{status}</if>
-            <if test="collectionType != null "> and collection_type = #{collectionType}</if>
-            <if test="total != null "> and total = #{total}</if>
-            <if test="formwork != null  and formwork != ''"> and formwork = #{formwork}</if>
-            <if test="price != null "> and price = #{price}</if>
-            <if test="publisherName != null "> and publisher_name like concat('%', #{publisherName}, '%')</if>
-            <if test="grounding != null "> and grounding = #{grounding}</if>
-            <if test="cochain != null "> and cochain = #{cochain}</if>
-            <if test="tetherId != null "> and tether_id = #{tetherId}</if>
+            <if test="collectionTitle != null  and collectionTitle != ''">and collection_title = #{collectionTitle}</if>
+            <if test="status != null  and status != ''">and status = #{status}</if>
+            <if test="collectionType != null ">and collection_type = #{collectionType}</if>
+            <if test="total != null ">and total = #{total}</if>
+            <if test="formwork != null  and formwork != ''">and formwork = #{formwork}</if>
+            <if test="price != null ">and price = #{price}</if>
+            <if test="publisherName != null ">and publisher_name like concat('%', #{publisherName}, '%')</if>
+            <if test="grounding != null ">and grounding = #{grounding}</if>
+            <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>
         </where>
     </select>
 

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

@@ -64,6 +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>
         </where>
     </select>