|
@@ -64,6 +64,14 @@
|
|
|
DELETE FROM t_cadastre_file WHERE id = #{id}
|
|
DELETE FROM t_cadastre_file WHERE id = #{id}
|
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
+ <delete id="batchDelete">
|
|
|
|
|
+ DELETE FROM t_cadastre_file
|
|
|
|
|
+ WHERE id IN
|
|
|
|
|
+ <foreach collection="ids" item="id" open="(" separator="," close=")">
|
|
|
|
|
+ #{id}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </delete>
|
|
|
|
|
+
|
|
|
<select id="getList" resultMap="cadastreFileMap">
|
|
<select id="getList" resultMap="cadastreFileMap">
|
|
|
SELECT <include refid="Base_Column_List"/>
|
|
SELECT <include refid="Base_Column_List"/>
|
|
|
FROM t_cadastre_file
|
|
FROM t_cadastre_file
|
|
@@ -147,8 +155,6 @@
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<select id="getListByFilter" parameterType="com.siwei.apply.domain.vo.CadastreFileFilterVo" resultMap="cadastreFileMap">
|
|
<select id="getListByFilter" parameterType="com.siwei.apply.domain.vo.CadastreFileFilterVo" resultMap="cadastreFileMap">
|
|
|
SELECT <include refid="Base_Column_List"/>
|
|
SELECT <include refid="Base_Column_List"/>
|
|
|
FROM t_cadastre_file
|
|
FROM t_cadastre_file
|
|
@@ -159,11 +165,14 @@
|
|
|
<if test="fileType != null and fileType != ''">
|
|
<if test="fileType != null and fileType != ''">
|
|
|
AND file_type = #{fileType}
|
|
AND file_type = #{fileType}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="uploadTime != null and uploadTime != ''">
|
|
|
|
|
- AND to_char(upload_time, 'YYYY-MM-DD') = #{uploadTime}
|
|
|
|
|
|
|
+ <if test="storageBeginTime != null and storageBeginTime != ''"><!-- 结束时间检索 -->
|
|
|
|
|
+ AND "upload_time" <= TO_TIMESTAMP(#{storageBeginTime}, 'YYYY-MM-DD HH24:MI:SS')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="storageEndTime != null and storageEndTime != ''"><!-- 结束时间检索 -->
|
|
|
|
|
+ AND "upload_time" <= TO_TIMESTAMP(#{storageEndTime}, 'YYYY-MM-DD HH24:MI:SS')+ INTERVAL '1 day'
|
|
|
</if>
|
|
</if>
|
|
|
<if test="readStatus != null and readStatus != ''">
|
|
<if test="readStatus != null and readStatus != ''">
|
|
|
- AND status = #{readStatus}
|
|
|
|
|
|
|
+ AND read_status = #{readStatus}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
ORDER BY upload_time DESC
|
|
ORDER BY upload_time DESC
|
|
@@ -180,11 +189,17 @@
|
|
|
<if test="fileType != null and fileType != ''">
|
|
<if test="fileType != null and fileType != ''">
|
|
|
AND file_type = #{fileType}
|
|
AND file_type = #{fileType}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="uploadTime != null and uploadTime != ''">
|
|
|
|
|
- AND to_char(upload_time, 'YYYY-MM-DD') = #{uploadTime}
|
|
|
|
|
|
|
+ <if test="storageBeginTime != null and storageBeginTime != ''"><!-- 结束时间检索 -->
|
|
|
|
|
+ AND "upload_time" <= TO_TIMESTAMP(#{storageBeginTime}, 'YYYY-MM-DD HH24:MI:SS')
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="status != null and status != ''">
|
|
|
|
|
- AND status = #{status}
|
|
|
|
|
|
|
+ <if test="storageEndTime != null and storageEndTime != ''"><!-- 结束时间检索 -->
|
|
|
|
|
+ AND "upload_time" <= TO_TIMESTAMP(#{storageEndTime}, 'YYYY-MM-DD HH24:MI:SS')+ INTERVAL '1 day'
|
|
|
|
|
+ </if>
|
|
|
|
|
+<!-- <if test="uploadTime != null and uploadTime != ''">-->
|
|
|
|
|
+<!-- AND to_char(upload_time, 'YYYY-MM-DD') = #{uploadTime}-->
|
|
|
|
|
+<!-- </if>-->
|
|
|
|
|
+ <if test="readStatus != null and readStatus != ''">
|
|
|
|
|
+ AND read_status = #{readStatus}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|