zhou zhou
2 天以前 a8df4c4a80781c02815021a840971ce4b15419f5
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/DeviceSite.java
@@ -7,6 +7,7 @@
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.vincent.rsf.server.manager.service.BasStationService;
import com.vincent.rsf.server.manager.service.LocTypeService;
import com.vincent.rsf.server.system.constant.DictTypeCode;
import com.vincent.rsf.server.system.entity.DictData;
@@ -83,7 +84,7 @@
    /**
     * 设备编号
     */
    @ApiModelProperty(value= "设备编号")
    @ApiModelProperty(value= "接驳位")
    private String deviceCode;
    /**
@@ -105,6 +106,10 @@
    @TableLogic
    private Integer deleted;
    @ApiModelProperty(value= "巷道")
    private Integer channel;
    /**
     * 租户
     */
@@ -116,6 +121,9 @@
     */
    @ApiModelProperty(value= "添加人员")
    private Long createBy;
    @TableField(exist = false)
    private String createBy$;
    /**
     * 添加时间
@@ -130,6 +138,9 @@
     */
    @ApiModelProperty(value= "修改人员")
    private Long updateBy;
    @TableField(exist = false)
    private String updateBy$;
    /**
     * 修改时间
@@ -150,6 +161,12 @@
     */
    @ApiModelProperty(value= "备注")
    private String memo;
    @ApiModelProperty("源库区")
    private Long areaIdStart;
    @ApiModelProperty("目标库区")
    private Long areaIdEnd;
    public DeviceSite() {}
@@ -190,6 +207,23 @@
//            null,    // 修改时间[非空]
//            null    // 备注
//    );
//    public String getSite$() {
//        if (this.site == null) {return  null;}
//        BasStationService service = SpringUtils.getBean(BasStationService.class);
//        BasStation station = service.getOne(new LambdaQueryWrapper<BasStation>().eq(BasStation::getStationName, this.site));
//        if (Objects.isNull(station)) {return  null;}
//        return station.getStationName();
//    }
//
//    public String getDeviceSite$() {
//        if (this.deviceSite == null) {return  null;}
//        BasStationService service = SpringUtils.getBean(BasStationService.class);
//        BasStation station = service.getById(this.deviceSite);
//        if (Objects.isNull(station)) {return  null;}
//        return station.getStationName();
//    }
    public String getType$(){
        if (null == this.type){ return null; }
@@ -241,29 +275,11 @@
        }
    }
    public String getCreateBy$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.getById(this.createBy);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getNickname());
        }
        return null;
    }
    public String getCreateTime$(){
        if (Cools.isEmpty(this.createTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
    }
    public String getUpdateBy$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.getById(this.updateBy);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getNickname());
        }
        return null;
    }
    public String getUpdateTime$(){