package com.glxp.api.entity.inout; 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 lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.math.BigDecimal; import java.util.Date; @Data @Builder @AllArgsConstructor @NoArgsConstructor @TableName(value = "io_code_temp") public class IoCodeTempEntity { @TableId(value = "id", type = IdType.AUTO) private Integer id; /** * UDI码 */ @TableField(value = "code") private String code; public void setCode(String code) { this.code = code; this.setErrUdiCode(code.replace("\u001D", "")); } /** * 去掉GS1符号错误条码 */ @TableField(value = "errUdiCode") private String errUdiCode; /** * 主单据类型(入库,出库) */ @TableField(value = "mainAction") private String mainAction; /** * 单据类型 */ @TableField(value = "`action`") private String action; /** * 订单号外键 */ @TableField(value = "orderId") private String orderId; /** * 手持终端订单号 */ @TableField(value = "corpOrderId") private String corpOrderId; /** * DI标识 */ @TableField(value = "nameCode") private String nameCode; /** * 批次号 */ @TableField(value = "batchNo") private String batchNo; /** * 生产日期 */ @TableField(value = "produceDate") private String produceDate; /** * 失效日期 */ @TableField(value = "expireDate") private String expireDate; /** * 序列号 */ @TableField(value = "serialNo") private String serialNo; /** * 包装级别 */ @TableField(value = "packageLevel") private String packageLevel; /** * 供应商ID外键 */ @TableField(value = "supId") private String supId; /** * 耗材字典ID外键 */ @TableField(value = "relId") private Long relId; /** * 扫码数量 */ @TableField(value = "`count`") private Integer count; /** * 实际数量 */ @TableField(value = "reCount") private Integer reCount; /** * 部门编码外键 */ @TableField(value = "deptCode") private String deptCode; /** * 仓库编码外键 */ @TableField(value = "invCode") private String invCode; /** * 货位编码外键 */ @TableField(value = "warehouseCode") private String warehouseCode; /** * 预验收,寄售所在货位编码 */ @TableField(value = "preSpaceCode") private String preSpaceCode; @TableField(value = "preInSpaceCode") private String preInSpaceCode; /** * 更新日期 */ @TableField(value = "updateTime") private Date updateTime; /** * 创建日期 */ @TableField(value = "createTime") private Date createTime; /** * 入院批号 */ @TableField(value = "inBatchNo") private String inBatchNo; @TableField(exist = false) private int status; //条码校验状态 @TableField(exist = false) private int checkStatus; //1:多余条码;2.同一产品条码超出 @TableField(exist = false) private String mySupId; //更新供应商 @TableField(value = "price") private BigDecimal price; @TableField(exist = false) private boolean checkSuccess; //临时字段校验是否成功 /** * 单据产品类型 1:器械;2:药品 */ @TableField(value = "productType") private Integer productType; /** * 上货方式:1:拆零上货;2:整取上货 */ @TableField(value = "fifoSplit") private Integer fifoSplit; /** * 药品关联关系是否存在 0不存在 1存在 */ @TableField(value = "drugLink") private Integer drugLink; public int getMyCount() { if (count == null) return 0; return count; } public int getMyReCount() { if (reCount == null) { return 0; } return reCount; } }