|
@@ -44,6 +44,7 @@
|
|
|
<result column="tree_sort" property="nodeSort"/>
|
|
|
<result column="isOpen" property="isOpen"/>
|
|
|
<result column="ischeck" property="ischeck"/>
|
|
|
+ <result column="is_auto_file" property="isAutoFile"/>
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
@@ -53,13 +54,16 @@
|
|
|
|
|
|
|
|
|
<select id="selectArchivesAutoFileCount" resultType="java.lang.Integer">
|
|
|
- select count(id) from u_archive_file where is_deleted = 0
|
|
|
+ select count(id) from u_archives_auto where is_deleted = 0
|
|
|
<if test="vo.projectId != null and vo.projectId != ''">
|
|
|
and project_id = #{vo.projectId}
|
|
|
</if>
|
|
|
<if test="vo.contractId != null and vo.contractId != ''">
|
|
|
and contract_id = #{vo.contractId}
|
|
|
</if>
|
|
|
+ <if test="vo.contractId != null and vo.contractId != ''">
|
|
|
+ and is_auto_file = #{vo.isAutoFile}
|
|
|
+ </if>
|
|
|
<if test="vo.nodeIds != null and vo.nodeIds != ''">
|
|
|
and node_id in
|
|
|
<foreach collection="vo.nodeIdArray" item="nodeId" open="(" separator="," close=")">
|
|
@@ -69,13 +73,16 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectArchivesAutoFilePage" resultMap="archivesAutoResultMap">
|
|
|
- select * from u_archive_file where is_deleted = 0
|
|
|
+ select * from u_archives_auto where is_deleted = 0
|
|
|
<if test="vo.projectId != null and vo.projectId != ''">
|
|
|
and project_id = #{vo.projectId}
|
|
|
</if>
|
|
|
<if test="vo.contractId != null and vo.contractId != ''">
|
|
|
and contract_id = #{vo.contractId}
|
|
|
</if>
|
|
|
+ <if test="vo.isAutoFile != null and vo.isAutoFile != ''">
|
|
|
+ and is_auto_file = #{vo.isAutoFile}
|
|
|
+ </if>
|
|
|
<if test="vo.nodeIds != null and vo.nodeIds != ''">
|
|
|
and node_id in
|
|
|
<foreach collection="vo.nodeIdArray" item="nodeId" open="(" separator="," close=")">
|
|
@@ -85,4 +92,12 @@
|
|
|
order by sort,create_time DESC
|
|
|
</select>
|
|
|
|
|
|
+ <update id="updateArchivesAutoFileByNodeId" >
|
|
|
+ update u_archives_auto set node_id = #{nodeId} where
|
|
|
+ id in
|
|
|
+ <foreach collection="ids" item="id" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
+
|
|
|
</mapper>
|