From 73be6b08f5a94e71550fe788c5d74705daa91be0 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期五, 22 三月 2024 16:48:07 +0800
Subject: [PATCH] 订单首页右键查询流程卡进度

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

diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/sd/CustomerController.java b/north-glass-erp/src/main/java/com/example/erp/controller/sd/CustomerController.java
new file mode 100644
index 0000000..dd6c85d
--- /dev/null
+++ b/north-glass-erp/src/main/java/com/example/erp/controller/sd/CustomerController.java
@@ -0,0 +1,69 @@
+package com.example.erp.controller.sd;
+
+
+import com.example.erp.common.Constants;
+import com.example.erp.common.Result;
+import com.example.erp.entity.sd.Customer;
+import com.example.erp.entity.sd.Delivery;
+import com.example.erp.entity.sd.Order;
+import com.example.erp.entity.sd.OrderDetail;
+import com.example.erp.exception.ServiceException;
+import com.example.erp.service.sd.CustomerService;
+import com.example.erp.service.sd.DeliveryService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+import java.util.Map;
+
+@RestController
+@Api(value="瀹㈡埛controller",tags={"瀹㈡埛鎿嶄綔鎺ュ彛"})
+@RequestMapping("/customer")
+public class CustomerController {
+    @Autowired
+    CustomerService customerService;
+
+
+    /*鍙戣揣璁㈠崟鏌ヨ*/
+    @ApiOperation("瀹㈡埛鏌ヨ鎺ュ彛")
+    @PostMapping("/getSelectCustomer/{pageNum}/{pageSize}")
+    public Result getSelectShippingOrder(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody Customer customer){
+        return Result.seccess(customerService.getSelectCustomer(pageNum,pageSize,customer));
+    }
+
+    @ApiOperation("瀹㈡埛鏂板淇敼鎺ュ彛")
+    @PostMapping("/insertCustomer")
+    public Result insertCustomer( @RequestBody Map<String,Object>  object){
+        if(customerService.insertCustomer(object)){
+
+            return Result.seccess();
+
+        }else {
+            throw new ServiceException(Constants.Code_500,"瀹㈡埛鏂板/淇敼澶辫触");
+
+        }
+    }
+
+    @ApiOperation("瀹㈡埛鍒犻櫎鎺ュ彛")
+    @PostMapping("/deleteCustomer")
+    public Result deleteCustomer( @RequestBody Map<String,Object>  object){
+        if(customerService.deleteCustomer(object)){
+
+            return Result.seccess();
+
+        }else {
+            throw new ServiceException(Constants.Code_500,"瀹㈡埛鍒犻櫎澶辫触");
+
+        }
+    }
+
+
+
+
+
+
+
+
+}

--
Gitblit v1.8.0