yangys
2025-09-18 a3048fa6fa72fa3cc5da2c43c59bd000e00c9599
blade-service/blade-mdm/src/main/java/org/springblade/mdm/machinefile/mapper/MachineFileMapper.xml
@@ -89,4 +89,25 @@
        </where>
        order by f.file_create_time desc
    </select>
    <!--异常文件记录查询-->
    <select id="exceptionFilePageQuery" resultType="org.springblade.mdm.machinefile.entity.MachineFile">
        select f.id,f.name,f.machine_code,f.file_create_time, f.file_modify_time,f.md5,f.file_size,f.exception_type,f.create_time,f.update_time
        from mdm_machine_file f join mdm_machine m on f.machine_code=m.code and m.is_deleted=0
        <where>
            f.dir_type='REC' and f.is_deleted=0 and f.exception_type is not null and f.exception_type &lt;&gt; 0
            <if test="query.name!=null and query.name!=''">
                and f.name like CONCAT('%', #{query.name,jdbcType=VARCHAR},'%')
            </if>
            <if test="query.fileCreateTimeBegin!=null">
                and  f.file_create_time &gt;= #{query.fileCreateTimeBegin}
            </if>
            <if test="query.fileCreateTimeEnd!=null">
                and  f.file_create_time &lt;= #{query.fileCreateTimeEnd}
            </if>
        </where>
        order by f.file_create_time desc
    </select>
</mapper>