package com.stylefeng.guns.modular.system.model;
|
|
import cn.hutool.core.date.DatePattern;
|
import cn.hutool.core.date.DateUtil;
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableLogic;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.activerecord.Model;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.io.Serializable;
|
|
/**
|
* <p>
|
* 代检车活动表
|
* </p>
|
*
|
* @author mitao
|
* @since 2025-08-02
|
*/
|
@TableName("t_check_car_activity")
|
public class TCheckCarActivity extends Model<TCheckCarActivity> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
/**
|
* 车检点名称
|
*/
|
private String name;
|
/**
|
* 开始时间
|
*/
|
@DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
|
private Date startTime;
|
/**
|
* 结束时间
|
*/
|
@DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
|
private Date endTime;
|
/**
|
* 分公司id
|
*/
|
private Integer branchOfficeId;
|
/**
|
* 省
|
*/
|
private String provinceName;
|
/**
|
* 省code
|
*/
|
private String provinceCode;
|
/**
|
* 市
|
*/
|
private String cityName;
|
/**
|
* 市code
|
*/
|
private String cityCode;
|
/**
|
* 区
|
*/
|
private String districtName;
|
/**
|
* 区code
|
*/
|
private String districtCode;
|
/**
|
* 活动优惠券名称
|
*/
|
private String couponName;
|
/**
|
* 活动优惠券数量
|
*/
|
private Integer couponNum;
|
/**
|
* 已领取数量
|
*/
|
private Integer receivedNum;
|
/**
|
* 活动优惠券面额
|
*/
|
private BigDecimal couponAmount;
|
/**
|
* 优惠券有效期(天)
|
*/
|
private Integer duration;
|
/**
|
* 活动内容说明
|
*/
|
private String explainContent;
|
/**
|
* 审核状态 0:待审核,1:审核通过,2:审核驳回
|
*/
|
private Integer auditStatus;
|
/**
|
* 驳回原因
|
*/
|
private String rejectReason;
|
/**
|
* 审核时间
|
*/
|
private Date auditTime;
|
/**
|
* 是否暂停 0:否 ,1:是
|
*/
|
private Integer pauseFlag;
|
/**
|
* 活动二维码地址
|
*/
|
private String qrCode;
|
/**
|
* 添加时间
|
*/
|
private Date createTime;
|
/**
|
* 更新时间
|
*/
|
private Date updateTime;
|
/**
|
* 创建人
|
*/
|
private String createBy;
|
/**
|
* 更新人
|
*/
|
private String updateBy;
|
/**
|
* 是否被删除 1=已删除 0=未删除
|
*/
|
@TableLogic(value = "0", delval = "1")
|
private Integer isDelete;
|
|
@TableField(exist = false)
|
private String timeRange;
|
/**
|
* 0:"等待开始", 1:"进行中", 2:"已结束",3:"已暂停"
|
*/
|
@TableField(exist = false)
|
private Integer activityStatus;
|
|
@TableField(exist = false)
|
private String branchOfficeName;
|
|
@TableField(exist = false)
|
private String auditTimeFormat;
|
|
@Override
|
public String toString() {
|
return "TCheckCarActivity{" +
|
"id=" + id +
|
", name='" + name + '\'' +
|
", startTime=" + startTime +
|
", endTime=" + endTime +
|
", branchOfficeId=" + branchOfficeId +
|
", provinceName='" + provinceName + '\'' +
|
", provinceCode='" + provinceCode + '\'' +
|
", cityName='" + cityName + '\'' +
|
", cityCode='" + cityCode + '\'' +
|
", districtName='" + districtName + '\'' +
|
", districtCode='" + districtCode + '\'' +
|
", couponName='" + couponName + '\'' +
|
", couponNum=" + couponNum +
|
", receivedNum=" + receivedNum +
|
", couponAmount=" + couponAmount +
|
", duration=" + duration +
|
", explainContent='" + explainContent + '\'' +
|
", auditStatus=" + auditStatus +
|
", rejectReason='" + rejectReason + '\'' +
|
", auditTime=" + auditTime +
|
", pauseFlag=" + pauseFlag +
|
", qrCode='" + qrCode + '\'' +
|
", createTime=" + createTime +
|
", updateTime=" + updateTime +
|
", createBy='" + createBy + '\'' +
|
", updateBy='" + updateBy + '\'' +
|
", isDelete=" + isDelete +
|
", timeRange='" + timeRange + '\'' +
|
", activityStatus=" + activityStatus +
|
", branchOfficeName='" + branchOfficeName + '\'' +
|
", auditTimeFormat='" + auditTimeFormat + '\'' +
|
'}';
|
}
|
|
public String getAuditTimeFormat() {
|
return auditTimeFormat;
|
}
|
|
public void setAuditTimeFormat(String auditTimeFormat) {
|
this.auditTimeFormat = auditTimeFormat;
|
}
|
|
public String getBranchOfficeName() {
|
return branchOfficeName;
|
}
|
|
public void setBranchOfficeName(String branchOfficeName) {
|
this.branchOfficeName = branchOfficeName;
|
}
|
|
public Integer getActivityStatus() {
|
return activityStatus;
|
}
|
|
public void setActivityStatus(Integer activityStatus) {
|
this.activityStatus = activityStatus;
|
}
|
|
public String getTimeRange() {
|
return timeRange;
|
}
|
|
public void setTimeRange(String timeRange) {
|
this.timeRange = timeRange;
|
}
|
|
public Integer getId() {
|
return id;
|
}
|
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public Date getStartTime() {
|
return startTime;
|
}
|
|
public void setStartTime(Date startTime) {
|
this.startTime = startTime;
|
}
|
|
public Date getEndTime() {
|
return endTime;
|
}
|
|
public void setEndTime(Date endTime) {
|
this.endTime = endTime;
|
}
|
|
public Integer getBranchOfficeId() {
|
return branchOfficeId;
|
}
|
|
public void setBranchOfficeId(Integer branchOfficeId) {
|
this.branchOfficeId = branchOfficeId;
|
}
|
|
public String getProvinceName() {
|
return provinceName;
|
}
|
|
public void setProvinceName(String provinceName) {
|
this.provinceName = provinceName;
|
}
|
|
public String getProvinceCode() {
|
return provinceCode;
|
}
|
|
public void setProvinceCode(String provinceCode) {
|
this.provinceCode = provinceCode;
|
}
|
|
public String getCityName() {
|
return cityName;
|
}
|
|
public void setCityName(String cityName) {
|
this.cityName = cityName;
|
}
|
|
public String getCityCode() {
|
return cityCode;
|
}
|
|
public void setCityCode(String cityCode) {
|
this.cityCode = cityCode;
|
}
|
|
public String getDistrictName() {
|
return districtName;
|
}
|
|
public void setDistrictName(String districtName) {
|
this.districtName = districtName;
|
}
|
|
public String getDistrictCode() {
|
return districtCode;
|
}
|
|
public void setDistrictCode(String districtCode) {
|
this.districtCode = districtCode;
|
}
|
|
public String getCouponName() {
|
return couponName;
|
}
|
|
public void setCouponName(String couponName) {
|
this.couponName = couponName;
|
}
|
|
public Integer getCouponNum() {
|
return couponNum;
|
}
|
|
public void setCouponNum(Integer couponNum) {
|
this.couponNum = couponNum;
|
}
|
|
public Integer getReceivedNum() {
|
return receivedNum;
|
}
|
|
public void setReceivedNum(Integer receivedNum) {
|
this.receivedNum = receivedNum;
|
}
|
|
public BigDecimal getCouponAmount() {
|
return couponAmount;
|
}
|
|
public void setCouponAmount(BigDecimal couponAmount) {
|
this.couponAmount = couponAmount;
|
}
|
|
public Integer getDuration() {
|
return duration;
|
}
|
|
public void setDuration(Integer duration) {
|
this.duration = duration;
|
}
|
|
public String getExplainContent() {
|
return explainContent;
|
}
|
|
public void setExplainContent(String explainContent) {
|
this.explainContent = explainContent;
|
}
|
|
public Integer getAuditStatus() {
|
return auditStatus;
|
}
|
|
public void setAuditStatus(Integer auditStatus) {
|
this.auditStatus = auditStatus;
|
}
|
|
public String getRejectReason() {
|
return rejectReason;
|
}
|
|
public void setRejectReason(String rejectReason) {
|
this.rejectReason = rejectReason;
|
}
|
|
public Date getAuditTime() {
|
return auditTime;
|
}
|
|
public void setAuditTime(Date auditTime) {
|
this.auditTime = auditTime;
|
}
|
|
public Integer getPauseFlag() {
|
return pauseFlag;
|
}
|
|
public void setPauseFlag(Integer pauseFlag) {
|
this.pauseFlag = pauseFlag;
|
}
|
|
public String getQrCode() {
|
return qrCode;
|
}
|
|
public void setQrCode(String qrCode) {
|
this.qrCode = qrCode;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public String getCreateBy() {
|
return createBy;
|
}
|
|
public void setCreateBy(String createBy) {
|
this.createBy = createBy;
|
}
|
|
public String getUpdateBy() {
|
return updateBy;
|
}
|
|
public void setUpdateBy(String updateBy) {
|
this.updateBy = updateBy;
|
}
|
|
public Integer getIsDelete() {
|
return isDelete;
|
}
|
|
public void setIsDelete(Integer isDelete) {
|
this.isDelete = isDelete;
|
}
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
}
|