#
luxiaotao1123
2024-09-19 e64669bf3528ac7c2e0cbcb956574721b376bd38
zy-acs-manager/src/main/java/com/zy/acs/manager/manager/entity/Route.java
@@ -1,6 +1,7 @@
package com.zy.acs.manager.manager.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zy.acs.framework.common.SpringUtils;
@@ -82,13 +83,13 @@
     * 租户
     */
    @ApiModelProperty(value= "租户")
    private Integer tenantId;
    private Long tenantId;
    /**
     * 添加人员
     */
    @ApiModelProperty(value= "添加人员")
    private Integer createBy;
    private Long createBy;
    /**
     * 添加时间
@@ -100,7 +101,7 @@
     * 修改人员
     */
    @ApiModelProperty(value= "修改人员")
    private Integer updateBy;
    private Long updateBy;
    /**
     * 修改时间
@@ -114,9 +115,12 @@
    @ApiModelProperty(value= "备注")
    private String memo;
    @TableField(exist = false)
    private Double distance;
    public Route() {}
    public Route(String uuid,String name,Long startCode,Long endCode,String codeArr,String codeDataArr,Integer direction,Integer status,Integer deleted,Integer tenantId,Integer createBy,Date createTime,Integer updateBy,Date updateTime,String memo) {
    public Route(String uuid,String name,Long startCode,Long endCode,String codeArr,String codeDataArr,Integer direction,Integer status,Integer deleted,Long tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
        this.uuid = uuid;
        this.name = name;
        this.startCode = startCode;
@@ -178,17 +182,7 @@
        }
    }
    public String getDeleted$(){
        if (null == this.deleted){ return null; }
        switch (this.deleted){
            case 1:
                return "是";
            case 0:
                return "否";
            default:
                return String.valueOf(this.deleted);
        }
    }
    public String getStartCode$() {
        CodeService service = SpringUtils.getBean(CodeService.class);
@@ -208,4 +202,16 @@
        return null;
    }
    public Boolean getStatusBool(){
        if (null == this.status){ return null; }
        switch (this.status){
            case 1:
                return true;
            case 0:
                return false;
            default:
                return null;
        }
    }
}