|
|
@@ -1,9 +1,9 @@
|
|
|
package com.uas.eis.controller;
|
|
|
|
|
|
-import com.uas.eis.sdk.entity.ApiResult;
|
|
|
-
|
|
|
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;
|
|
|
|
|
|
@@ -25,8 +25,8 @@ public class ERPController {
|
|
|
* @param data
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping("/erp/savePurchase")
|
|
|
- public Map<String, Object> savePurchase(String data){
|
|
|
+ @PostMapping("/erp/savePurchase")
|
|
|
+ public Map<String, Object> savePurchase(@RequestBody String data){
|
|
|
return erpService.savePurchase(data);
|
|
|
}
|
|
|
|
|
|
@@ -55,8 +55,8 @@ public class ERPController {
|
|
|
* @param data
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping("/erp/deliInstruction")
|
|
|
- public Map<String, Object> deliInstruction(String data){
|
|
|
+ @PostMapping("/erp/deliInstruction")
|
|
|
+ public Map<String, Object> deliInstruction(@RequestBody String data){
|
|
|
return erpService.deliInstruction(data);
|
|
|
}
|
|
|
|
|
|
@@ -95,8 +95,8 @@ public class ERPController {
|
|
|
* @param data
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping("/erp/asnProdIn")
|
|
|
- public Map<String, Object> asnProdIn(String data){
|
|
|
+ @PostMapping("/erp/asnProdIn")
|
|
|
+ public Map<String, Object> asnProdIn(@RequestBody String data){
|
|
|
return erpService.asnProdIn(data);
|
|
|
}
|
|
|
|