| | |
| | | </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 <> 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 >= #{query.fileCreateTimeBegin} |
| | | </if> |
| | | <if test="query.fileCreateTimeEnd!=null"> |
| | | and f.file_create_time <= #{query.fileCreateTimeEnd} |
| | | </if> |
| | | </where> |
| | | order by f.file_create_time desc |
| | | </select> |
| | | </mapper> |