소스 검색

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

anderx 1 년 전
부모
커밋
64c38bb5c4
1개의 변경된 파일16개의 추가작업 그리고 0개의 파일을 삭제
  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>