phi-warehouse-feign/src/main/java/com/hx/warehouse/dto/order/stock/StockMoveDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phi-warehouse-feign/src/main/java/com/hx/warehouse/dto/order/stock/StockMoveItemDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phi-warehouse-feign/src/main/java/com/hx/warehouse/feign/WOrderService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phi-warehouse-feign/src/main/java/com/hx/warehouse/dto/order/stock/StockMoveDto.java
New file @@ -0,0 +1,51 @@ package com.hx.warehouse.dto.order.stock; import lombok.Data; import java.util.List; /** * 移库单参数 */ @Data public class StockMoveDto { /**来源类型:0为治疗通知单领药*/ private Integer commonType; /**来源标识*/ private String commonId; /**来源编号*/ private String commonNo; /**作废关联标识*/ private String moveId; /**作废关联单号*/ private String moveNo; /**操作人类型(具体看如下常量)-必填*/ private Integer opType; /**操作人标识*/ private String opId; /**操作人名称*/ private String opName; /**操作人门店标识*/ private String opShopId; /**操作人门店名称*/ private String opShopName; /**操作人备注*/ private String opRemark; /**移库商品-必填*/ List<StockMoveItemDto> itemDtoList; /**操作人类型-系统*/ public static Integer OP_TYPE_SYS = 0; /**操作人类型-员工*/ public static Integer OP_TYPE_EMPLOYEE = 1; /**操作人类型-用户*/ public static Integer OP_TYPE_USER = 2; /**操作人类型-管理员*/ public static Integer OP_TYPE_ADMIN = 3; } phi-warehouse-feign/src/main/java/com/hx/warehouse/dto/order/stock/StockMoveItemDto.java
New file @@ -0,0 +1,21 @@ package com.hx.warehouse.dto.order.stock; import lombok.Data; /** * 移库单子项 */ @Data public class StockMoveItemDto { /************************必填******************************/ /**移动库存标识*/ private String sourceItemId; /**移动数量*/ private Integer num; /**目标仓库标识*/ private String targetWarehouseId; } phi-warehouse-feign/src/main/java/com/hx/warehouse/feign/WOrderService.java
@@ -4,6 +4,7 @@ import com.hx.warehouse.dto.order.stock.StockChangeDto; import com.hx.warehouse.dto.order.pick.PickUpDto; import com.hx.resultTool.Result; import com.hx.warehouse.dto.order.stock.StockMoveDto; import com.hx.warehouse.dto.order.stock.StockShopDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; @@ -42,4 +43,12 @@ /**更新门店库存(划扣库)*/ @PostMapping(value = "/stock/update/by/shopId") Result updateStockByShop(@RequestBody StockShopDto stockShopDto); /** * 生产移库单 */ @PostMapping(value = "/order/create/move/stock") Result moveStockOrder(@RequestBody StockMoveDto stockMoveDto); }