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; } }