This commit is contained in:
zj
2026-01-02 09:30:43 +08:00
parent 70cf9e28ad
commit 2f33d1febf

View File

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