From c660781f12649b83e234dea91bead8ca7f0dddd9 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期四, 07 三月 2024 15:35:43 +0800
Subject: [PATCH] 提交 关于生成小片流程的数据

---
 north-glass-erp/src/main/java/com/example/erp/controller/sd/BasicDataController.java |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/sd/BasicDataController.java b/north-glass-erp/src/main/java/com/example/erp/controller/sd/BasicDataController.java
new file mode 100644
index 0000000..7b684b6
--- /dev/null
+++ b/north-glass-erp/src/main/java/com/example/erp/controller/sd/BasicDataController.java
@@ -0,0 +1,27 @@
+package com.example.erp.controller.sd;
+
+import com.example.erp.common.Result;
+import com.example.erp.service.sd.BasicDateService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.Map;
+
+@RestController
+@RequestMapping("/basicData")
+public class BasicDataController {
+    @Autowired
+    BasicDateService basicDateService;
+    @GetMapping("/orderBasicData")
+    public Result getOrderBasicData(){
+        return Result.seccess(basicDateService.getOrderBasicData());
+    }
+    @GetMapping("/BasicDataByType/{type}")
+    public Result getBasicDataByType(@PathVariable String type){
+        return Result.seccess(basicDateService.getBasicDataByType(type));
+    }
+    @GetMapping("/BasicDataByType/{type}/{childType}")
+    public Result getBasicDataByTypeAndChildType(@PathVariable String type,@PathVariable String childType){
+        return Result.seccess(basicDateService.getBasicDataByTypeAndChildType(type,childType));
+    }
+}

--
Gitblit v1.8.0