| | |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <!--机床回传程序处理分页--> |
| | | <select id="handlePageQuery" resultType="org.springblade.mdm.machineback.vo.MachineBackFileVO"> |
| | | select f.id,p.name program_name,p.is_cured,f.create_time,m.code machine_code, m.name machine_name,f.create_time arrived_time |
| | | from mdm_machine_back_file f join mdm_machine m on f.machine_code=m.code |
| | |
| | | <where> |
| | | f.status=2 and f.is_deleted=0 |
| | | |
| | | <if test="query.machineSpec!=null and query.machineSpec!=''"> |
| | | and m.machine_spec=#{query.machineSpec,jdbcType=VARCHAR} |
| | | <if test="query.confirmTimeBegin!=null"> |
| | | and m.confirm_time$gt;=#{query.confirmTimeBegin} |
| | | </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 p.name like CONCAT('%', #{query.keyword,jdbcType=VARCHAR},'%') |
| | | ) |
| | | <if test="query.confirmTimeEnd!=null"> |
| | | and m.confirm_time$lt;#{query.confirmTimeEnd} |
| | | </if> |
| | | </where> |
| | | </select> |