| | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.*; |
| | | |
| | | import com.vincent.rsf.server.manager.service.BatchRegularService; |
| | | import com.vincent.rsf.server.manager.service.CompanysService; |
| | | import com.vincent.rsf.server.manager.service.MatnrGroupService; |
| | | import com.vincent.rsf.server.manager.service.ShipperService; |
| | | import com.vincent.rsf.server.system.entity.SerialRule; |
| | | import com.vincent.rsf.server.system.service.SerialRuleService; |
| | | import lombok.experimental.Accessors; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | |
| | | import com.vincent.rsf.server.system.entity.User; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | @TableName("man_matnr") |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "Matnr", description = "物料所有基础属性") |
| | | public class Matnr implements Serializable { |
| | | |
| | |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @ApiModelProperty(value= "名称") |
| | | @ApiModelProperty(value= "物料名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 编码 |
| | | */ |
| | | @ApiModelProperty(value= "编码") |
| | | @ApiModelProperty(value= "物料编码") |
| | | private String code; |
| | | |
| | | /** |
| | | * 货主ID |
| | | */ |
| | | @ApiModelProperty(value= "货主ID") |
| | | @ApiModelProperty(value= "货主标识") |
| | | private Long shipperId; |
| | | |
| | | // @ApiModelProperty(value = "货主编码") |
| | | // private String shipperCode; |
| | | |
| | | /** |
| | | * 分组ID(*) |
| | | */ |
| | | @ApiModelProperty(value= "分组ID(*)") |
| | | @ApiModelProperty(value= "物料分组(*)") |
| | | private Long groupId; |
| | | |
| | | /** |
| | | * 字段标识 |
| | | */ |
| | | @ApiModelProperty(value = "字段标识") |
| | | private String fieldsIndex; |
| | | |
| | | /** |
| | | * 分组助记码 |
| | | */ |
| | | @ApiModelProperty(value = "分组助记码") |
| | | private String groupCode; |
| | | |
| | | /** |
| | | * 规则代码 |
| | | */ |
| | | @ApiModelProperty(value= "规则代码") |
| | | @ApiModelProperty(value= "批次规则标识") |
| | | private Long rglarId; |
| | | |
| | | /** |
| | | * ERP编码 |
| | | */ |
| | | @ApiModelProperty(value= "ERP编码") |
| | | private String erpCode; |
| | | private String platCode; |
| | | |
| | | /** |
| | | * 规格 |
| | |
| | | /** |
| | | * 长*宽*高(m) |
| | | */ |
| | | @ApiModelProperty(value= "长*宽*高(m)") |
| | | @ApiModelProperty(value= "尺寸(m)") |
| | | private String size; |
| | | |
| | | /** |
| | |
| | | @TableLogic |
| | | private Integer deleted; |
| | | |
| | | @ApiModelProperty("动态扩展字段") |
| | | @TableField(exist = false) |
| | | private Map<String, String> extendFields; |
| | | |
| | | /** |
| | | * 租户 |
| | | */ |
| | |
| | | |
| | | public Matnr() {} |
| | | |
| | | public Matnr(String name,String code,Long shipperId,Long groupId,Long rglarId,String erpCode,String spec,String model,Double weight,String color,String size,String describle,Integer nromNum,String unit,String purUnit,String stockUnit,Short stockLevel,Short flagLabelMange,Double safeQty,Double minQty,Double maxQty,Integer stagn,Integer valid,Integer validWarn,Short flagCheck,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { |
| | | public Matnr(String name,String code,Long shipperId,Long groupId,Long rglarId,String platCode,String spec,String model,Double weight,String color,String size,String describle,Integer nromNum,String unit,String purUnit,String stockUnit,Short stockLevel,Short flagLabelMange,Double safeQty,Double minQty,Double maxQty,Integer stagn,Integer valid,Integer validWarn,Short flagCheck,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { |
| | | this.name = name; |
| | | this.code = code; |
| | | this.shipperId = shipperId; |
| | | this.groupId = groupId; |
| | | this.rglarId = rglarId; |
| | | this.erpCode = erpCode; |
| | | this.platCode = platCode; |
| | | this.spec = spec; |
| | | this.model = model; |
| | | this.weight = weight; |
| | |
| | | // ); |
| | | |
| | | public String getShipperId$(){ |
| | | ShipperService service = SpringUtils.getBean(ShipperService.class); |
| | | Shipper shipper = service.getById(this.shipperId); |
| | | if (!Cools.isEmpty(shipper)){ |
| | | return String.valueOf(shipper.getName()); |
| | | CompanysService service = SpringUtils.getBean(CompanysService.class); |
| | | Companys companys = service.getById(this.shipperId); |
| | | if (!Cools.isEmpty(companys)){ |
| | | return String.valueOf(companys.getName()); |
| | | } |
| | | return null; |
| | | } |
| | |
| | | MatnrGroupService service = SpringUtils.getBean(MatnrGroupService.class); |
| | | MatnrGroup matnrGroup = service.getById(this.groupId); |
| | | if (!Cools.isEmpty(matnrGroup)){ |
| | | return String.valueOf(matnrGroup.getCode()); |
| | | return String.valueOf(matnrGroup.getName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getRglarId(){ |
| | | BatchRegularService service = SpringUtils.getBean(BatchRegularService.class); |
| | | BatchRegular batchRegular = service.getById(this.rglarId); |
| | | if (!Cools.isEmpty(batchRegular)){ |
| | | return String.valueOf(batchRegular.getCode()); |
| | | } |
| | | return null; |
| | | } |
| | | // public String getRglarId$(){ |
| | | // SerialRuleService service = SpringUtils.getBean(SerialRuleService.class); |
| | | // SerialRule batchRegular = service.getById(this.rglarId); |
| | | // if (!Cools.isEmpty(batchRegular)){ |
| | | // return String.valueOf(batchRegular.getCode()); |
| | | // } |
| | | // return null; |
| | | // } |
| | | |
| | | public String getStockLeval$(){ |
| | | if (null == this.stockLevel){ return null; } |
| | |
| | | } |
| | | } |
| | | |
| | | public String getIsLabelMange$(){ |
| | | public String getFlagLabelMange$(){ |
| | | if (null == this.flagLabelMange){ return null; } |
| | | switch (this.flagLabelMange){ |
| | | case 0: |