|
|
@@ -0,0 +1,103 @@
|
|
|
+package com.uas.eis.controller;
|
|
|
+
|
|
|
+import com.uas.eis.service.ERPService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author koul
|
|
|
+ * @email koul@usoftchina.com
|
|
|
+ * @date 2021-12-07 9:31
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+public class ERPProdController {
|
|
|
+ @Autowired
|
|
|
+ private ERPService erpService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 小米推送采购单到华信科
|
|
|
+ * @param data
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/prod/savePurchase")
|
|
|
+ public Map<String, Object> savePurchase(@RequestBody String data){
|
|
|
+ return erpService.savePurchase(data);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 华信科采购单确认接口
|
|
|
+ * @param data
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping("/prod/confirmPurchase")
|
|
|
+ public void confirmPurchase(String id){
|
|
|
+ erpService.confirmPurchase(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 小米推送采购单到华信科
|
|
|
+ * @param data
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping("/prod/closePurchase")
|
|
|
+ public Map<String, Object> closePurchase(String data){
|
|
|
+ return erpService.closePurchase(data);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 小米推送送货指令到华信科
|
|
|
+ * @param data
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/prod/deliInstruction")
|
|
|
+ public Map<String, Object> deliInstruction(@RequestBody String data){
|
|
|
+ return erpService.deliInstruction(data);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 6:外部供应商创建小米SRM ASN公用X5同步接口
|
|
|
+ * @param data
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping("/prod/createASN")
|
|
|
+ public Map<String, Object> createASN(String id){
|
|
|
+ return erpService.createASN(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 7:外部供应商推送ASN箱单信息至小米SRM公用X5同步接口
|
|
|
+ * @param data
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping("/prod/createPackingASN")
|
|
|
+ public Map<String, Object> createPackingASN(String id){
|
|
|
+ return erpService.createPackingASN(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 10:外部供应商请求小米SRM打印采购订单公用X5同步接口
|
|
|
+ * @param data
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping("/prod/purchasePrint")
|
|
|
+ public Map<String, Object> purchasePrint(String id){
|
|
|
+ return erpService.purchasePrint(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 12:小米SRM推送ASN入库结果至外部供应商公用X5同步接口
|
|
|
+ * @param data
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/prod/asnProdIn")
|
|
|
+ public Map<String, Object> asnProdIn(@RequestBody String data){
|
|
|
+ return erpService.asnProdIn(data);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|