优化
This commit is contained in:
@@ -198,7 +198,7 @@ public class ToWmsApiController {
|
||||
* 接收物料
|
||||
*/
|
||||
//@Log(title = "接收物料", businessType = BusinessType.INSERT)
|
||||
@PutMapping("/receiveProduct")
|
||||
@PostMapping("/receiveProduct")
|
||||
public AjaxResult receiveProduct(@RequestBody String json) {
|
||||
JSONObject jsonObject = JSONUtil.parseObj(json);
|
||||
Object codeObj = jsonObject.get("std_data");
|
||||
@@ -212,6 +212,7 @@ public class ToWmsApiController {
|
||||
basProduct.setPrice(param.get("item_desc").toString());
|
||||
basProduct.setSpec(param.get("item_spec").toString());
|
||||
basProduct.setUnit(param.get("inv_unit_no").toString());
|
||||
basProduct.setParentId(param.get("item_group_no").toString());
|
||||
AjaxResult ajaxResult = toWmsService.receiveProduct(basProduct);
|
||||
RequestLog requestLog = requestLogService.getRequestLog(JSONUtil.toJsonStr(basProduct), "接收物料", ajaxResult);
|
||||
requestLogService.insertRequestLog(requestLog);
|
||||
@@ -222,7 +223,7 @@ public class ToWmsApiController {
|
||||
* 修改物料管理
|
||||
*/
|
||||
//@Log(title = "修改物料管理", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/updateProduct")
|
||||
@PostMapping("/updateProduct")
|
||||
public AjaxResult updateProduct(@RequestBody ErpProduct erpProduct) {
|
||||
AjaxResult ajaxResult = toWmsService.updateProduct(erpProduct);
|
||||
RequestLog requestLog = requestLogService.getRequestLog(JSONUtil.toJsonStr(erpProduct), "修改物料管理", ajaxResult);
|
||||
@@ -234,7 +235,7 @@ public class ToWmsApiController {
|
||||
* 作废物料
|
||||
*/
|
||||
//@Log(title = "作废物料", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/InvalidProduct")
|
||||
@PostMapping("/InvalidProduct")
|
||||
public AjaxResult InvalidProduct(@RequestBody String json) {
|
||||
JSONObject jsonObject = JSONUtil.parseObj(json);
|
||||
Object codeObj = jsonObject.get("std_data");
|
||||
|
||||
Reference in New Issue
Block a user