You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
udi-wms-java/src/main/java/com/glxp/api/vo/dev/DeviceChangeOrderVo.java

57 lines
1.3 KiB
Java

2 years ago
package com.glxp.api.vo.dev;
import com.glxp.api.entity.dev.DeviceChangeOrderEntity;
import com.glxp.api.enums.dev.DeviceChangeTypeEnum;
2 years ago
import lombok.Data;
import java.util.Date;
2 years ago
@Data
public class DeviceChangeOrderVo extends DeviceChangeOrderEntity {
String deptName;
String toDeptName;
String typeName;
String statusName;
/**
* 1.稿2.3.4.
*/
private int flowStatus;
/**
*
*/
private Date flowAuditTime;
private String flowAuditByName;
2 years ago
public String getTypeName() {
if (super.getType() != null) {
DeviceChangeTypeEnum type = super.getType();
if (type.equals(DeviceChangeTypeEnum.DESTROY)){
if (super.getDestroyType()!= null){
if (super.getDestroyType() == 1){
return "报废";
}else {
return "销毁";
}
}
}
2 years ago
return super.getType().getDesc();
}
return typeName;
}
public String getStatusName() {
if (super.getStatus() != null) {
return super.getStatus().getDesc();
}
return statusName;
}
}