fwq
2023-01-03 2c6e0b473b1c3e2e3c28e8a3d9bd772b0563625f
门店划扣库库存同步
1个文件已添加
1个文件已修改
21 ■■■■■ 已修改文件
phi-warehouse-feign/src/main/java/com/hx/warehouse/dto/order/stock/StockShopDto.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phi-warehouse-feign/src/main/java/com/hx/warehouse/feign/WUpdateService.java 5 ●●●●● 补丁 | 查看 | 原始文档 | 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);
}