
6 changed files with 193 additions and 44 deletions
@ -0,0 +1,92 @@ |
|||||
|
package com.yxt.pms.feign.wms.wmsinventoryrecord; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/10/30 10:19 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class InventoryRecordDto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("库存sid") |
||||
|
private String inventorySid; // 库存sid
|
||||
|
@ApiModelProperty("创建人sid") |
||||
|
private String createBySid; // 商品ID
|
||||
|
@ApiModelProperty("商品ID") |
||||
|
private String goodsID; // 商品ID
|
||||
|
@ApiModelProperty("来源单sid(业务单sid)") |
||||
|
private String sourceBillSid; // 来源单sid(业务单sid)
|
||||
|
@ApiModelProperty("来源单据编号") |
||||
|
private String billNo; // 来源单据编号
|
||||
|
@ApiModelProperty("单据类型(1入库、0出库)") |
||||
|
private String billType; // 单据类型(1入库、0出库)
|
||||
|
@ApiModelProperty("业务类型key(采购入库、维修出入库、销售出入库等)") |
||||
|
private String busTypeKey; // 业务类型key(采购入库、维修出入库、销售出入库等)
|
||||
|
@ApiModelProperty("业务类型value(采购入库、调拨入库、退货入库、盘盈入库等销售出库、调拨出库、采购退货出库、报损出库、盘亏出库等)") |
||||
|
private String busTypeValue; // 业务类型value(采购入库、调拨入库、退货入库、盘盈入库等销售出库、调拨出库、采购退货出库、报损出库、盘亏出库等)
|
||||
|
@ApiModelProperty("批次号") |
||||
|
private String batchNumber; // 批次号
|
||||
|
@ApiModelProperty("商品基础信息Sid") |
||||
|
private String goodsSpuSid; // 商品基础信息Sid
|
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsSpuName; // 商品名称
|
||||
|
@ApiModelProperty("商品Skusid") |
||||
|
private String goodsSkuSid; // 商品Skusid
|
||||
|
@ApiModelProperty("商品Sku名称") |
||||
|
private String goodsSkuTitle; // 商品Sku名称
|
||||
|
@ApiModelProperty("商品编码(图号)") |
||||
|
private String goodsSkuCode; // 商品编码(图号)
|
||||
|
@ApiModelProperty("规格型号") |
||||
|
private String goodsSkuOwnSpec; // 规格型号
|
||||
|
// @ApiModelProperty("出入库后的库存量")
|
||||
|
// private String currentCount; // 出入库后的库存量
|
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; // 计量单位
|
||||
|
@ApiModelProperty("数量") |
||||
|
private String count; // 数量
|
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; // 仓库sid
|
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; // 仓库名称
|
||||
|
@ApiModelProperty("库位sid") |
||||
|
private String warehouseRackSid; // 库位sid
|
||||
|
@ApiModelProperty("库位编号") |
||||
|
private String warehouseRackCode; // 库位编号
|
||||
|
@ApiModelProperty("入库单价") |
||||
|
private String cost; |
||||
|
@ApiModelProperty("税率") |
||||
|
private String taxRate; |
||||
|
@ApiModelProperty("入库金额") |
||||
|
private String amount; |
||||
|
@ApiModelProperty("经办人sid") |
||||
|
private String handlerSid; // 库位sid
|
||||
|
@ApiModelProperty("经办人") |
||||
|
private String handlerName; // 库位编号
|
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; |
||||
|
@ApiModelProperty("使用组织sid") |
||||
|
private String useOrgSid; |
||||
|
@ApiModelProperty("厂家订单号") |
||||
|
private String manufactorBillNo; |
||||
|
|
||||
|
@ApiModelProperty("销售指导价") |
||||
|
private String guidPrice; |
||||
|
@ApiModelProperty("客户/供应商sid,出库是为客户,入库时为供应商") |
||||
|
private String supplierSid; |
||||
|
@ApiModelProperty("客户/供应商名称") |
||||
|
private String supplierName; |
||||
|
@ApiModelProperty("厂家名称") |
||||
|
private String manufacturerName; |
||||
|
@ApiModelProperty("厂家sid") |
||||
|
private String manufacturerSid; |
||||
|
@ApiModelProperty("前一单据明细sid(溯源使用)") |
||||
|
private String preBillSid; |
||||
|
@ApiModelProperty("前一单编号") |
||||
|
private String preBillNo; |
||||
|
|
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
package com.yxt.pms.feign.wms.wmsinventoryrecord; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
|
||||
|
@Api(tags = "库存出入库记录") |
||||
|
@FeignClient( |
||||
|
contextId = "yxt-wms-WmsInventoryRecord", |
||||
|
name = "yxt-wms", |
||||
|
path = "/apiadmin/inventory/wmsinventoryrecord") |
||||
|
public interface WmsInventoryRecordFeign { |
||||
|
|
||||
|
@ApiOperation("新增出入库记录") |
||||
|
@PostMapping("/saveInventoryRecord") |
||||
|
ResultBean saveInventoryRecord(@RequestBody InventoryRecordDto dto); |
||||
|
} |
Loading…
Reference in new issue