| | |
| | |
|
| | | mdcUtilization.setCncSystem(account.getCncSystem());
|
| | |
|
| | | Machine mdcMachine = machineMapper.selectById(status.getMachineId());
|
| | | Workshop mdcWorkshop = workshopMapper.selectById(mdcMachine.getWorkshopId());
|
| | | Section mdcSection = sectionMapper.selectById(mdcMachine.getSectionId());
|
| | | mdcUtilization.setWorkshop(mdcWorkshop.getName());
|
| | | mdcUtilization.setSection(mdcSection.getName());
|
| | | |
| | | mdcUtilization.setShift(mdcMachine.getShiftType());
|
| | | Machine machine = machineMapper.selectById(status.getMachineId());
|
| | | Workshop workshop = workshopMapper.selectById(machine.getWorkshopId());
|
| | | Section section = sectionMapper.selectById(machine.getSectionId());
|
| | | if(workshop != null) {
|
| | | mdcUtilization.setWorkshop(workshop.getName());
|
| | | }
|
| | | |
| | | if(section != null) {
|
| | | mdcUtilization.setSection(section.getName());
|
| | | }
|
| | | mdcUtilization.setShift(machine.getShiftType());
|
| | |
|
| | | DateFormat df = new SimpleDateFormat("yyyyMMdd");
|
| | | mdcUtilization.setCdate(df.format((long) status.getTime() * 1000));
|