| | |
| | | import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
| | | import com.zy.asrs.common.utils.Synchro;
|
| | | import com.zy.asrs.framework.common.Cools;
|
| | | import com.zy.asrs.framework.common.DateUtils;
|
| | | import com.zy.asrs.framework.common.SpringUtils;
|
| | | import com.zy.asrs.wms.asrs.service.LocService;
|
| | | import com.zy.asrs.wms.asrs.service.MatService;
|
| | |
| | | import com.zy.asrs.wms.system.service.UserService;
|
| | | import io.swagger.annotations.ApiModelProperty;
|
| | | import lombok.Data;
|
| | | import lombok.experimental.Delegate;
|
| | | import org.springframework.format.annotation.DateTimeFormat;
|
| | |
|
| | | import java.io.Serializable;
|
| | |
| | | * ID
|
| | | */
|
| | | @ApiModelProperty(value= "ID")
|
| | | @TableId(value = "id", type = IdType.AUTO)
|
| | | private Long id;
|
| | |
|
| | | /**
|
| | |
| | | return null;
|
| | | }
|
| | |
|
| | | public String getMatId$(){
|
| | | @Delegate(types = Mat.class)
|
| | | public Mat getMatId$(){
|
| | | MatService service = SpringUtils.getBean(MatService.class);
|
| | | Mat mat = service.getById(this.matId);
|
| | | if (!Cools.isEmpty(mat)){
|
| | | return String.valueOf(mat.getId());
|
| | | }
|
| | | return null;
|
| | | return mat;
|
| | | }
|
| | |
|
| | | public String getDewell$() {
|
| | | return DateUtils.diff(new Date(), createTime) + "天";
|
| | | }
|
| | |
|
| | |
|
| | | public String getHostId$(){
|
| | | HostService service = SpringUtils.getBean(HostService.class);
|
| | | Host host = service.getById(this.hostId);
|