<?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.MdcOeeInfoMapper">
|
|
<select id="oeeList" resultType="org.jeecg.modules.mdc.entity.MdcOeeInfo">
|
SELECT
|
*
|
FROM
|
mdc_oee_info
|
<where>
|
AND work_date BETWEEN #{vo.startTime} AND #{vo.endTime}
|
<if test="vo.shiftSubId != null and vo.shiftSubId != '' ">
|
AND shift_sub_id = #{vo.shiftSubId}
|
</if>
|
<if test="vo.equipmentIdList != null and vo.equipmentIdList.size() > 0 ">
|
AND equipment_id IN
|
<foreach collection="vo.equipmentIdList" item="id" index="index" open="(" close=")" separator=",">
|
#{ id }
|
</foreach>
|
</if>
|
</where>
|
ORDER BY work_date
|
</select>
|
</mapper>
|