| package com.zy.asrs.entity; | 
|   | 
| import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; | 
| import com.baomidou.mybatisplus.enums.IdType; | 
| import com.baomidou.mybatisplus.annotations.TableField; | 
| import java.text.SimpleDateFormat; | 
| import java.util.Date; | 
|   | 
| import org.springframework.format.annotation.DateTimeFormat; | 
| import com.core.common.SpringUtils; | 
| import com.zy.system.service.UserService; | 
| import com.zy.system.entity.User; | 
|   | 
| import io.swagger.annotations.ApiModelProperty; | 
| import lombok.Data; | 
| import com.baomidou.mybatisplus.annotations.TableName; | 
| import java.io.Serializable; | 
|   | 
| @Data | 
| @TableName("asr_bas_lift") | 
| public class BasLift implements Serializable { | 
|   | 
|     private static final long serialVersionUID = 1L; | 
|   | 
|     /** | 
|      * 提升机号 | 
|      */ | 
|     @ApiModelProperty(value= "提升机号") | 
|     @TableId(value = "lift_no", type = IdType.INPUT) | 
|     @TableField("lift_no") | 
|     private Integer liftNo; | 
|   | 
|     /** | 
|      * 当前任务状态 | 
|      */ | 
|     @ApiModelProperty(value= "当前任务状态") | 
|     @TableField("status") | 
|     private Integer status; | 
|   | 
|     /** | 
|      * 任务号 | 
|      */ | 
|     @ApiModelProperty(value= "任务号") | 
|     @TableField("wrk_no") | 
|     private Integer wrkNo; | 
|   | 
|     /** | 
|      * 修改时间 | 
|      */ | 
|     @ApiModelProperty(value= "修改时间") | 
|     @TableField("update_time") | 
|     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | 
|     private Date updateTime; | 
|   | 
|     /** | 
|      * 修改人员 | 
|      */ | 
|     @ApiModelProperty(value= "修改人员") | 
|     @TableField("update_by") | 
|     private Long updateBy; | 
|   | 
|     /** | 
|      * 备注 | 
|      */ | 
|     @ApiModelProperty(value= "备注") | 
|     private String memo; | 
|   | 
|     /** | 
|      * 作业标记 | 
|      */ | 
|     @ApiModelProperty(value= "作业标记") | 
|     @TableField("pak_mk") | 
|     private Boolean pakMk; | 
|   | 
|     /** | 
|      * 设备状态 | 
|      */ | 
|     @ApiModelProperty(value= "设备状态") | 
|     @TableField("device_status") | 
|     private String deviceStatus; | 
|   | 
|     /** | 
|      * 提升机坐标 | 
|      */ | 
|     @ApiModelProperty(value= "提升机坐标") | 
|     @TableField("point") | 
|     private String point; | 
|   | 
|     public BasLift() {} | 
|   | 
|     public BasLift(Integer liftNo, Integer status, Integer wrkNo, Date updateTime, Long updateBy, String memo, Boolean pakMk, String deviceStatus) { | 
|         this.liftNo = liftNo; | 
|         this.status = status; | 
|         this.wrkNo = wrkNo; | 
|         this.updateTime = updateTime; | 
|         this.updateBy = updateBy; | 
|         this.memo = memo; | 
|         this.pakMk = pakMk; | 
|         this.deviceStatus = deviceStatus; | 
|     } | 
|   | 
|     public String getUpdateTime$(){ | 
|         if (Cools.isEmpty(this.updateTime)){ | 
|             return ""; | 
|         } | 
|         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); | 
|     } | 
|   | 
|     public String getUpdateBy$(){ | 
|         UserService service = SpringUtils.getBean(UserService.class); | 
|         User user = service.selectById(this.updateBy); | 
|         if (!Cools.isEmpty(user)){ | 
|             return String.valueOf(user.getUsername()); | 
|         } | 
|         return null; | 
|     } | 
|   | 
| } |