| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | String userId = user.getId(); |
| | | String key = ""; |
| | | if (StringUtils.isNotBlank(productionCode)) { |
| | | //厂区 |
| | | //厂区/工段 |
| | | MdcProduction mdcProduction = mdcProductionService.getOne(new LambdaQueryWrapper<MdcProduction>().eq(MdcProduction::getProductionCode, productionCode).eq(MdcProduction::getDelFlag, CommonConstant.DEL_FLAG_0.toString())); |
| | | key = mdcProduction.getId(); |
| | | } else { |
| | |
| | | } |
| | | } |
| | | List<MdcCommonVo> resultMap = mdcHomeService.getEquipmentStatusStatistics(userId, key); |
| | | return Result.OK(resultMap); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("list", resultMap); |
| | | map.put("producitonId", key); |
| | | return Result.OK(map); |
| | | } |
| | | |
| | | @ApiOperation(value = "MDC首页接口-设备利用率统计(昨日)", notes = "MDC首页接口-设备运行状态统计(昨日)") |