1
14 小时以前 e711c834aec2293c53b07efe53e81e3573c289b6
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java
@@ -5,6 +5,8 @@
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;
@@ -28,7 +30,7 @@
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 {
@@ -247,6 +249,7 @@
     */
    @ApiModelProperty(value= "添加时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
@@ -260,6 +263,7 @@
     */
    @ApiModelProperty(value= "修改时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    /**
@@ -267,6 +271,24 @@
     */
    @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;
    /**
     * 备注
@@ -366,15 +388,14 @@
        }
        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 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; }