skyouc
22 小时以前 474103da0c9793ec9cd7559f109491ece282e269
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/TransferItem.java
@@ -5,6 +5,7 @@
import java.text.SimpleDateFormat;
import java.util.Date;
import com.vincent.rsf.server.manager.service.CompanysService;
import lombok.experimental.Accessors;
import org.checkerframework.checker.units.qual.A;
import org.springframework.format.annotation.DateTimeFormat;
@@ -21,6 +22,7 @@
import com.vincent.rsf.server.system.entity.User;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;
@Data
@Accessors(chain = true)
@@ -264,6 +266,28 @@
//            null    // 备注
//    );
    public String getSplrName() {
        if (null == this.splrId) { return null; }
        CompanysService companysService = SpringUtils.getBean(CompanysService.class);
        Companys companys = companysService.getById(this.splrId);
        if (Objects.isNull(companys)) {
            return null;
        } else {
            return companys.getName();
        }
    }
    public String getSplrCode() {
        if (null == this.splrId) { return null; }
        CompanysService companysService = SpringUtils.getBean(CompanysService.class);
        Companys companys = companysService.getById(this.splrId);
        if (Objects.isNull(companys)) {
            return null;
        } else {
            return companys.getCode();
        }
    }
    public String getStatus$(){
        if (null == this.status){ return null; }
        switch (this.status){