kongzy
2024-06-03 022b17044ab6bb284fd6313da91d1d1dfb2d5079
assess-system/src/main/resources/mapper/AssAccessoryFileMapper.xml
@@ -7,12 +7,18 @@
    <select id="getAccessoryFileByProjectId" resultType="com.gkhy.assess.system.domain.AssAccessoryFile">
        select id,file_name,path,module_type,project_id,del_flag,origin_name,create_time from ass_accessory_file
        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>