package com.ld.igds.phone.dto;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ld.igds.constant.*;
|
import lombok.Data;
|
|
import java.util.Date;
|
|
@Data
|
public class DtoDepot {
|
|
private String companyId;
|
private String depotId;
|
private String depotName;
|
private String depotType;
|
private String depotTypeName;
|
private String depotStatus;
|
private String depotStatusName;
|
private Double storageMax;
|
private Double storageReal;
|
private String foodType;
|
private String foodTypeName;
|
private String foodVariety;
|
private String foodVarietyName;
|
private String foodLevel;
|
private String foodLevelName;
|
private String foodLocation;
|
private String perWet;
|
private String perImpurity;
|
private String storeKeeper;
|
private String storeKeeperName;
|
private String storeDate;
|
private String foodYear;
|
private String remark;
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
|
private Date receiveDate;
|
private String isPest;
|
private Double perCo2 = 0.0;
|
private Double perO2 = 0.0;
|
private Double perPh3 = 0.0;
|
private Double perN2 = 0.0;
|
// private String gasRemark;
|
|
public String getDepotTypeName() {
|
if (null != this.depotType) {
|
return DepotType.getMsg(this.depotType);
|
}
|
return null;
|
}
|
|
public String getDepotStatusName() {
|
if (null != this.depotStatus) {
|
return DepotStatus.getMsg(this.depotStatus);
|
}
|
return null;
|
}
|
|
public String getFoodTypeName() {
|
if (null != this.foodType) {
|
return FoodType.getMsg(this.foodType);
|
}
|
return null;
|
}
|
|
public String getFoodVarietyName() {
|
if (null != this.foodVariety) {
|
return FoodVariety.getMsg(this.foodVariety);
|
}
|
return null;
|
}
|
|
public String getFoodLevelName() {
|
if (null != this.foodLevel) {
|
return FoodLevel.getMsg(this.foodLevel);
|
}
|
return null;
|
}
|
}
|