<?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.jeecg.modules.mdc.mapper.MdcMttrInfoMapper">
|
|
<!--分页列表-->
|
<select id="pageList" resultType="org.jeecg.modules.mdc.entity.MdcMttrInfo">
|
SELECT
|
*
|
FROM
|
mdc_mttr_info
|
<where>
|
<if test="mdcMttrInfoVo.equipmentId != null and mdcMttrInfoVo.equipmentId != ''">
|
AND equipment_id = #{ mdcMttrInfoVo.equipmentId }
|
</if>
|
<if test="mdcMttrInfoVo.startTime != null and mdcMttrInfoVo.startTime != ''">
|
AND the_date >= #{ mdcMttrInfoVo.startTime }
|
</if>
|
<if test="mdcMttrInfoVo.endTime != null and mdcMttrInfoVo.endTime != ''">
|
AND the_date <= #{mdcMttrInfoVo.endTime }
|
</if>
|
<if test="mdcMttrInfoVo.equipmentIdList != null and mdcMttrInfoVo.equipmentIdList.size() > 0 ">
|
AND equipment_id IN
|
<foreach collection="mdcMttrInfoVo.equipmentIdList" item="id" index="index" open="(" close=")" separator=",">
|
#{ id }
|
</foreach>
|
</if>
|
</where>
|
ORDER BY the_date DESC, equipment_id ASC
|
</select>
|
</mapper>
|