|
|
|
@ -43,6 +43,7 @@ import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
@ -360,7 +361,9 @@ public class DashboardController {
|
|
|
|
todoRespVO.setCode(moldRepairDO.getRepairCode());
|
|
|
|
todoRespVO.setCode(moldRepairDO.getRepairCode());
|
|
|
|
todoRespVO.setName(moldRepairDO.getRepairName());
|
|
|
|
todoRespVO.setName(moldRepairDO.getRepairName());
|
|
|
|
todoRespVO.setType("模具维修");
|
|
|
|
todoRespVO.setType("模具维修");
|
|
|
|
todoRespVO.setDeviceName(moldService.getMold(moldRepairDO.getMoldId()).getName());
|
|
|
|
todoRespVO.setDeviceName( moldRepairDO.getMoldId() != null && moldService.getMold(moldRepairDO.getMoldId()) != null
|
|
|
|
|
|
|
|
? moldService.getMold(moldRepairDO.getMoldId()).getName()
|
|
|
|
|
|
|
|
: "未知设备");
|
|
|
|
todoRespVO.setCreateTime(moldRepairDO.getCreateTime());
|
|
|
|
todoRespVO.setCreateTime(moldRepairDO.getCreateTime());
|
|
|
|
todoRespVOList.add(todoRespVO);
|
|
|
|
todoRespVOList.add(todoRespVO);
|
|
|
|
|
|
|
|
|
|
|
|
@ -492,8 +495,9 @@ public class DashboardController {
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/getTaskStatistics")
|
|
|
|
@GetMapping("/getTaskStatistics")
|
|
|
|
@Operation(summary = "获得各设备统计个数")
|
|
|
|
@Operation(summary = "获得各设备统计个数")
|
|
|
|
|
|
|
|
@Parameter(name = "orgId", description = "产线组织Id")
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:device-ledger:query')")
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:device-ledger:query')")
|
|
|
|
public CommonResult<EventStatisticsVO> getTaskStatistics() {
|
|
|
|
public CommonResult<EventStatisticsVO> getTaskStatistics(@RequestParam(name = "orgId") Long orgId) {
|
|
|
|
|
|
|
|
|
|
|
|
EventStatisticsVO vo = new EventStatisticsVO();
|
|
|
|
EventStatisticsVO vo = new EventStatisticsVO();
|
|
|
|
//设备点检
|
|
|
|
//设备点检
|
|
|
|
@ -553,9 +557,9 @@ public class DashboardController {
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/getAllTaskList")
|
|
|
|
@GetMapping("/getAllTaskList")
|
|
|
|
@Operation(summary = "获得所有任务")
|
|
|
|
@Operation(summary = "获得所有任务")
|
|
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
|
|
|
@Parameter(name = "orgId", description = "产线组织Id")
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:bom:query')")
|
|
|
|
@PreAuthorize("@ss.hasPermission('mes:bom:query')")
|
|
|
|
public CommonResult<List<TaskVO>> getAllTaskList() {
|
|
|
|
public CommonResult<List<TaskVO>> getAllTaskList(@RequestParam(name = "orgId") Long orgId) {
|
|
|
|
List<TaskVO> taskVOList = new ArrayList<>();
|
|
|
|
List<TaskVO> taskVOList = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
// 设备保养 点检
|
|
|
|
// 设备保养 点检
|
|
|
|
|