Browse Source

藏品管理: 查询时默认排除被逻辑删除的

Signed-off-by: hamjin <335908093@qq.com>
hamjin 2 years ago
parent
commit
1415f1c53c
1 changed files with 11 additions and 10 deletions
  1. 11 10
      ruoyi-system/src/main/resources/mapper/system/PoCollectionMapper.xml

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

@@ -55,17 +55,18 @@
     <select id="selectPoCollectionList" parameterType="PoCollection" resultMap="PoCollectionResult">
     <select id="selectPoCollectionList" parameterType="PoCollection" resultMap="PoCollectionResult">
         <include refid="selectPoCollectionVo"/>
         <include refid="selectPoCollectionVo"/>
         <where>
         <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 = #{delFlag}</if>
+            <if test="delFlag == null">and del_flag = #{0}</if>
         </where>
         </where>
     </select>
     </select>