kongzy
2024-06-03 022b17044ab6bb284fd6313da91d1d1dfb2d5079
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gkhy.assess.system.mapper.AssAccessoryFileMapper">
    <update id="deleteAccessoryFileById" parameterType="java.lang.Long">
        update ass_accessory_file set del_flag=1 where id=#{accessoryFileId}
    </update>
 
 
    <select id="getAccessoryFileByProjectId" resultType="com.gkhy.assess.system.domain.AssAccessoryFile">
        select id,file_name,path,module_type,project_id,process_id,del_flag,origin_name,create_time from ass_accessory_file
        where project_id=#{projectId} and del_flag=0 and module_type=#{moduleType}
        <if test="processId!=null and processId!=''">
            and process_id=#{processId}
        </if>
    </select>
 
    <select id="getAccessoryFileCountByProjectId" resultType="java.lang.Integer">
        select count(1) from ass_accessory_file
        where project_id=#{projectId} and del_flag=0 and module_type=#{moduleType}
        <if test="processId!=null and processId!=''">
            and process_id=#{processId}
        </if>
    </select>
</mapper>