| package com.zy.asrs.entity; | 
|   | 
| import com.baomidou.mybatisplus.annotations.TableField; | 
| import com.baomidou.mybatisplus.annotations.TableId; | 
| import com.baomidou.mybatisplus.annotations.TableName; | 
| import com.baomidou.mybatisplus.enums.IdType; | 
| import com.core.common.Cools; | 
| import com.core.common.SpringUtils; | 
| import com.zy.system.entity.User; | 
| import com.zy.system.service.UserService; | 
| import io.swagger.annotations.ApiModelProperty; | 
|   | 
| import java.io.Serializable; | 
| import java.text.SimpleDateFormat; | 
| import java.util.Date; | 
|   | 
| @TableName("asr_bas_wrk_iotype") | 
| public class BasWrkIotype implements Serializable { | 
|   | 
|     private static final long serialVersionUID = 1L; | 
|   | 
|     /** | 
|      * 入出类型代号 | 
|      */ | 
|     @ApiModelProperty(value = "入出类型代号") | 
|     @TableId(value = "io_type", type = IdType.INPUT) | 
|     @TableField("io_type") | 
|     private Integer ioType; | 
|   | 
|     /** | 
|      * 主要 | 
|      */ | 
|     @ApiModelProperty(value = "主要") | 
|     @TableField("io_pri") | 
|     private String ioPri; | 
|   | 
|     /** | 
|      * 入出类型描述 | 
|      */ | 
|     @ApiModelProperty(value = "入出类型描述") | 
|     @TableField("io_desc") | 
|     private String ioDesc; | 
|   | 
|     /** | 
|      * 修改人员 | 
|      */ | 
|     @ApiModelProperty(value = "修改人员") | 
|     @TableField("modi_user") | 
|     private Long modiUser; | 
|   | 
|     /** | 
|      * 修改时间 | 
|      */ | 
|     @ApiModelProperty(value = "修改时间") | 
|     @TableField("modi_time") | 
|     private Date modiTime; | 
|   | 
|     /** | 
|      * 创建者 | 
|      */ | 
|     @ApiModelProperty(value = "创建者") | 
|     @TableField("appe_user") | 
|     private Long appeUser; | 
|   | 
|     /** | 
|      * 添加时间 | 
|      */ | 
|     @ApiModelProperty(value = "添加时间") | 
|     @TableField("appe_time") | 
|     private Date appeTime; | 
|   | 
|     public BasWrkIotype() { | 
|     } | 
|   | 
|     public BasWrkIotype(String ioPri, String ioDesc, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { | 
|         this.ioPri = ioPri; | 
|         this.ioDesc = ioDesc; | 
|         this.modiUser = modiUser; | 
|         this.modiTime = modiTime; | 
|         this.appeUser = appeUser; | 
|         this.appeTime = appeTime; | 
|     } | 
|   | 
| //    BasWrkIotype basWrkIotype = new BasWrkIotype( | 
| //            null,    // 主要 | 
| //            null,    // 入出类型描述 | 
| //            null,    // 修改人员 | 
| //            null,    // 修改时间 | 
| //            null,    // 创建者 | 
| //            null    // 添加时间 | 
| //    ); | 
|   | 
|     public Integer getIoType() { | 
|         return ioType; | 
|     } | 
|   | 
|     public void setIoType(Integer ioType) { | 
|         this.ioType = ioType; | 
|     } | 
|   | 
|     public String getIoPri() { | 
|         return ioPri; | 
|     } | 
|   | 
|     public void setIoPri(String ioPri) { | 
|         this.ioPri = ioPri; | 
|     } | 
|   | 
|     public String getIoDesc() { | 
|         return ioDesc; | 
|     } | 
|   | 
|     public void setIoDesc(String ioDesc) { | 
|         this.ioDesc = ioDesc; | 
|     } | 
|   | 
|     public Long getModiUser() { | 
|         return modiUser; | 
|     } | 
|   | 
|     public void setModiUser(Long modiUser) { | 
|         this.modiUser = modiUser; | 
|     } | 
|   | 
|     public String getModiUser$() { | 
|         UserService service = SpringUtils.getBean(UserService.class); | 
|         User user = service.selectById(this.modiUser); | 
|         if (!Cools.isEmpty(user)) { | 
|             return String.valueOf(user.getUsername()); | 
|         } | 
|         return null; | 
|     } | 
|   | 
|     public Date getModiTime() { | 
|         return modiTime; | 
|     } | 
|   | 
|     public void setModiTime(Date modiTime) { | 
|         this.modiTime = modiTime; | 
|     } | 
|   | 
|     public String getModiTime$() { | 
|         if (Cools.isEmpty(this.modiTime)) { | 
|             return ""; | 
|         } | 
|         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); | 
|     } | 
|   | 
|     public Long getAppeUser() { | 
|         return appeUser; | 
|     } | 
|   | 
|     public void setAppeUser(Long appeUser) { | 
|         this.appeUser = appeUser; | 
|     } | 
|   | 
|     public String getAppeUser$() { | 
|         UserService service = SpringUtils.getBean(UserService.class); | 
|         User user = service.selectById(this.appeUser); | 
|         if (!Cools.isEmpty(user)) { | 
|             return String.valueOf(user.getUsername()); | 
|         } | 
|         return null; | 
|     } | 
|   | 
|     public Date getAppeTime() { | 
|         return appeTime; | 
|     } | 
|   | 
|     public void setAppeTime(Date appeTime) { | 
|         this.appeTime = appeTime; | 
|     } | 
|   | 
|     public String getAppeTime$() { | 
|         if (Cools.isEmpty(this.appeTime)) { | 
|             return ""; | 
|         } | 
|         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); | 
|     } | 
|   | 
|   | 
| } |