|  |  |  | 
|---|
|  |  |  | import java.text.SimpleDateFormat; | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.fasterxml.jackson.annotation.JsonFormat; | 
|---|
|  |  |  | import com.vincent.rsf.server.manager.service.*; | 
|---|
|  |  |  | import lombok.experimental.Accessors; | 
|---|
|  |  |  | import org.springframework.format.annotation.DateTimeFormat; | 
|---|
|  |  |  | import java.text.SimpleDateFormat; | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "物料ID") | 
|---|
|  |  |  | private Long areaId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 主单ID | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty("主单ID") | 
|---|
|  |  |  | private Long areaMatId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 编号 | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @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; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | //            null    // 备注 | 
|---|
|  |  |  | //    ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getAreaId$(){ | 
|---|
|  |  |  | WarehouseAreasService service = SpringUtils.getBean(WarehouseAreasService.class); | 
|---|
|  |  |  | WarehouseAreas warehouseAreas = service.getById(this.areaId); | 
|---|
|  |  |  | if (!Cools.isEmpty(warehouseAreas)){ | 
|---|
|  |  |  | return String.valueOf(warehouseAreas.getName()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getMatnrId$(){ | 
|---|
|  |  |  | MatnrService service = SpringUtils.getBean(MatnrService.class); | 
|---|
|  |  |  | Matnr matnr = service.getById(this.matnrId); | 
|---|
|  |  |  | if (!Cools.isEmpty(matnr)){ | 
|---|
|  |  |  | return String.valueOf(matnr.getName()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getLocTypeId$(){ | 
|---|
|  |  |  | LocTypeService service = SpringUtils.getBean(LocTypeService.class); | 
|---|
|  |  |  | LocType locType = service.getById(this.locTypeId); | 
|---|
|  |  |  | if (!Cools.isEmpty(locType)){ | 
|---|
|  |  |  | return String.valueOf(locType.getName()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getLocId$(){ | 
|---|
|  |  |  | LocService service = SpringUtils.getBean(LocService.class); | 
|---|
|  |  |  | Loc loc = service.getById(this.locId); | 
|---|
|  |  |  | if (!Cools.isEmpty(loc)){ | 
|---|
|  |  |  | return String.valueOf(loc.getCode()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getStatus$(){ | 
|---|
|  |  |  | if (null == this.status){ return null; } | 
|---|
|  |  |  | switch (this.status){ | 
|---|