| | |
| | | List<StockChangeItemDto> stockItemList; |
| | | |
| | | /************************非必填******************************/ |
| | | /**关联的id,入库单关联的出库单*/ |
| | | private String oldId; |
| | | /**关联的单号,入库单关联的出库单*/ |
| | | private String oldNumbers; |
| | | /**出入库人标识(员工)*/ |
| | | private String opStockId; |
| | | /**出入库人标识(员工)名*/ |
New file |
| | |
| | | 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; |
| | | |
| | | } |
New file |
| | |
| | | package com.hx.warehouse.dto.order.stock; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 移库单子项 |
| | | */ |
| | | @Data |
| | | public class StockMoveItemDto { |
| | | /************************必填******************************/ |
| | | /**移动库存标识*/ |
| | | private String sourceItemId; |
| | | |
| | | /**移动数量*/ |
| | | private Integer num; |
| | | |
| | | /**目标仓库标识*/ |
| | | private String targetWarehouseId; |
| | | |
| | | |
| | | } |
| | |
| | | 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; |
| | |
| | | /**更新门店库存(划扣库)*/ |
| | | @PostMapping(value = "/stock/update/by/shopId") |
| | | Result updateStockByShop(@RequestBody StockShopDto stockShopDto); |
| | | |
| | | |
| | | /** |
| | | * 生产移库单 |
| | | */ |
| | | @PostMapping(value = "/order/create/move/stock") |
| | | Result moveStockOrder(@RequestBody StockMoveDto stockMoveDto); |
| | | |
| | | } |