package com.ltkj.mall.domain;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
import com.ltkj.common.annotation.Excel;
|
import com.ltkj.common.core.domain.BaseEntity;
|
import lombok.Data;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
/**
|
* 搜索历史对象 mall_search_history
|
*
|
* @author ltkj_赵佳豪&李格
|
* @date 2023-07-12
|
*/
|
@Data
|
public class MallSearchHistory extends BaseEntity {
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* id
|
*/
|
@TableId(type = IdType.AUTO)
|
@JsonSerialize(using = ToStringSerializer.class)
|
private Long id;
|
|
/**
|
* 用户表的用户ID
|
*/
|
@Excel(name = "用户表的用户ID")
|
@JsonSerialize(using = ToStringSerializer.class)
|
private Long userId;
|
|
/**
|
* 搜索关键字
|
*/
|
@Excel(name = "搜索关键字")
|
private String keyword;
|
|
/**
|
* 搜索来源,如pc、wx、app
|
*/
|
@Excel(name = "搜索来源,如pc、wx、app")
|
private String fromType;
|
|
@TableField(exist = false)
|
private String phone;
|
|
@TableField(exist = false)
|
private String startTime;
|
|
|
@TableField(exist = false)
|
private String endTime;
|
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setUserId(Long userId) {
|
this.userId = userId;
|
}
|
|
public Long getUserId() {
|
return userId;
|
}
|
|
public void setKeyword(String keyword) {
|
this.keyword = keyword;
|
}
|
|
public String getKeyword() {
|
return keyword;
|
}
|
|
public void setFromType(String fromType) {
|
this.fromType = fromType;
|
}
|
|
public String getFromType() {
|
return fromType;
|
}
|
|
|
@Override
|
public String toString() {
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
.append("id", getId())
|
.append("userId", getUserId())
|
.append("keyword", getKeyword())
|
.append("fromType", getFromType())
|
.append("createTime", getCreateTime())
|
.append("createBy", getCreateBy())
|
.append("updateTime", getUpdateTime())
|
.append("updateBy", getUpdateBy())
|
.append("deleted", getDeleted())
|
.toString();
|
}
|
}
|