| | |
| | | #{week} |
| | | </foreach> |
| | | </select> |
| | | |
| | | <!-- |
| | | <select id="getDataByMonth" resultType="com.qianwen.smartman.modules.mdc.entity.SuperAggregateState"> |
| | | select ts as startTime, |
| | | end_time as endTime, |
| | |
| | | #{month} |
| | | </foreach> |
| | | </select> |
| | | |
| | | --> |
| | | |
| | | <select id="getDataByMonth" resultType="com.qianwen.smartman.modules.mdc.entity.SuperAggregateState"> |
| | | select |
| | | end_time as endTime, |
| | | duration_collect, |
| | | value_collect, |
| | | calendar_code as calendarCode, |
| | | factory_year as factoryYear, |
| | | factory_month as factoryMonth, |
| | | factory_week as factoryWeek, |
| | | factory_date as factoryDate, |
| | | shift_index as shiftIndex, |
| | | shift_time_type as shiftTimeType, |
| | | wcs, |
| | | rps, |
| | | is_deleted as isDeleted, |
| | | workstation_id as workstationId |
| | | from root.f2.aggregate_state_* |
| | | where is_deleted=false |
| | | and wcs > 0 |
| | | and factory_year = #{year} |
| | | and workstation_id IN |
| | | <foreach collection="workstationIds" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | and factory_month IN |
| | | <foreach collection="monthList" item="month" open="(" separator="," close=")"> |
| | | #{month} |
| | | </foreach> |
| | | align by device |
| | | </select> |
| | | <select id="listCrossDay" resultType="com.qianwen.smartman.modules.mdc.entity.SuperAggregateState"> |
| | | select ts as startTime, |
| | | end_time as endTime, |
| | |
| | | where factory_date = #{factoryDate} |
| | | and wcs > 0 |
| | | and shift_index = #{shiftIndex} |
| | | and calendar_code = '${calendarCode}' |
| | | and calendar_code = "#{calendarCode}" |
| | | and is_deleted = false |
| | | <if test="ids != null and ids.size() > 0"> |
| | | AND workstation_id IN |