| | |
| | | #{ id } |
| | | </foreach> |
| | | </if> |
| | | ORDER BY t1.the_date ASC |
| | | ORDER BY t1.the_date,t1.equipment_id ASC |
| | | </select> |
| | | |
| | | |
| | | <!--分页列表查询--> |
| | | <select id="list" resultType="org.jeecg.modules.mdc.dto.MdcEquipmentMagnificationDto"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | mdc_equipment_magnification t1 |
| | | WHERE 1=1 |
| | | <if test="magnificationVo.equipmentId != null and magnificationVo.equipmentId != ''"> |
| | | AND t1.equipment_id = #{ magnificationVo.equipmentId } |
| | | </if> |
| | | <if test="magnificationVo.startTime != null and magnificationVo.startTime != ''"> |
| | | AND t1.the_date >= #{ magnificationVo.startTime } |
| | | </if> |
| | | <if test="magnificationVo.endTime != null and magnificationVo.endTime != ''"> |
| | | AND t1.the_date <= #{ magnificationVo.endTime } |
| | | </if> |
| | | <if test="magnificationVo.equipmentIdList != null and magnificationVo.equipmentIdList.size() > 0 "> |
| | | AND t1.equipment_id IN |
| | | <foreach collection="magnificationVo.equipmentIdList" item="id" index="index" open="(" close=")" separator=","> |
| | | #{ id } |
| | | </foreach> |
| | | </if> |
| | | ORDER BY t1.the_date,t1.equipment_id ASC |
| | | </select> |
| | | </mapper> |