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

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.glxp.api.vo.dev;
import com.glxp.api.entity.dev.DeviceChangeOrderEntity;
import com.glxp.api.enums.dev.DeviceChangeTypeEnum;
import lombok.Data;
import java.util.Date;
@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;
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 "销毁";
}
}
}
return super.getType().getDesc();
}
return typeName;
}
public String getStatusName() {
if (super.getStatus() != null) {
return super.getStatus().getDesc();
}
return statusName;
}
}