| | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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 java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("man_matnr") |
| | | @TableName(value = "man_matnr", autoResultMap = true) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "Matnr", description = "物料所有基础属性") |
| | | public class Matnr implements Serializable { |
| | |
| | | @ApiModelProperty(value= "添加人员") |
| | | private Long createBy; |
| | | |
| | | @TableField(exist = false) |
| | | private String createBy$; |
| | | |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private Date createTime; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value= "修改人员") |
| | | private Long updateBy; |
| | | |
| | | @TableField(exist = false) |
| | | private String updateBy$; |
| | | |
| | | /** |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private Date updateTime; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | private String baseUnit; |
| | | private String useOrgId; |
| | | private String useOrgName; |
| | | private String erpClsId; |
| | | |
| | | /** |
| | | * 仓库限制名称 |
| | | */ |
| | | @ApiModelProperty(value= "仓库限制编码") |
| | | private String warehouseRestrictionCode; |
| | | |
| | | /** |
| | | * 容器类型 |
| | | */ |
| | | @ApiModelProperty(value= "容器类型集合") |
| | | @TableField(typeHandler = JacksonTypeHandler.class) |
| | | private List<Integer> containerTypes; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "分类列表") |
| | | @TableField(exist = false) |
| | | private List<Matnr> children; |
| | | @TableField(exist = false) |
| | | private String shipperId$; |
| | | |
| | | @TableField(exist = false) |
| | | private String groupId$; |
| | | |
| | | |
| | | |
| | | public Matnr() {} |
| | | |
| | |
| | | // ); |
| | | |
| | | public String getShipperId$(){ |
| | | CompanysService service = SpringUtils.getBean(CompanysService.class); |
| | | Companys companys = service.getById(this.shipperId); |
| | | if (!Cools.isEmpty(companys)){ |
| | | return String.valueOf(companys.getName()); |
| | | } |
| | | return null; |
| | | return this.shipperId$; |
| | | } |
| | | |
| | | public String getGroupId$(){ |
| | | MatnrGroupService service = SpringUtils.getBean(MatnrGroupService.class); |
| | | MatnrGroup matnrGroup = service.getById(this.groupId); |
| | | if (!Cools.isEmpty(matnrGroup)){ |
| | | return String.valueOf(matnrGroup.getName()); |
| | | } |
| | | return null; |
| | | return this.groupId$; |
| | | } |
| | | // 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 getCreateBy$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.getById(this.createBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | public String getUpdateBy$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.getById(this.updateBy); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getUpdateTime$(){ |