|  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotations.TableId; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotations.TableName; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.enums.IdType; | 
|---|
|  |  |  | import com.zy.system.entity.User; | 
|---|
|  |  |  | import com.zy.system.service.UserService; | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 工作代号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "工作代号") | 
|---|
|  |  |  | @ApiModelProperty(value = "状态代号") | 
|---|
|  |  |  | @TableId(value = "sts_no", type = IdType.INPUT) | 
|---|
|  |  |  | @TableField("sts_no") | 
|---|
|  |  |  | private String stsNo; | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 状态描述 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "状态描述") | 
|---|
|  |  |  | @ApiModelProperty(value = "状态描述") | 
|---|
|  |  |  | @TableField("sts_desc") | 
|---|
|  |  |  | private String stsDesc; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 修改人员 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "修改人员") | 
|---|
|  |  |  | @ApiModelProperty(value = "修改人员") | 
|---|
|  |  |  | @TableField("modi_user") | 
|---|
|  |  |  | private Long modiUser; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 修改时间 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "修改时间") | 
|---|
|  |  |  | @ApiModelProperty(value = "修改时间") | 
|---|
|  |  |  | @TableField("modi_time") | 
|---|
|  |  |  | private Date modiTime; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 创建者 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "创建者") | 
|---|
|  |  |  | @ApiModelProperty(value = "创建者") | 
|---|
|  |  |  | @TableField("appe_user") | 
|---|
|  |  |  | private Long appeUser; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 添加时间 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "添加时间") | 
|---|
|  |  |  | @ApiModelProperty(value = "添加时间") | 
|---|
|  |  |  | @TableField("appe_time") | 
|---|
|  |  |  | private Date appeTime; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public BasCrnStatus() {} | 
|---|
|  |  |  | public BasCrnStatus() { | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public BasCrnStatus(String stsDesc,Long modiUser,Date modiTime,Long appeUser,Date appeTime) { | 
|---|
|  |  |  | public BasCrnStatus(String stsDesc, Long modiUser, Date modiTime, Long appeUser, Date appeTime) { | 
|---|
|  |  |  | this.stsDesc = stsDesc; | 
|---|
|  |  |  | this.modiUser = modiUser; | 
|---|
|  |  |  | this.modiTime = modiTime; | 
|---|
|  |  |  | 
|---|
|  |  |  | return modiUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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.getUsername()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | 
|---|
|  |  |  | return modiTime; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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); | 
|---|
|  |  |  | 
|---|
|  |  |  | return appeUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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.getUsername()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | 
|---|
|  |  |  | return appeTime; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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); | 
|---|