skyouc
6 天以前 c8fde8647b48e7c7d9b3beb6e8c39459f07c9eb2
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java
@@ -3,12 +3,16 @@
import com.baomidou.mybatisplus.annotation.*;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.*;
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 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;
@@ -23,10 +27,10 @@
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 {
@@ -42,19 +46,19 @@
    /**
     * 名称
     */
    @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 = "货主编码")
@@ -63,13 +67,25 @@
    /**
     * 分组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;
    /**
@@ -105,7 +121,7 @@
    /**
     * 长*宽*高(m)
     */
    @ApiModelProperty(value= "长*宽*高(m)")
    @ApiModelProperty(value= "尺寸(m)")
    private String size;
    /**
@@ -208,8 +224,11 @@
     * 是否删除 1: 是  0: 否  
     */
    @ApiModelProperty(value= "是否删除 1: 是  0: 否  ")
    @TableLogic
    private Integer deleted;
    @ApiModelProperty("动态扩展字段")
    @TableField(exist = false)
    private Map<String, String> extendFields;
    /**
     * 租户
@@ -228,6 +247,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;
    /**
@@ -241,6 +261,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;
    /**
@@ -343,19 +364,18 @@
        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; }
@@ -371,7 +391,7 @@
        }
    }
    public String getIsLabelMange$(){
    public String getFlagLabelMange$(){
        if (null == this.flagLabelMange){ return null; }
        switch (this.flagLabelMange){
            case 0: