| | |
| | | */ |
| | | IPage<MdcEquipmentRepair> pageList(IPage<MdcEquipmentRepair> pageData, @Param("repair") MdcEquipmentRepair repair); |
| | | |
| | | List<MdcEquipmentRepair> selectByIdAndTime(@Param("equipmentId") String equipmentid, @Param("startDate") Date startDate, @Param("endDate") Date endDate); |
| | | List<MdcEquipmentRepair> selectByIdAndTime(@Param("equipmentId") String equipmentid, @Param("startTime") Date startDate, @Param("endTime") Date endDate); |
| | | } |
| | |
| | | LEFT JOIN mdc_equipment t4 ON t1.equment_id = t4.equipment_id |
| | | <where> |
| | | <if test="equipmentid != null and equipmentid != ''"> |
| | | AND t4.equment_id = #{ equipmentid } |
| | | AND t4.equipment_id = #{ equipmentid } |
| | | </if> |
| | | <if test="stringDate != null and stringDate != ''"> |
| | | AND t1.effective_date = #{ stringDate } |
| | |
| | | |
| | | <select id="findAcquiesceShift" resultType="org.jeecg.modules.mdc.vo.MdcDeviceCalendarVo"> |
| | | SELECT |
| | | t1.shift_id shiftId, |
| | | t2.shift_sub_id shiftSubId, |
| | | t1.id shiftId, |
| | | t2.id shiftSubId, |
| | | t1.shift_name shiftName, |
| | | t2.shift_sub_name shiftSubName, |
| | | t2.start_date startDate, |
| | |
| | | t2.sleep_end_date sleepEndDate, |
| | | t2.is_day_span isDaySpan |
| | | FROM |
| | | mdc_shift t1 LEFT JOIN mdc_shift_sub t2 ON t1.shift_sub_id = t2.id |
| | | mdc_shift t1 LEFT JOIN mdc_shift_sub t2 ON t2.shift_id = t1.id |
| | | WHERE t1.default_shift = 'true' |
| | | </select> |
| | | |
| | |
| | | SUM ( t1.process_long ) processLong, |
| | | SUM ( t1.open_long ) openLong, |
| | | SUM ( t1.wait_long ) waitLong, |
| | | SUM ( t1.close_long ) closeLong |
| | | SUM ( t1.close_long ) closeLong, |
| | | sum ( t1.total_long ) totalLong |
| | | FROM |
| | | mdc_equipment t2 |
| | | LEFT JOIN mdc_equipment_statistical_shift_info t1 ON t1.equipment_id = t2.equipment_id |
| | |
| | | vo.setOpenLong(vo.getOpenLong().add(equipmentStatisticalShiftInfo.getOpenLong())); |
| | | vo.setWaitLong(vo.getWaitLong().add(equipmentStatisticalShiftInfo.getWaitLong())); |
| | | vo.setCloseLong(vo.getCloseLong().add(equipmentStatisticalShiftInfo.getCloseLong())); |
| | | vo.setTotalLong(vo.getTotalLong().add(equipmentStatisticalShiftInfo.getTotalLong())); |
| | | } else { |
| | | map.put(equipmentStatisticalShiftInfo.getEquipmentId() + "_" + equipmentStatisticalShiftInfo.getTheDate(), equipmentStatisticalShiftInfo); |
| | | } |
| | |
| | | equipmentStatisticalShiftInfo.setCloseLong(equipmentStatisticalShiftInfo.getCloseLong().add(shiftInfo.getCloseLong())); |
| | | equipmentStatisticalShiftInfo.setOpenLong(equipmentStatisticalShiftInfo.getOpenLong().add(shiftInfo.getOpenLong())); |
| | | equipmentStatisticalShiftInfo.setErrorLong(equipmentStatisticalShiftInfo.getErrorLong().add(shiftInfo.getErrorLong())); |
| | | equipmentStatisticalShiftInfo.setTotalLong(equipmentStatisticalShiftInfo.getTotalLong().add(shiftInfo.getTotalLong())); |
| | | } |
| | | resultList.add(equipmentStatisticalShiftInfo); |
| | | } |