| | |
| | | <mapper namespace="org.springblade.mdm.program.mapper.ProgramOnMachineMapper"> |
| | | |
| | | |
| | | <select id="pageQuery" resultType="org.springblade.mdm.program.vo.ProgramOnMachineVO"> |
| | | select p.id,p.drawing_no,p.process_no,p.process_edition,p.deviation,p.deviation_serial,p.machine_code,p.process_instance_id,p.create_time,u.name create_user_name |
| | | from mdm_program_on_machine p left join blade_user u on p.create_user=u.id |
| | | <where> |
| | | p.is_deleted=0 |
| | | |
| | | <if test="query.drawingNo!=null and query.drawingNo!=''"> |
| | | <bind name="dno" value="'%'+query.drawingNo+'%'"/> |
| | | and p.drawing_no like #{dno} |
| | | </if> |
| | | <if test="query.createTimeBegin!=null"> |
| | | and p.create_time >= #{query.createTimeBegin} |
| | | </if> |
| | | <if test="query.createTimeEnd!=null"> |
| | | and p.create_time <= #{query.createTimeEnd} |
| | | </if> |
| | | </where> |
| | | order by p.create_time desc; |
| | | </select> |
| | | </mapper> |