| | |
| | | } |
| | | |
| | | /** |
| | | *首页公司级 技术状态数量统计 |
| | | * qsw 2024-3-13 |
| | | */ |
| | | @GetMapping("getFactoryEquipmentTechnologyStatusList") |
| | | public Result<?> getFactoryEquipmentTechnologyStatusList() { |
| | | List<Map<String, Object>> list = calibrationOrderService.getFactoryEquipmentTechnologyStatusList(); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | /** |
| | | *首页公司级 设备报修情况统计 |
| | | * qsw 2024-3-13 |
| | | */ |
| | | @GetMapping("getFactoryReportRepairEquipmentList") |
| | | public Result<?> getFactoryReportRepairEquipmentList() { |
| | | List<Map<String, Object>> list = calibrationOrderService.getFactoryReportRepairEquipmentList(); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | /** |
| | | *首页公司级 本月三保计划 |
| | | * qsw 2024-3-14 |
| | | */ |
| | | @GetMapping("getFactoryThisMonthMaintenanceList") |
| | | public Result<?> getFactoryThisMonthMaintenanceList() { |
| | | List<Map<String, Object>> list = calibrationOrderService.getFactoryThisMonthMaintenanceList(); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | /** |
| | | *首页公司级 下月三保计划 |
| | | * qsw 2024-3-14 |
| | | */ |
| | | @GetMapping("getFactoryNextMonthMaintenanceList") |
| | | public Result<?> getFactoryNextMonthMaintenanceList() { |
| | | List<Map<String, Object>> list = calibrationOrderService.getFactoryNextMonthMaintenanceList(); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | /** |
| | | *首页公司级 下下月三保计划 |
| | | * qsw 2024-3-14 |
| | | */ |
| | | @GetMapping("getFactoryNextNextMonthMaintenanceList") |
| | | public Result<?> getFactoryNextNextMonthMaintenanceList() { |
| | | List<Map<String, Object>> list = calibrationOrderService.getFactoryNextNextMonthMaintenanceList(); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | /** |
| | | *首页技术状态数量统计 |
| | | * qsw 2024-3-13 |
| | | */ |
| | |
| | | List<Map<String, Object>> getPrecisionParameterList(@Param("equipmentId")String equipmentId); |
| | | |
| | | /** |
| | | *首页公司级 技术状态数量统计 |
| | | * qsw 2024-3-13 |
| | | */ |
| | | List<Map<String, Object>> getFactoryEquipmentTechnologyStatusList(); |
| | | |
| | | /** |
| | | *首页公司级 设备报修情况统计 |
| | | * qsw 2024-3-13 |
| | | */ |
| | | List<Map<String, Object>> getFactoryReportRepairEquipmentList(); |
| | | |
| | | /** |
| | | *首页公司级 本月三保计划 |
| | | * qsw 2024-3-14 |
| | | */ |
| | | List<Map<String, Object>> getFactoryThisMonthMaintenanceList(); |
| | | |
| | | /** |
| | | *首页公司级 下月三保计划 |
| | | * qsw 2024-3-14 |
| | | */ |
| | | List<Map<String, Object>> getFactoryNextMonthMaintenanceList(); |
| | | |
| | | /** |
| | | *首页公司级 下下月三保计划 |
| | | * qsw 2024-3-14 |
| | | */ |
| | | List<Map<String, Object>> getFactoryNextNextMonthMaintenanceList(); |
| | | |
| | | /** |
| | | *首页技术状态数量统计 |
| | | * qsw 2024-3-13 |
| | | */ |
| | |
| | | WHERE t1.del_flag = 0 and t1.equipment_id = #{equipmentId} |
| | | </select> |
| | | |
| | | <select id="getFactoryEquipmentTechnologyStatusList" parameterType="String" resultType="Map"> |
| | | SELECT |
| | | ( SELECT COUNT ( 0 ) FROM mom_eam_equipment WHERE del_flag = '0' and technology_status = 'qualified') as qualifiedCount, |
| | | ( SELECT COUNT ( 0 ) FROM mom_eam_equipment WHERE del_flag = '0' and technology_status = 'limitedUse') as limitedUseCount, |
| | | ( SELECT COUNT ( 0 ) FROM mom_eam_equipment WHERE del_flag = '0' and technology_status = 'disabled') as disabledCount |
| | | </select> |
| | | |
| | | <select id="getFactoryReportRepairEquipmentList" parameterType="String" resultType="Map"> |
| | | SELECT |
| | | ( select COUNT(0) from mom_eam_equipment_report_repair t1 left join mom_eam_equipment t2 on t1.equipment_id = t2.id WHERE del_flag = '0' and SUBSTRING(CONVERT(VARCHAR(10), t1.fault_time, 120), 1, 10) = SUBSTRING(CONVERT(VARCHAR(10), GETDATE(), 120), 1, 10)) as failurTotalCount, |
| | | ( select COUNT(0) from mom_eam_equipment_report_repair t1 left join mom_eam_equipment t2 on t1.equipment_id = t2.id where del_flag = '0' and t1.is_stop = '1' and SUBSTRING(CONVERT(VARCHAR(10), t1.fault_time, 120), 1, 10) = SUBSTRING(CONVERT(VARCHAR(10), GETDATE(), 120), 1, 10)) as noStopCount, |
| | | ( select COUNT(0) from mom_eam_equipment_report_repair t1 left join mom_eam_equipment t2 on t1.equipment_id = t2.id where del_flag = '0' and t1.is_stop = '2' and SUBSTRING(CONVERT(VARCHAR(10), t1.fault_time, 120), 1, 10) = SUBSTRING(CONVERT(VARCHAR(10), GETDATE(), 120), 1, 10)) as stopCount |
| | | </select> |
| | | |
| | | <select id="getFactoryThisMonthMaintenanceList" parameterType="String" resultType="Map"> |
| | | select count(0) from mom_eam_equipment t1 where t1.del_flag = '0' and SUBSTRING(CONVERT(VARCHAR(10), t1.next_third_maintenance_time, 120), 1, 7) = SUBSTRING(CONVERT(VARCHAR(10), GETDATE(), 120), 1, 7) |
| | | </select> |
| | | |
| | | <select id="getFactoryNextMonthMaintenanceList" parameterType="String" resultType="Map"> |
| | | select count(0) from mom_eam_equipment t1 where t1.del_flag = '0' and SUBSTRING(CONVERT(VARCHAR(10), t1.next_third_maintenance_time, 120), 1, 7) = SUBSTRING(CONVERT(VARCHAR(10), DATEADD(MONTH, 1, GETDATE()), 120), 1, 7) |
| | | </select> |
| | | |
| | | <select id="getFactoryNextNextMonthMaintenanceList" parameterType="String" resultType="Map"> |
| | | select count(0) from mom_eam_equipment t1 where t1.del_flag = '0' and SUBSTRING(CONVERT(VARCHAR(10), t1.next_third_maintenance_time, 120), 1, 7) = SUBSTRING(CONVERT(VARCHAR(10), DATEADD(MONTH,2 , GETDATE()), 120), 1, 7) |
| | | </select> |
| | | |
| | | <select id="getEquipmentTechnologyStatusList" parameterType="String" resultType="Map"> |
| | | SELECT |
| | | ( SELECT COUNT ( 0 ) FROM mom_eam_equipment WHERE del_flag = '0' and technology_status = 'qualified' and factory_model_id = #{factoryModelId}) as qualifiedCount, |
| | |
| | | |
| | | |
| | | /** |
| | | *首页公司级 技术状态数量统计 |
| | | * qsw 2024-3-13 |
| | | */ |
| | | List<Map<String, Object>> getFactoryEquipmentTechnologyStatusList(); |
| | | |
| | | /** |
| | | *首页公司级 设备报修情况统计 |
| | | * qsw 2024-3-13 |
| | | */ |
| | | List<Map<String, Object>> getFactoryReportRepairEquipmentList(); |
| | | |
| | | /** |
| | | *首页公司级 本月三保计划 |
| | | * qsw 2024-3-14 |
| | | */ |
| | | List<Map<String, Object>> getFactoryThisMonthMaintenanceList(); |
| | | |
| | | /** |
| | | *首页公司级 下月三保计划 |
| | | * qsw 2024-3-14 |
| | | */ |
| | | List<Map<String, Object>> getFactoryNextMonthMaintenanceList(); |
| | | |
| | | /** |
| | | *首页公司级 下下月三保计划 |
| | | * qsw 2024-3-14 |
| | | */ |
| | | List<Map<String, Object>> getFactoryNextNextMonthMaintenanceList(); |
| | | |
| | | |
| | | /** |
| | | *首页技术状态数量统计 |
| | | * qsw 2024-3-13 |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | *首页公司级 技术状态数量统计 |
| | | * qsw 2024-3-13 |
| | | */ |
| | | @Override |
| | | public List<Map<String, Object>> getFactoryEquipmentTechnologyStatusList() { |
| | | return this.baseMapper.getFactoryEquipmentTechnologyStatusList(); |
| | | } |
| | | |
| | | /** |
| | | *首页设备报修情况统计 |
| | | * qsw 2024-3-13 |
| | | */ |
| | | @Override |
| | | public List<Map<String, Object>> getFactoryReportRepairEquipmentList() { |
| | | return this.baseMapper.getFactoryReportRepairEquipmentList(); |
| | | } |
| | | |
| | | /** |
| | | *首页本月三保计划 |
| | | * qsw 2024-3-14 |
| | | */ |
| | | @Override |
| | | public List<Map<String, Object>> getFactoryThisMonthMaintenanceList() { |
| | | return this.baseMapper.getFactoryThisMonthMaintenanceList(); |
| | | } |
| | | |
| | | /** |
| | | *首页下月三保计划 |
| | | * qsw 2024-3-14 |
| | | */ |
| | | @Override |
| | | public List<Map<String, Object>> getFactoryNextMonthMaintenanceList() { |
| | | return this.baseMapper.getFactoryNextMonthMaintenanceList(); |
| | | } |
| | | |
| | | /** |
| | | *首页下下月三保计划 |
| | | * qsw 2024-3-14 |
| | | */ |
| | | @Override |
| | | public List<Map<String, Object>> getFactoryNextNextMonthMaintenanceList() { |
| | | return this.baseMapper.getFactoryNextNextMonthMaintenanceList(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | *首页技术状态数量统计 |
| | | * qsw 2024-3-13 |
| | | */ |