|
@@ -49,6 +49,7 @@
|
|
<result column="sort" property="sort"/>
|
|
<result column="sort" property="sort"/>
|
|
<result column="box_name" property="boxName"/>
|
|
<result column="box_name" property="boxName"/>
|
|
<result column="box_number" property="boxNumber"/>
|
|
<result column="box_number" property="boxNumber"/>
|
|
|
|
+ <result column="is_auto_file" property="isAutoFile"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
<update id="recoveryByIds">
|
|
<update id="recoveryByIds">
|
|
update u_archive_file set is_deleted = 0 where
|
|
update u_archive_file set is_deleted = 0 where
|
|
@@ -59,7 +60,7 @@
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<select id="selectArchiveFileCount" resultType="java.lang.Integer">
|
|
<select id="selectArchiveFileCount" resultType="java.lang.Integer">
|
|
- select count(id) from u_archive_file where is_deleted = 0
|
|
|
|
|
|
+ select count(id) from u_archive_file where is_deleted = 0 and is_auto_file != 1
|
|
<if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
|
|
<if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
|
|
and status = #{vo.isApprovalValue}
|
|
and status = #{vo.isApprovalValue}
|
|
</if>
|
|
</if>
|
|
@@ -72,6 +73,7 @@
|
|
<if test="vo.contractId != null and vo.contractId != ''">
|
|
<if test="vo.contractId != null and vo.contractId != ''">
|
|
and contract_id = #{vo.contractId}
|
|
and contract_id = #{vo.contractId}
|
|
</if>
|
|
</if>
|
|
|
|
+
|
|
<if test="vo.nodeIds != null and vo.nodeIds != ''">
|
|
<if test="vo.nodeIds != null and vo.nodeIds != ''">
|
|
and node_id in
|
|
and node_id in
|
|
<foreach collection="vo.nodeIdArray" item="nodeId" open="(" separator="," close=")">
|
|
<foreach collection="vo.nodeIdArray" item="nodeId" open="(" separator="," close=")">
|
|
@@ -91,7 +93,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectArchiveFilePage" resultMap="archiveFileResultMap">
|
|
<select id="selectArchiveFilePage" resultMap="archiveFileResultMap">
|
|
- select * from u_archive_file where is_deleted = 0
|
|
|
|
|
|
+ select * from u_archive_file where is_deleted = 0 and is_auto_file != 1
|
|
<if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
|
|
<if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
|
|
and status = #{vo.isApprovalValue}
|
|
and status = #{vo.isApprovalValue}
|
|
</if>
|
|
</if>
|
|
@@ -124,7 +126,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectArchiveFilePageByBoxNameCount" resultType="java.lang.Integer">
|
|
<select id="selectArchiveFilePageByBoxNameCount" resultType="java.lang.Integer">
|
|
- select count(id) from u_archive_file where is_deleted = 0
|
|
|
|
|
|
+ select count(id) from u_archive_file where is_deleted = 0 and is_auto_file != 1
|
|
<if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
|
|
<if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
|
|
and status = #{vo.isApprovalValue}
|
|
and status = #{vo.isApprovalValue}
|
|
</if>
|
|
</if>
|
|
@@ -166,7 +168,7 @@
|
|
order by box_number,sort,create_time DESC
|
|
order by box_number,sort,create_time DESC
|
|
</select>
|
|
</select>
|
|
<select id="selectArchiveFilePageByBoxName" resultMap="archiveFileResultMap">
|
|
<select id="selectArchiveFilePageByBoxName" resultMap="archiveFileResultMap">
|
|
- select * from u_archive_file where is_deleted = 0
|
|
|
|
|
|
+ select * from u_archive_file where is_deleted = 0 and is_auto_file != 1
|
|
<if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
|
|
<if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
|
|
and status = #{vo.isApprovalValue}
|
|
and status = #{vo.isApprovalValue}
|
|
</if>
|
|
</if>
|