Browse Source

删除、修改标准判定内容是否修改,新增多图片库删除

anderx 1 year ago
parent
commit
64c38bb5c4
1 changed files with 16 additions and 0 deletions
  1. 16 0
      src/main/java/com/goafanti/common/mapper/StandardDocumentMapper.xml

+ 16 - 0
src/main/java/com/goafanti/common/mapper/StandardDocumentMapper.xml

@@ -156,13 +156,29 @@
         from standard_document a left join admin b on a.aid=b.id
                                  left join department c on a.dep_id=c.id
         where  1=1
+        <include refid="standardSql"/>
     </select>
+    <sql id="standardSql">
+        <if test="status !=null">
+            and a.status = #{status,jdbcType=INTEGER}
+        </if>
+        <if  test="startTime !=null and endTime !=null">
+            and a.create_time between #{startTime,jdbcType=TIMESTAMP} and #{endTime,jdbcType=TIMESTAMP}
+        </if>
+        <if test="depId !=null">
+            and a.dep_id = #{depId,jdbcType=VARCHAR}
+        </if>
+        <if test="name !=null">
+            and a.name like concat('%',#{name,jdbcType=VARCHAR},'%')
+        </if>
+    </sql>
 
     <select id="standardCount"  resultType="java.lang.Integer">
         select
             count(*)
         from standard_document a
         where  1=1
+        <include refid="standardSql"/>
     </select>