| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.mdc.mapper.MdcEquipmentOvertimeMapper"> |
| | | |
| | | <!--分页查询--> |
| | | <select id="pageList" resultType="org.jeecg.modules.mdc.entity.MdcEquipmentOvertime"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | mdc_equipment_overtime |
| | | <where> |
| | | <if test="mdcEquipmentOvertime.equipmentId != null and mdcEquipmentOvertime.equipmentId != '' "> |
| | | AND equipment_id LIKE CONCAT(CONCAT('%',#{mdcEquipmentOvertime.equipmentId}),'%') |
| | | </if> |
| | | <if test="mdcEquipmentOvertime.startTime != null and mdcEquipmentOvertime.endTime != null"> |
| | | AND efficient_date BETWEEN #{ mdcEquipmentOvertime.startTime } AND #{ mdcEquipmentOvertime.endTime } |
| | | </if> |
| | | <if test="mdcEquipmentOvertime.mdcSectionIds != null and mdcEquipmentOvertime.mdcSectionIds.size() > 0 "> |
| | | AND equipment_id IN |
| | | <foreach collection="mdcEquipmentOvertime.mdcSectionIds" item="id" index="index" open="(" close=")" separator=","> |
| | | #{ id } |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | order by |
| | | </select> |
| | | </mapper> |