|  |  | 
 |  |  | 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 com.vincent.rsf.server.system.entity.User; | 
 |  |  | import java.io.Serializable; | 
 |  |  | import java.util.Date; | 
 |  |  | import java.util.List; | 
 |  |  |  | 
 |  |  | @Data | 
 |  |  | @TableName("man_matnr") | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 名称 | 
 |  |  |      */ | 
 |  |  |     @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 = "货主编码") | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 分组ID(*) | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "分组ID(*)") | 
 |  |  |     @ApiModelProperty(value= "物料分组(*)") | 
 |  |  |     private Long groupId; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 规则代码 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "规则代码") | 
 |  |  |     @ApiModelProperty(value= "批次规则标识") | 
 |  |  |     private Long rglarId; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 长*宽*高(m) | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "长*宽*高(m)") | 
 |  |  |     @ApiModelProperty(value= "尺寸(m)") | 
 |  |  |     private String size; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |     @TableLogic | 
 |  |  |     private Integer deleted; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty("动态扩展字段") | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     private Map<String, String> extendFields; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 租户 | 
 |  |  |      */ | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     @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= "修改时间") | 
 |  |  |     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | 
 |  |  |     @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") | 
 |  |  |     private Date updateTime; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |         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: |