zjj
2 天以前 d5540413a0163383b53d33aea1be93390ea9149c
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java
@@ -3,12 +3,14 @@
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;
@@ -24,7 +26,6 @@
import com.vincent.rsf.server.system.entity.User;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
@Data
@TableName("man_matnr")
@@ -44,19 +45,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 = "货主编码")
@@ -65,7 +66,7 @@
    /**
     * 分组ID(*)
     */
    @ApiModelProperty(value= "分组ID(*)")
    @ApiModelProperty(value= "物料分组(*)")
    private Long groupId;
    /**
@@ -83,7 +84,7 @@
    /**
     * 规则代码
     */
    @ApiModelProperty(value= "规则代码")
    @ApiModelProperty(value= "批次规则标识")
    private Long rglarId;
    /**
@@ -119,7 +120,7 @@
    /**
     * 长*宽*高(m)
     */
    @ApiModelProperty(value= "长*宽*高(m)")
    @ApiModelProperty(value= "尺寸(m)")
    private String size;
    /**
@@ -224,6 +225,10 @@
    @ApiModelProperty(value= "是否删除 1: 是  0: 否  ")
    @TableLogic
    private Integer deleted;
    @ApiModelProperty("动态扩展字段")
    @TableField(exist = false)
    private Map<String, String> extendFields;
    /**
     * 租户
@@ -357,19 +362,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; }
@@ -385,7 +389,7 @@
        }
    }
    public String getIsLabelMange$(){
    public String getFlagLabelMange$(){
        if (null == this.flagLabelMange){ return null; }
        switch (this.flagLabelMange){
            case 0: