| | |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | | * @param machine 切换设备模式:(上片:【1定制/2标准】),其他设备暂时没有模式 |
| | | * @param machine 添加手动上片任务 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int manualOperationTask(Machine machine){ |
| | | Machine oldmachine=baseMapper.selectById(machine); |
| | | if(!Objects.isNull(oldmachine)){ |
| | | oldmachine.setTaskCount(machine.getTaskCount()); |
| | | oldmachine.setFinshCount(machine.getFinshCount()); |
| | | return baseMapper.updateById(oldmachine); |
| | | } |
| | | return 0; |
| | | } |
| | | /** |
| | | * @param machine 切换设备模式:(上片:【1定制/2标准/3手动】,翻片:【1定制/2标准】 旋转:【1定制/2标准】),其他设备暂时没有模式 |
| | | * @return |
| | | */ |
| | | @Override |
| | |
| | | return 0; |
| | | } |
| | | |
| | | /** |
| | | * @param machine 切换旋转模式:(旋转:【1旋转/2不旋转】) |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int toggleModeRotate(Machine machine){ |
| | | Machine oldmachine=baseMapper.selectById(machine); |
| | | if(!Objects.isNull(oldmachine)){ |
| | | oldmachine.setRotateMode(machine.getRotateMode()); |
| | | return baseMapper.updateById(oldmachine); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | } |