phi-warehouse-feign/src/main/java/com/hx/warehouse/dto/order/stock/StockShopDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phi-warehouse-feign/src/main/java/com/hx/warehouse/feign/WUpdateService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phi-warehouse-feign/src/main/java/com/hx/warehouse/dto/order/stock/StockShopDto.java
New file @@ -0,0 +1,16 @@ package com.hx.warehouse.dto.order.stock; import lombok.Data; /** * 库存扩展 * @author fwq */ @Data public class StockShopDto { /**门店标识*/ private String shopId; /**是否只同步待划扣库,0否1是,默认是*/ private Integer isOnlyDeduction; } phi-warehouse-feign/src/main/java/com/hx/warehouse/feign/WUpdateService.java
@@ -4,6 +4,7 @@ import com.hx.resultTool.Result; import com.hx.warehouse.dto.order.OrderBackDto; import com.hx.warehouse.dto.order.OrderUpdateDto; import com.hx.warehouse.dto.order.stock.StockShopDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -45,4 +46,8 @@ @PostMapping(value = "/update/back/parameter") Result backParameter(@RequestBody OrderBackDto orderBackDto); /**更新门店库存(划扣库)*/ @PostMapping(value = "/stock/update/by/shopId") Result updateStockByShop(@RequestBody StockShopDto stockShopDto); }