‘linchangsheng’ il y a 7 mois
Parent
commit
116291bd34

+ 10 - 0
src/main/java/com/zfire/mall/manager/controller/k3/K3CategoryController.java

@@ -54,4 +54,14 @@ public class K3CategoryController {
         return ResponseHelper.success();
     }
 
+
+    @ApiOperation(value = "删除存货类别")
+    @PostMapping("/del")
+    public ResponseHelper del(
+            @ApiParam(value = "品类id",required = true)@RequestParam String categoryId
+    ) throws Exception {
+        k3CategoryLogic.del(categoryId);
+        return ResponseHelper.success();
+    }
+
 }

+ 4 - 0
src/main/java/com/zfire/mall/manager/logic/k3/K3CategoryLogic.java

@@ -58,4 +58,8 @@ public class K3CategoryLogic {
     public void add(KingDeeCategory kingDeeCategory) {
         kingDeeCategory.insert();
     }
+
+    public void del(String categoryId) {
+        kingDeeCategoryService.removeById(categoryId);
+    }
 }