|
@@ -1,6 +1,7 @@
|
|
|
package com.yonge.cooleshow.portal.controller.open;
|
|
|
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
+import com.yonge.cooleshow.mall.common.api.CommonResult;
|
|
|
import com.yonge.cooleshow.portal.dto.StockOperateModel;
|
|
|
import com.yonge.cooleshow.portal.service.PmsPortalProductService;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -43,8 +44,9 @@ public class OpenShareController extends BaseController {
|
|
|
@ApiOperation(value = "同步库存")
|
|
|
@PostMapping(value="/updateStock/{stockType}")
|
|
|
@ResponseBody
|
|
|
- public void updateStock(@RequestBody List<StockOperateModel> model, @PathVariable String stockType) {
|
|
|
+ public CommonResult<String> updateStock(@RequestBody List<StockOperateModel> model, @PathVariable String stockType) {
|
|
|
// 库存操作 stockType add:添加 reduce:减少 lock:锁定 unlock:解锁
|
|
|
portalProductService.reduceStock(model,stockType);
|
|
|
+ return CommonResult.success("");
|
|
|
}
|
|
|
}
|