台湾展会用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

60 lines
1.2 KiB

package com.yvan.entity;
import com.galaxis.rcs.common.entity.LccBasLocation;
import com.yvan.logisticsModel.ExecutorItem;
import lombok.Data;
/**
* 用于表示货位的值对象
*/
@Data
public class BasLocationVo {
/**
* 位置编码
*/
String locCode;
/**
* 货位类型
*/
String locType;
/**
* 货位
*/
String rack;
/**
* 列
*/
int bay;
/**
* 层
*/
int level;
/**
* 格
*/
int cell;
public BasLocationVo(LccBasLocation basLocation) {
this.locCode = basLocation.getLocCode();
this.locType = basLocation.getLocType();
this.rack = basLocation.getRack();
this.bay = basLocation.getBay();
this.level = basLocation.getLevel();
this.cell = basLocation.getCell();
}
public BasLocationVo(ExecutorItem executorItem) {
// 从 ExecutorItem 中提取信息并赋值给 BasLocationVo
this.locCode = "AGV_" + executorItem.getId();
this.locType = executorItem.getT();
this.rack = executorItem.getId();
this.bay = 0;
this.level = 0;
this.cell = 0;
}
}