| | |
| | | package com.hx.warehouse.feign; |
| | | |
| | | import com.hx.warehouse.dto.gold.ParameterDto; |
| | | import com.hx.warehouse.dto.gold.ParListDto; |
| | | 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; |
| | |
| | | /** |
| | | * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
| | | */ |
| | | @FeignClient(name="warehouse-service", path = "/warehouse",contextId = "warehouse-update") |
| | | @FeignClient(name="phi-pre-sys", path = "/warehouse",contextId = "warehouse-update") |
| | | public interface WUpdateService { |
| | | |
| | | |
| | |
| | | * 更新门店仓库 |
| | | * */ |
| | | @PostMapping(value = "/update/shopWareHouse") |
| | | Result updateShopWarehouse(@RequestBody ParameterDto parameterDto); |
| | | Result updateShopWarehouse(@RequestBody ParListDto parListDto); |
| | | |
| | | /** |
| | | * 更新商品信息 |
| | | * */ |
| | | @PostMapping(value = "/update/consumables") |
| | | Result updateConsumables(@RequestBody ParameterDto parameterDto); |
| | | Result updateConsumables(@RequestBody ParListDto parListDto); |
| | | |
| | | /** |
| | | * 更新商品库存 |
| | | * */ |
| | | @PostMapping(value = "/update/stock") |
| | | Result updateConsumablesStock(@RequestBody ParameterDto parameterDto); |
| | | Result updateConsumablesStock(@RequestBody ParListDto parListDto); |
| | | |
| | | /** |
| | | * 更新出入库单信息 |
| | | * */ |
| | | @PostMapping(value = "/update/order/info") |
| | | Result orderSuccess(@RequestBody OrderBackDto orderBackDto); |
| | | |
| | | /** |
| | | * 出入库成功回调信息入参 |
| | | * */ |
| | | @PostMapping(value = "/update/back/parameter") |
| | | Result backParameter(@RequestBody OrderBackDto orderBackDto); |
| | | |
| | | |
| | | |
| | | } |