package com.doumee.dao.business.model; import com.baomidou.mybatisplus.annotation.TableField; import com.doumee.core.annotation.excel.ExcelColumn; import com.doumee.core.utils.Constants; import com.doumee.dao.business.vo.ApproveDataVO; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import com.fasterxml.jackson.annotation.JsonFormat; import java.util.Date; import java.math.BigDecimal; /** * 月台入园预约信息表 * @author 江蹄蹄 * @date 2024/06/28 10:03 */ @Data @ApiModel("月台入园预约信息表") @TableName("`platform_books`") public class PlatformBooks { @TableId(type = IdType.AUTO) @ApiModelProperty(value = "主键", example = "1") private Integer id; @ApiModelProperty(value = "创建人编码", example = "1") private Integer creator; @ApiModelProperty(value = "创建时间") private Date createDate; @ApiModelProperty(value = "更新人编码", example = "1") private Integer editor; @ApiModelProperty(value = "更新时间") private Date editDate; @ApiModelProperty(value = "是否删除0否 1是", example = "1") private Integer isdeleted; @ApiModelProperty(value = "名称") private String name; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "状态 0待审批 1审批中 2审批通过 3审批不通过 4已取消", example = "1") @ExcelColumn(name="审批状态",index = 10,width = 12,valueMapping = "0=待审批;1=审批中;2=审批通过;3=审批不通过;4=已取消;") private Integer status; @ApiModelProperty(value = "合同号") @ExcelColumn(name="合同号",index = 0,width = 12) private String contractNum; @ApiModelProperty(value = "预计到场时间") @ExcelColumn(name="预计到场时间",index = 9,width = 12,dateFormat = "yyyy-MM-dd HH:mm:ss") private Date arriveDate; @ApiModelProperty(value = "入库类型 0整托盘 1件烟", example = "1") @ExcelColumn(name="入库类型",index = 7,width = 12,valueMapping = "0=整托盘;1=件烟;") private Integer inType; @ApiModelProperty(value = "总作业量(万支)", example = "1") @ExcelColumn(name="总作业量(万支)",index = 2,width = 12) private BigDecimal totalNum; @ApiModelProperty(value = "前车牌号") @ExcelColumn(name="前车牌号",index = 3,width = 12) private String carCodeFront; @ApiModelProperty(value = "后车牌号") @ExcelColumn(name="后车牌号",index = 4,width = 12) private String carCodeBack; @ApiModelProperty(value = "司机编码", example = "1") private Integer driverId; @ApiModelProperty(value = "司机姓名") @ExcelColumn(name="司机姓名",index = 5,width = 12) private String driverName; @ApiModelProperty(value = "车牌号") private String plateNum; @ApiModelProperty(value = "司机手机号") @ExcelColumn(name="司机手机号",index = 6,width = 12) private String driverPhone; @ApiModelProperty(value = "准运证照片") private String transportImg; @ApiModelProperty(value = "入园原因") @ExcelColumn(name="入园原因",index = 1,width = 12) private String inReason; @ApiModelProperty(value = "入园原因主键") private Integer reasonId; @ApiModelProperty(value = "取消时间") private Date cancelTime; @ApiModelProperty(value = "取消人") private Integer cancelUser; @ApiModelProperty(value = "取消备注") private String cancelInfo; @ApiModelProperty(value = "生成任务主键 platform_job:id") private Integer jobId; @ApiModelProperty(value = "查询日期 用户微信端查询") @TableField(exist = false) private String queryDate; @ApiModelProperty(value = "图片前缀") @TableField(exist = false) private String prefixUrl; @ApiModelProperty(value = "预计到场开始时间") @TableField(exist = false) private Date arriveDateStart; @ApiModelProperty(value = "预计到场结束时间") @TableField(exist = false) private Date arriveDateEnd; @ApiModelProperty(value = "审批人名称") @ExcelColumn(name="审批人名称",index = 11,width = 12) @TableField(exist = false) private String auditName; @ApiModelProperty(value = "审批时间") @ExcelColumn(name="审批描述",index = 12,width = 12,dateFormat = "yyyy-MM-dd HH:mm:ss") @TableField(exist = false) private String auditTime; @ApiModelProperty(value = "通知描述") @TableField(exist = false) private String info; @ApiModelProperty(value = "作业记录状态: 0待确认 1待签到 2等待叫号 3入园等待 4已叫号 5作业中 6作业完成 7转移中 8异常挂起 9已授权离园 10已离园 11 已过号 12取消(WMS)") @ExcelColumn(name="作业状态",index = 8,width = 12,valueMapping = "0=待确认;1=待签到;2=等待叫号;3=入园等待;4=已叫号;5=作业中;6=作业完成;7=转移中;8=异常挂起;9=已授权离园;10=已离园;11=已过号;12=取消(WMS);") @TableField(exist = false) private Integer jobStatus; @ApiModelProperty(value = "最后操作人名称", example = "1") @ExcelColumn(name="最后操作人名称",index = 13,width = 12) @TableField(exist = false) private String editUserName; @ApiModelProperty(value = "审批信息数据") @TableField(exist = false) private ApproveDataVO approveDateVO; public PlatformJob toPlatformJob(){ PlatformJob platformJob = new PlatformJob(); platformJob.setCreateDate(new Date()); platformJob.setIsdeleted(Constants.ZERO); platformJob.setStatus(Constants.ZERO); platformJob.setDriverId(this.getDriverId()); platformJob.setDriverName(this.getDriverName()); platformJob.setDrivierPhone(this.getDriverPhone()); platformJob.setCarCodeBack(this.getCarCodeBack()); platformJob.setCarCodeFront(this.getCarCodeFront()); platformJob.setContractNum(this.getContractNum()); platformJob.setReason(this.getInReason()); platformJob.setArriveDate(this.getArriveDate()); platformJob.setInType(this.getInType()); platformJob.setTotalNum(this.getTotalNum()); return platformJob; } }