<?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="org.springblade.mdm.machinefile.mapper.MachineFileChangeHisMapper">
|
<resultMap id="BaseResultMap" type="org.springblade.mdm.machinefile.entity.MachineFileChangeHis">
|
<id column="id" property="id"/>
|
<result column="status" property="status"/>
|
<result column="create_time" property="createTime"/>
|
<result column="update_time" property="updateTime"/>
|
<result column="is_deleted" property="isDeleted"/>
|
</resultMap>
|
|
<!--机床回传文件分页查询-->
|
<select id="pageQuery" resultType="org.springblade.mdm.machinefile.vo.MachineFileChangeHisVO">
|
select h.id,u.name,h.create_time
|
from mdm_machine_file_change_his h inner join blade_user u on h.create_user=u.id
|
<where>
|
h.is_deleted= 0 and h.machine_file_id=#{query.machineFileId}
|
|
<if test="query.name!=null and query.name!=''">
|
and u.name like CONCAT('%', #{query.name,jdbcType=VARCHAR},'%')
|
</if>
|
<if test="query.createTimeBegin!=null">
|
and h.create_time>=#{query.createTimeBegin}
|
</if>
|
<if test="query.createTimeEnd!=null">
|
and h.create_time<=#{query.createTimeEnd}
|
</if>
|
</where>
|
order by h.create_time desc
|
</select>
|
|
|
|
</mapper>
|