mdc-parent/mdc-show/src/main/java/com/qianwen/mdc/service/plant/PlantService.java
@@ -96,14 +96,17 @@ //清空原有的machine的plantId List<Long> oriMachineIds = this.parseMachineIdInGrid(oriGridSetting); logger.info("厂房原有机床id:{}",oriMachineIds); for(Long mid:oriMachineIds ) { Machine m = machineMapper.selectById(mid); if(m != null) { m.setPlantId(null); machineMapper.updateById(m); logger.info("清理机床id:{}",mid); } } //新配置的机床,更新plantId List<Long> machineIds = this.parseMachineIdInGrid(plantDTO.getGridSetting());