| | |
| | | equipment_id = #{ equipmentId } |
| | | AND the_date LIKE CONCAT(#{ validDate },'%') |
| | | </select> |
| | | |
| | | |
| | | <select id="findDataForBigScreen" resultType="org.jeecg.modules.mdc.subcontrol.vo.LastWeekDataVo"> |
| | | SELECT |
| | | THE_DATE, |
| | | SUM( close_long ) close_long, |
| | | SUM( open_long ) open_long, |
| | | SUM( error_long ) error_long, |
| | | SUM( wait_long ) wait_long, |
| | | SUM( process_long ) process_long, |
| | | SUM( total_long ) total_long |
| | | FROM |
| | | mdc_equipment_statistical_shift_info |
| | | <where> |
| | | <if test="equipmentIdList != null and equipmentIdList.size() > 0"> |
| | | AND EQUIPMENT_ID IN |
| | | <foreach collection="equipmentIdList" item="id" index="index" open="(" close=")" separator=","> |
| | | #{ id } |
| | | </foreach> |
| | | </if> |
| | | AND THE_DATE >= #{ monday } |
| | | AND THE_DATE <= #{ saturday } |
| | | </where> |
| | | GROUP BY |
| | | THE_DATE |
| | | ORDER BY |
| | | THE_DATE ASC; |
| | | </select> |
| | | </mapper> |