diff --git a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/conveyor/primary_device/PrimaryDeviceConveyorDeviceDriver.java b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/conveyor/primary_device/PrimaryDeviceConveyorDeviceDriver.java index 05168e5..2607ec7 100644 --- a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/conveyor/primary_device/PrimaryDeviceConveyorDeviceDriver.java +++ b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/conveyor/primary_device/PrimaryDeviceConveyorDeviceDriver.java @@ -222,13 +222,6 @@ public class PrimaryDeviceConveyorDeviceDriver extends AbstractOpcDeviceDriver i putAction(list,map2, "to_qty", tickets.getPlanned_quantity()); Map map3 = new HashMap(); putAction(list,map3, "to_material_code", tickets.getProduction_materials()); - if(StrUtil.isNotEmpty(tickets.getLabeling_qty()) && "1".equals(tickets.getLabeling_qty())){ - Map map4 = new HashMap(); - putAction(list,map4, "to_labeling", tickets.getLabeling_qty()); - }else if(StrUtil.isNotEmpty(tickets.getLabeling_qty()) && "2".equals(tickets.getLabeling_qty())){ - Map map5 = new HashMap(); - putAction(list,map5, "to_labeling1", tickets.getLabeling_qty()); - } Map map6 = new HashMap(); putAction(list,map6, "to_ice", tickets.getIs_ice()); Map map7 = new HashMap(); diff --git a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/template/TemplateController.java b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/template/TemplateController.java index 996f485..005f3ae 100644 --- a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/template/TemplateController.java +++ b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/template/TemplateController.java @@ -53,4 +53,12 @@ public class TemplateController { public ResponseEntity queryAll(@RequestParam Map param, PageQuery page) { return new ResponseEntity<>(TableDataInfo.build(templateService.query(param, page)),HttpStatus.OK); } + + @DeleteMapping + @Log("删除模板") + public ResponseEntity delete(@RequestBody String[] ids) { + templateService.deleteBatchByIds(ids); + return new ResponseEntity<>(HttpStatus.OK); + } + } diff --git a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/template/TemplateService.java b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/template/TemplateService.java index d50f931..8713fc8 100644 --- a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/template/TemplateService.java +++ b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/template/TemplateService.java @@ -17,4 +17,10 @@ public interface TemplateService extends IService