| | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.zy.asrs.common.wms.service.ManTagService; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.zy.asrs.common.wms.service.TagService; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @TableName("wms_man_mat") |
| | | @TableName("wms_mat") |
| | | public class Mat implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | * 所属归类 |
| | | */ |
| | | @ApiModelProperty(value= "所属归类") |
| | | @TableField("tag_id") |
| | | private Long tagId; |
| | | |
| | | /** |
| | |
| | | * 单位量 |
| | | */ |
| | | @ApiModelProperty(value= "单位量") |
| | | private Double units; |
| | | private String units; |
| | | |
| | | /** |
| | | * 条码 |
| | |
| | | * 生产日期 |
| | | */ |
| | | @ApiModelProperty(value= "生产日期") |
| | | @TableField("manu_date") |
| | | private String manuDate; |
| | | |
| | | /** |
| | | * 品项数 |
| | | */ |
| | | @ApiModelProperty(value= "品项数") |
| | | @TableField("item_num") |
| | | private String itemNum; |
| | | |
| | | /** |
| | | * 安全库存量 |
| | | */ |
| | | @ApiModelProperty(value= "安全库存量") |
| | | private Double safeQty; |
| | | |
| | | /** |
| | | * 重量 |
| | | */ |
| | | @ApiModelProperty(value= "重量") |
| | | private Double weight; |
| | | private String weight; |
| | | |
| | | /** |
| | | * 长度 |
| | | */ |
| | | @ApiModelProperty(value= "长度") |
| | | private Double length; |
| | | private String length; |
| | | |
| | | /** |
| | | * 体积 |
| | | */ |
| | | @ApiModelProperty(value= "体积") |
| | | private Double volume; |
| | | private String volume; |
| | | |
| | | /** |
| | | * 三方编码 |
| | | */ |
| | | @ApiModelProperty(value= "三方编码") |
| | | @TableField("three_code") |
| | | private String threeCode; |
| | | |
| | | /** |
| | |
| | | * 供应商编码 |
| | | */ |
| | | @ApiModelProperty(value= "供应商编码") |
| | | @TableField("supp_code") |
| | | private String suppCode; |
| | | |
| | | /** |
| | | * 是否批次 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "是否批次 1: 是 0: 否 ") |
| | | private Integer beBatch; |
| | | |
| | | /** |
| | | * 保质期 |
| | | */ |
| | | @ApiModelProperty(value= "保质期") |
| | | @TableField("dead_time") |
| | | private String deadTime; |
| | | |
| | | /** |
| | | * 预警天数 |
| | | */ |
| | | @ApiModelProperty(value= "预警天数") |
| | | private Integer deadWarn; |
| | | |
| | | /** |
| | | * 制购 1: 制造 2: 采购 3: 外协 |
| | | */ |
| | | @ApiModelProperty(value= "制购 1: 制造 2: 采购 3: 外协 ") |
| | | private Integer source; |
| | | |
| | | /** |
| | | * 要求检验 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "要求检验 1: 是 0: 否 ") |
| | | private Integer inspect; |
| | | |
| | | /** |
| | | * 危险品 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "危险品 1: 是 0: 否 ") |
| | | private Integer danger; |
| | | |
| | | /** |
| | | * 状态 1: 正常 0: 禁用 |
| | |
| | | * 添加人员 |
| | | */ |
| | | @ApiModelProperty(value= "添加人员") |
| | | @TableField("create_by") |
| | | private Long createBy; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 修改人员 |
| | | */ |
| | | @ApiModelProperty(value= "修改人员") |
| | | @TableField("update_by") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 仓库ID |
| | | */ |
| | | @ApiModelProperty(value= "仓库ID") |
| | | @TableField("host_id") |
| | | private Long hostId; |
| | | |
| | | //念初使用以下额外字段 |
| | | //主要仓库 |
| | | @TableField("main_host") |
| | | private String mainHost; |
| | | |
| | | //主要来源 |
| | | @TableField("main_source") |
| | | private String mainSource; |
| | | |
| | | //循环盘点码 |
| | | @TableField("cycle_pick_code") |
| | | private String cyclePickCode; |
| | | |
| | | //存放位置 |
| | | @TableField("location_stock") |
| | | private String locationStock; |
| | | |
| | | //材质 |
| | | private String material; |
| | | |
| | | //制令 |
| | | private String decrees; |
| | | |
| | | //图号 |
| | | @TableField("img_num") |
| | | private String imgNum; |
| | | |
| | | //采购单位 |
| | | @TableField("purchasing_units") |
| | | private String purchasingUnits; |
| | | |
| | | //工艺编号 |
| | | @TableField("process_number") |
| | | private String processNumber; |
| | | |
| | | //指定bom |
| | | private String bom; |
| | | |
| | | //安全存量 |
| | | @TableField("safe_num") |
| | | private String safeNum; |
| | | |
| | | //最低补量 |
| | | @TableField("mini_count") |
| | | private String miniCount; |
| | | |
| | | //补货倍量 |
| | | @TableField("replenishment_num") |
| | | private String replenishmentNum; |
| | | |
| | | //自定义1 |
| | | private String tmp1; |
| | | |
| | | //自定义2 |
| | | private String tmp2; |
| | | |
| | | //自定义3 |
| | | private String tmp3; |
| | | |
| | | //按需求补货 |
| | | @TableField("replenishment_num") |
| | | private String restockDemand; |
| | | |
| | | //失效 |
| | | private String lapse; |
| | | |
| | | //快捷码 |
| | | private String shortcuts; |
| | | |
| | | //宽度 |
| | | private String width; |
| | | |
| | | //高度 |
| | | private String height; |
| | | |
| | | //会计分类 |
| | | @TableField("accounting_class") |
| | | private String accountingClass; |
| | | |
| | | //批号管理 |
| | | private String batch; |
| | | |
| | | //存货核算 |
| | | @TableField("inventory_account") |
| | | private String inventoryAccount; |
| | | |
| | | |
| | | public Mat() {} |
| | | |
| | | public Mat(String uuid, Long tagId, String matnr, String maktx, String name, String specs, String model, String color, String brand, String unit, Double price, String sku, Double units, String barcode, String origin, String manu, String manuDate, String itemNum, Double safeQty, Double weight, Double length, Double volume, String threeCode, String supp, String suppCode, Integer beBatch, String deadTime, Integer deadWarn, Integer source, Integer inspect, Integer danger, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) { |
| | | public Mat(String uuid, Long tagId, String matnr, String maktx, String name, String specs, String model, String color, String brand, String unit, Double price, String sku, String units, String barcode, String origin, String manu, String manuDate, String itemNum, String weight, String length, String volume, String threeCode, String supp, String suppCode, String deadTime, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo, Long hostId, String mainHost, String mainSource, String cyclePickCode, String locationStock, String material, String decrees, String imgNum, String purchasingUnits, String processNumber, String bom, String safeNum, String miniCount, String replenishmentNum, String tmp1, String tmp2, String tmp3, String restockDemand, String lapse, String shortcuts, String width, String height, String accountingClass, String batch, String inventoryAccount) { |
| | | this.uuid = uuid; |
| | | this.tagId = tagId; |
| | | this.matnr = matnr; |
| | |
| | | this.manu = manu; |
| | | this.manuDate = manuDate; |
| | | this.itemNum = itemNum; |
| | | this.safeQty = safeQty; |
| | | this.weight = weight; |
| | | this.length = length; |
| | | this.volume = volume; |
| | | this.threeCode = threeCode; |
| | | this.supp = supp; |
| | | this.suppCode = suppCode; |
| | | this.beBatch = beBatch; |
| | | this.deadTime = deadTime; |
| | | this.deadWarn = deadWarn; |
| | | this.source = source; |
| | | this.inspect = inspect; |
| | | this.danger = danger; |
| | | this.status = status; |
| | | this.createBy = createBy; |
| | | this.createTime = createTime; |
| | | this.updateBy = updateBy; |
| | | this.updateTime = updateTime; |
| | | this.memo = memo; |
| | | this.hostId = hostId; |
| | | this.mainHost = mainHost; |
| | | this.mainSource = mainSource; |
| | | this.cyclePickCode = cyclePickCode; |
| | | this.locationStock = locationStock; |
| | | this.material = material; |
| | | this.decrees = decrees; |
| | | this.imgNum = imgNum; |
| | | this.purchasingUnits = purchasingUnits; |
| | | this.processNumber = processNumber; |
| | | this.bom = bom; |
| | | this.safeNum = safeNum; |
| | | this.miniCount = miniCount; |
| | | this.replenishmentNum = replenishmentNum; |
| | | this.tmp1 = tmp1; |
| | | this.tmp2 = tmp2; |
| | | this.tmp3 = tmp3; |
| | | this.restockDemand = restockDemand; |
| | | this.lapse = lapse; |
| | | this.shortcuts = shortcuts; |
| | | this.width = width; |
| | | this.height = height; |
| | | this.accountingClass = accountingClass; |
| | | this.batch = batch; |
| | | this.inventoryAccount = inventoryAccount; |
| | | } |
| | | |
| | | // Mat manMat = new Mat( |
| | | // Mat manMat = new Mat( |
| | | // null, // 编号 |
| | | // null, // 所属归类 |
| | | // null, // 商品编号[非空] |
| | |
| | | // ); |
| | | |
| | | public String getTagId$(){ |
| | | ManTagService manTagService = SpringUtils.getBean(ManTagService.class); |
| | | Tag tag = manTagService.getById(this.tagId); |
| | | TagService tagService = SpringUtils.getBean(TagService.class); |
| | | Tag tag = tagService.getById(this.tagId); |
| | | if (!Cools.isEmpty(tag)){ |
| | | return String.valueOf(tag.getId()); |
| | | return String.valueOf(tag.getName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | switch (this.beBatch){ |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | | return "否"; |
| | | default: |
| | | return String.valueOf(this.beBatch); |
| | | } |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | switch (this.source){ |
| | | case 1: |
| | | return "制造"; |
| | | case 2: |
| | | return "采购"; |
| | | case 3: |
| | | return "外协"; |
| | | default: |
| | | return String.valueOf(this.source); |
| | | } |
| | | } |
| | | |
| | | public String getInspect$(){ |
| | | if (null == this.inspect){ return null; } |
| | | switch (this.inspect){ |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | | return "否"; |
| | | default: |
| | | return String.valueOf(this.inspect); |
| | | } |
| | | } |
| | | |
| | | public String getDanger$(){ |
| | | if (null == this.danger){ return null; } |
| | | switch (this.danger){ |
| | | case 1: |
| | | return "是"; |
| | | case 0: |
| | | return "否"; |
| | | default: |
| | | return String.valueOf(this.danger); |
| | | } |
| | | } |
| | | |
| | | public String getStatus$(){ |