| | |
| | | <result column="update_time" property="updateTime"/> |
| | | <result column="is_deleted" property="isDeleted"/> |
| | | </resultMap> |
| | | <select id="machineBackFilePageQuery" resultType="org.springblade.mdm.machineback.vo.MachineBackFileVO"> |
| | | select f.id,f.name,f.machine_code,f.file_create_time arrived_time,f.md5,f.file_size |
| | | 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 |
| | | |
| | | <if test="query.machineSpec!=null and query.machineSpec!=''"> |
| | | and m.machine_spec=#{query.machineSpec,jdbcType=VARCHAR} |
| | | </if> |
| | | <if test="query.keyword!=null and query.keyword!=''"> |
| | | and ( |
| | | m.code like CONCAT('%', #{query.keyword,jdbcType=VARCHAR},'%') or m.name like CONCAT('%', #{query.keyword,jdbcType=VARCHAR},'%') |
| | | or f.name like CONCAT('%', #{query.keyword,jdbcType=VARCHAR},'%') |
| | | ) |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | </mapper> |