|  |  |  | 
|---|
|  |  |  | 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 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.service.UserService; | 
|---|
|  |  |  | import com.zy.system.entity.User; | 
|---|
|  |  |  | import java.text.SimpleDateFormat; | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  | import org.springframework.format.annotation.DateTimeFormat; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.zy.system.service.UserService; | 
|---|
|  |  |  | import io.swagger.annotations.ApiModelProperty; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotations.TableName; | 
|---|
|  |  |  | import org.springframework.format.annotation.DateTimeFormat; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.io.Serializable; | 
|---|
|  |  |  | import java.text.SimpleDateFormat; | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | @TableName("asr_row_lastno_type") | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 类别 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "类别") | 
|---|
|  |  |  | @ApiModelProperty(value = "类别") | 
|---|
|  |  |  | @TableId(value = "id", type = IdType.INPUT) | 
|---|
|  |  |  | private Integer id; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 规则简述 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "规则简述") | 
|---|
|  |  |  | @ApiModelProperty(value = "规则简述") | 
|---|
|  |  |  | @TableField("type_name") | 
|---|
|  |  |  | private String typeName; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 补充 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "补充") | 
|---|
|  |  |  | @ApiModelProperty(value = "补充") | 
|---|
|  |  |  | private String memo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 创建人员 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "创建人员") | 
|---|
|  |  |  | @ApiModelProperty(value = "创建人员") | 
|---|
|  |  |  | @TableField("modi_user") | 
|---|
|  |  |  | private Long modiUser; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 创建时间 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "创建时间") | 
|---|
|  |  |  | @ApiModelProperty(value = "创建时间") | 
|---|
|  |  |  | @TableField("modi_time") | 
|---|
|  |  |  | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | private Date modiTime; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 修改人员 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "修改人员") | 
|---|
|  |  |  | @ApiModelProperty(value = "修改人员") | 
|---|
|  |  |  | @TableField("appe_user") | 
|---|
|  |  |  | private Long appeUser; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 修改时间 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "修改时间") | 
|---|
|  |  |  | @ApiModelProperty(value = "修改时间") | 
|---|
|  |  |  | @TableField("appe_time") | 
|---|
|  |  |  | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | private Date appeTime; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 库型 1: 标准堆垛机库  2: 平库  3: 穿梭板  4: 四向车  5: AGV  0: 未知 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "库型 1: 标准堆垛机库  2: 平库  3: 穿梭板  4: 四向车  5: AGV  0: 未知  ") | 
|---|
|  |  |  | @ApiModelProperty(value = "库型 1: 标准堆垛机库  2: 平库  3: 穿梭板  4: 四向车  5: AGV  0: 未知  ") | 
|---|
|  |  |  | private Integer type; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public RowLastnoType() {} | 
|---|
|  |  |  | public RowLastnoType() { | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public RowLastnoType(Integer id,String typeName,String memo,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Integer type) { | 
|---|
|  |  |  | public RowLastnoType(Integer id, String typeName, String memo, Long modiUser, Date modiTime, Long appeUser, Date appeTime, Integer type) { | 
|---|
|  |  |  | this.id = id; | 
|---|
|  |  |  | this.typeName = typeName; | 
|---|
|  |  |  | this.memo = memo; | 
|---|
|  |  |  | 
|---|
|  |  |  | //            null    // 库型 | 
|---|
|  |  |  | //    ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getModiUser$(){ | 
|---|
|  |  |  | public String getModiUser$() { | 
|---|
|  |  |  | UserService service = SpringUtils.getBean(UserService.class); | 
|---|
|  |  |  | User user = service.selectById(this.modiUser); | 
|---|
|  |  |  | if (!Cools.isEmpty(user)){ | 
|---|
|  |  |  | if (!Cools.isEmpty(user)) { | 
|---|
|  |  |  | return String.valueOf(user.getNickname()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getModiTime$(){ | 
|---|
|  |  |  | if (Cools.isEmpty(this.modiTime)){ | 
|---|
|  |  |  | public String getModiTime$() { | 
|---|
|  |  |  | if (Cools.isEmpty(this.modiTime)) { | 
|---|
|  |  |  | return ""; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getAppeUser$(){ | 
|---|
|  |  |  | public String getAppeUser$() { | 
|---|
|  |  |  | UserService service = SpringUtils.getBean(UserService.class); | 
|---|
|  |  |  | User user = service.selectById(this.appeUser); | 
|---|
|  |  |  | if (!Cools.isEmpty(user)){ | 
|---|
|  |  |  | if (!Cools.isEmpty(user)) { | 
|---|
|  |  |  | return String.valueOf(user.getNickname()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getAppeTime$(){ | 
|---|
|  |  |  | if (Cools.isEmpty(this.appeTime)){ | 
|---|
|  |  |  | public String getAppeTime$() { | 
|---|
|  |  |  | if (Cools.isEmpty(this.appeTime)) { | 
|---|
|  |  |  | return ""; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getType$(){ | 
|---|
|  |  |  | if (null == this.type){ return null; } | 
|---|
|  |  |  | switch (this.type){ | 
|---|
|  |  |  | public String getType$() { | 
|---|
|  |  |  | if (null == this.type) { | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | switch (this.type) { | 
|---|
|  |  |  | case 0: | 
|---|
|  |  |  | return "标准堆垛机库"; | 
|---|
|  |  |  | case 1: | 
|---|