package com.dk.mdm.model.response.sale; import cn.afterturn.easypoi.excel.annotation.Excel; import com.alibaba.fastjson.JSONArray; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.dk.common.infrastructure.annotaiton.ExportTitle; import com.dk.common.infrastructure.handler.JsonTypeHandler; import com.dk.common.infrastructure.handler.TimestampTypeHandler; import com.dk.common.infrastructure.handler.UuidTypeHandler; import com.dk.common.model.pojo.PageInfo; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import lombok.experimental.Accessors; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDateTime; /** * 销售明细 */ @Data @AllArgsConstructor @NoArgsConstructor @EqualsAndHashCode(callSuper = true) @Accessors(chain = true) @ExportTitle("销售明细") @TableName(value = "t_psi_order_item", autoResultMap = true) @ApiModel(value="实体类:销售明细", description="表名:t_psi_order_item") public class OrderItemResponse extends PageInfo implements Serializable { /* * 数据库字段 */ /** * 明细ID */ @TableId(value = "item_id", type = IdType.AUTO) @ApiModelProperty(value = "明细ID") @TableField(typeHandler = UuidTypeHandler.class) private String itemId; /** * 订单ID */ @Excel(name = "订单ID") @ApiModelProperty(value = "订单ID") @TableField(typeHandler = UuidTypeHandler.class) private String orderId; /** * 商品顺序 */ @Excel(name = "商品顺序") @ApiModelProperty(value = "商品顺序") private Integer itemIndex; /** * 商品ID */ @Excel(name = "商品ID") @ApiModelProperty(value = "商品ID") @TableField(typeHandler = UuidTypeHandler.class) private String skuId; @Excel(name = "箱") @ApiModelProperty(value = "箱") private Integer box; @Excel(name = "片") @ApiModelProperty(value = "片") private BigDecimal piece; @Excel(name = "包装") @ApiModelProperty(value = "包装") private BigDecimal packBox; /** * 包装数量 */ @Excel(name = "包装数量") @ApiModelProperty(value = "包装数量") private String boxPiece; /** * 本次出库包装数量 */ @Excel(name = "本次出库包装数量") @ApiModelProperty(value = "本次出库包装数量") private String thisOutBoxPiece; /** * 基本单位 */ @ApiModelProperty(value = "基本单位") @TableField(typeHandler = UuidTypeHandler.class) private String unitId; /** * 包装单位 */ @ApiModelProperty(value = "包装单位") @TableField(typeHandler = UuidTypeHandler.class) private String subUnitId; /** * 商品数量 */ @Excel(name = "商品数量") @ApiModelProperty(value = "商品数量") private BigDecimal itemQty; /** * 标价 */ @Excel(name = "标价") @ApiModelProperty(value = "标价") private BigDecimal priceStd; /** * 标价金额 (商品数量*标价) */ @Excel(name = "标价金额 (商品数量*标价)") @ApiModelProperty(value = "标价金额 (商品数量*标价)") private BigDecimal amtStd; /** * 售价 */ @Excel(name = "售价") @ApiModelProperty(value = "售价") private BigDecimal priceSale; /** * 售价金额 (商品数量*售价) */ @Excel(name = "售价金额 (商品数量*售价)") @ApiModelProperty(value = "售价金额 (商品数量*售价)") private BigDecimal itemAmt; /** * 折扣 (售价/标价) */ @Excel(name = "折扣 (售价/标价)") @ApiModelProperty(value = "折扣 (售价/标价)") private BigDecimal priceDiscount; /** * 非标号 */ @Excel(name = "非标号") @ApiModelProperty(value = "非标号") private String nonStdCode; /** * 出库状态 */ @Excel(name = "出库状态") @ApiModelProperty(value = "出库状态") private String outStatus; /** * 出库中数量 */ @Excel(name = "出库中数量") @ApiModelProperty(value = "出库中数量") private BigDecimal outingQty; /** * 出库中金额 */ @Excel(name = "出库中金额") @ApiModelProperty(value = "出库中金额") private BigDecimal outingAmt; /** * 已出库数量 */ @Excel(name = "已出库数量") @ApiModelProperty(value = "已出库数量") private BigDecimal outQty; /** * 已出库金额 */ @Excel(name = "已出库金额") @ApiModelProperty(value = "已出库金额") private BigDecimal outAmt; /** * 已出库退货数量 */ @Excel(name = "已出库退货数量") @ApiModelProperty(value = "已出库退货数量") private BigDecimal returnQty; /** * 已出库退货金额 */ @Excel(name = "已出库退货金额") @ApiModelProperty(value = "已出库退货金额") private BigDecimal returnAmt; /** * 备注 */ @Excel(name = "备注") @ApiModelProperty(value = "备注") private String remarks; /** * 有效标识 (1:正常 0:停用) */ @Excel(name = "有效标识 (1:正常 0:停用)") @ApiModelProperty(value = "有效标识 (1:正常 0:停用)") private Boolean flgValid; /** * 企业ID */ @Excel(name = "企业ID") @ApiModelProperty(value = "企业ID") private Integer cpId; @ApiModelProperty(value = "来源单明细ID") private String fromItemId; @ApiModelProperty(value = "来源单ID") private String fromId; @ApiModelProperty(value = "商品编码") private String skuCode; @ApiModelProperty(value = "商品型号") private String skuModel; @ApiModelProperty(value = "商品名称") private String skuName; @ApiModelProperty(value = "订单数量") private BigDecimal orderQty; @ApiModelProperty(value = "可出库数量") private BigDecimal canOutingQty; @ApiModelProperty(value = "出库价") private BigDecimal priceOut; @ApiModelProperty(value = "库存ID") private String invId; @ApiModelProperty(value = "库存数量") private BigDecimal invQty; @ApiModelProperty(value = "可用量") private BigDecimal usableQty; @ApiModelProperty(value = "仓库名称") private String whName; @ApiModelProperty(value = "出库ID") private String outId; @ApiModelProperty(value = "出库明细ID") private String outItemId; @ApiModelProperty(value = "订单明细ID") private String orderItemId; @ApiModelProperty(value = "已出库数量") private BigDecimal outboundOutQty; @ApiModelProperty(value = "可退货数量") private BigDecimal canReturnQty; @ApiModelProperty(value = "源出库单ID") @JsonProperty("sOutId") private String sOutId; @ApiModelProperty(value = "源出库单明细ID") @JsonProperty("sOutItemId") private String sOutItemId; @ApiModelProperty(value = "源销售订单ID") @JsonProperty("sOrderId") private String sOrderId; @ApiModelProperty(value = "源销售明细ID") @JsonProperty("sOrderItemId") private String sOrderItemId; private String brandName; @Excel(name = "箱(出库中)") @ApiModelProperty(value = "箱(出库中)") private Integer outingBox; @Excel(name = "片(出库中)") @ApiModelProperty(value = "片(出库中)") private Integer outingPiece; @Excel(name = "箱(已出库)") @ApiModelProperty(value = "箱(已出库)") private Integer outBox; @Excel(name = "片(已出库)") @ApiModelProperty(value = "片(已出库)") private Integer outPiece; /** * 销售订单号 */ @Excel(name = "销售订单号") @ApiModelProperty(value = "销售订单号") private String orderNo; @Excel(name = "可转采购数量") @ApiModelProperty(value = "可转采购数量") private BigDecimal transferableQuantity; @ApiModelProperty(value = "仓库ID") @TableField(typeHandler = UuidTypeHandler.class) private String whId; private String shortName; @Excel(name = "商品图片 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)") @ApiModelProperty(value = "商品图片 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)") @TableField(typeHandler = JsonTypeHandler.class) private JSONArray skuImages; /** * 小数位数 ([0-6]能改大,不能改小) */ @ApiModelProperty(value = "小数位数 ([0-6]能改大,不能改小)") @TableField(exist = false) private Integer decimalPlaces; @TableField(exist = false) @ApiModelProperty(value = "计量单位") private String unitName; @TableField(exist = false) @ApiModelProperty(value = "辅助单位") private String subUnitName; @Excel(name = "出库中箱数") @ApiModelProperty(value = "出库中箱数") private String outingBoxPiece; @Excel(name = "已出库箱数") @ApiModelProperty(value = "已出库箱数") private String outBoxPiece; /** * 优惠后单价 */ @Excel(name = "优惠后单价") @ApiModelProperty(value = "优惠后单价") private BigDecimal factPrice; /** * 优惠后金额 */ @Excel(name = "优惠后金额") @ApiModelProperty(value = "优惠后金额") private BigDecimal factAmt; /** * 使用位置 */ @Excel(name = "使用位置") @ApiModelProperty(value = "使用位置") private String usePlace; /** * 折扣 */ @Excel(name = "折扣") @ApiModelProperty(value = "折扣") private BigDecimal discount; private static final long serialVersionUID = 1L; }