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.core.common.SpringUtils; import com.zy.asrs.service.BasJarMastStatusService; import com.zy.asrs.entity.BasJarMastStatus; import java.text.SimpleDateFormat; import java.util.Date; import org.springframework.format.annotation.DateTimeFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.text.SimpleDateFormat; import java.util.Date; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import com.baomidou.mybatisplus.annotations.TableName; import java.io.Serializable; @Data @TableName("asr_bas_jar_mast") public class BasJarMast implements Serializable { private static final long serialVersionUID = 1L; /** * ID */ @ApiModelProperty(value= "ID") private Long id; /** * 工作号 */ @ApiModelProperty(value= "工作号") @TableId(value = "wrk_no", type = IdType.INPUT) @TableField("wrk_no") private Long wrkNo; /** * 入库源站点 */ @ApiModelProperty(value= "入库源站点") @TableField("enter_sta_no") private Integer enterStaNo; /** * 入库目标站点 */ @ApiModelProperty(value= "入库目标站点") @TableField("out_sta_no") private Integer outStaNo; /** * 入硫化罐站点 */ @ApiModelProperty(value= "入硫化罐站点") @TableField("jar_enter_sta_no") private Integer jarEnterStaNo; /** * 出硫化罐站点 */ @ApiModelProperty(value= "出硫化罐站点") @TableField("jar_out_sta_no") private Integer jarOutStaNo; /** * 硫化罐ID */ @ApiModelProperty(value= "硫化罐ID") @TableField("jar_id") private Integer jarId; /** * 区域 */ @ApiModelProperty(value= "区域") @TableField("jar_regin") private Integer jarRegin; /** * 工作状态 */ @ApiModelProperty(value= "工作状态") private Integer status; /** * 入罐小车 */ @ApiModelProperty(value= "入罐小车") @TableField("enter_ste_no") private Integer enterSteNo; /** * 出罐小车 */ @ApiModelProperty(value= "出罐小车") @TableField("out_ste_id") private Integer outSteId; /** * 入罐RGV */ @ApiModelProperty(value= "入罐RGV") @TableField("enter_rgv_id") private Integer enterRgvId; /** * 出罐RGV */ @ApiModelProperty(value= "出罐RGV") @TableField("out_rgv_id") private Integer outRgvId; /** * 入库时间 */ @ApiModelProperty(value= "入库时间") @TableField("io_time") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") private Date ioTime; /** * 创建时间 */ @ApiModelProperty(value= "创建时间") @TableField("modi_time") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") private Date modiTime; /** * 更新时间 */ @ApiModelProperty(value= "更新时间") @TableField("appe_time") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") private Date appeTime; public BasJarMast() {} public BasJarMast(Long wrkNo,Integer enterStaNo,Integer outStaNo,Integer jarEnterStaNo,Integer jarOutStaNo,Integer jarId,Integer jarRegin,Integer status,Integer enterSteNo,Integer outSteId,Integer enterRgvId,Integer outRgvId,Date ioTime,Date modiTime,Date appeTime) { this.wrkNo = wrkNo; this.enterStaNo = enterStaNo; this.outStaNo = outStaNo; this.jarEnterStaNo = jarEnterStaNo; this.jarOutStaNo = jarOutStaNo; this.jarId = jarId; this.jarRegin = jarRegin; this.status = status; this.enterSteNo = enterSteNo; this.outSteId = outSteId; this.enterRgvId = enterRgvId; this.outRgvId = outRgvId; this.ioTime = ioTime; this.modiTime = modiTime; this.appeTime = appeTime; } // BasJarMast basJarMast = new BasJarMast( // null, // 工作号[非空] // null, // 入库源站点[非空] // null, // 入库目标站点[非空] // null, // 入硫化罐站点[非空] // null, // 出硫化罐站点[非空] // null, // 硫化罐ID[非空] // null, // 区域[非空] // null, // 工作状态[非空] // null, // 入罐小车[非空] // null, // 出罐小车[非空] // null, // 入罐RGV[非空] // null, // 出罐RGV[非空] // null, // 入库时间 // null, // 创建时间 // null // 更新时间 // ); public String getStatus$(){ BasJarMastStatusService service = SpringUtils.getBean(BasJarMastStatusService.class); BasJarMastStatus basJarMastStatus = service.selectById(this.status); if (!Cools.isEmpty(basJarMastStatus)){ return String.valueOf(basJarMastStatus.getId()); } return null; } public String getIoTime$(){ if (Cools.isEmpty(this.ioTime)){ return ""; } return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime); } public String getModiTime$(){ if (Cools.isEmpty(this.modiTime)){ return ""; } return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); } public String getAppeTime$(){ if (Cools.isEmpty(this.appeTime)){ return ""; } return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); } }