|
|
@@ -48,7 +48,7 @@ public class BusinessImPurchaseSaleController {
|
|
48
|
48
|
return ResponseEntity.ok(businessImPurchaseSaleService.getList(pageParam));
|
|
49
|
49
|
}
|
|
50
|
50
|
|
|
51
|
|
- @PostMapping("/saveAndUpdate")
|
|
|
51
|
+/* @PostMapping("/saveAndUpdate")
|
|
52
|
52
|
@ApiOperation(value="采购销售管理-保存/修改", notes = "保存/修改")
|
|
53
|
53
|
public Map<String, Object> save(@RequestBody String businessImPurchaseSaleJson) {
|
|
54
|
54
|
Map<String, Object> modelMap = new HashMap<>();
|
|
|
@@ -65,6 +65,21 @@ public class BusinessImPurchaseSaleController {
|
|
65
|
65
|
e.printStackTrace();
|
|
66
|
66
|
}
|
|
67
|
67
|
return modelMap;
|
|
|
68
|
+ }*/
|
|
|
69
|
+
|
|
|
70
|
+ @PostMapping("/saveAndUpdate")
|
|
|
71
|
+ @ApiOperation(value="采购销售管理-保存/修改", notes = "保存/修改")
|
|
|
72
|
+ public Map<String, Object> save(@RequestBody BusinessImPurchaseSale businessImPurchaseSale) {
|
|
|
73
|
+ Map<String, Object> modelMap = new HashMap<>();
|
|
|
74
|
+ try {
|
|
|
75
|
+ businessImPurchaseSaleService.saveOrUpdateBusinessImPurchaseSale(businessImPurchaseSale);
|
|
|
76
|
+ modelMap.put("status", "success");
|
|
|
77
|
+ } catch (Exception e) {
|
|
|
78
|
+ modelMap.put("status", "error");
|
|
|
79
|
+ modelMap.put("msg", "保存/修改失败!");
|
|
|
80
|
+ e.printStackTrace();
|
|
|
81
|
+ }
|
|
|
82
|
+ return modelMap;
|
|
68
|
83
|
}
|
|
69
|
84
|
|
|
70
|
85
|
/* @PutMapping("/update")
|
|
|
@@ -84,4 +99,5 @@ public class BusinessImPurchaseSaleController {
|
|
84
|
99
|
public ResponseEntity<BusinessImPurchaseSale> getById(@PathVariable("id") String id) {
|
|
85
|
100
|
return ResponseEntity.ok(businessImPurchaseSaleService.getById(id));
|
|
86
|
101
|
}
|
|
|
102
|
+
|
|
87
|
103
|
}
|