|
@@ -0,0 +1,254 @@
|
|
|
+package com.futu.goose.store.pojo;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import java.io.Serializable;
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.util.Date;
|
|
|
+import lombok.Data;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 售课系统店铺表
|
|
|
+ * @TableName shop
|
|
|
+ */
|
|
|
+@TableName(value ="shop")
|
|
|
+@Data
|
|
|
+public class Shop implements Serializable {
|
|
|
+ /**
|
|
|
+ * 店铺ID,主键
|
|
|
+ */
|
|
|
+ @TableId(type = IdType.AUTO)
|
|
|
+ private Long shopId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 店铺名称
|
|
|
+ */
|
|
|
+ private String shopName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 店铺logo URL
|
|
|
+ */
|
|
|
+ private String shopLogo;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 店铺描述
|
|
|
+ */
|
|
|
+ private String shopDesc;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 店主用户ID
|
|
|
+ */
|
|
|
+ private Long userId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 店铺分类ID
|
|
|
+ */
|
|
|
+ private Integer categoryId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 状态:0-禁用,1-正常,2-审核中,3-审核失败
|
|
|
+ */
|
|
|
+ private Integer status;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 联系电话
|
|
|
+ */
|
|
|
+ private String contactPhone;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 联系邮箱
|
|
|
+ */
|
|
|
+ private String contactEmail;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 省份
|
|
|
+ */
|
|
|
+ private String province;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 城市
|
|
|
+ */
|
|
|
+ private String city;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 区县
|
|
|
+ */
|
|
|
+ private String district;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 详细地址
|
|
|
+ */
|
|
|
+ private String address;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 经度
|
|
|
+ */
|
|
|
+ private BigDecimal longitude;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 纬度
|
|
|
+ */
|
|
|
+ private BigDecimal latitude;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 店铺横幅图片,JSON格式存储多个URL
|
|
|
+ */
|
|
|
+ private String bannerImages;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 社交媒体链接,JSON格式存储
|
|
|
+ */
|
|
|
+ private String socialMedia;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 营业时间
|
|
|
+ */
|
|
|
+ private String openingHours;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * SEO标题
|
|
|
+ */
|
|
|
+ private String seoTitle;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * SEO关键词
|
|
|
+ */
|
|
|
+ private String seoKeywords;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * SEO描述
|
|
|
+ */
|
|
|
+ private String seoDescription;
|
|
|
+
|
|
|
+ /**7
|
|
|
+ * 店铺评分,0-5分
|
|
|
+ */
|
|
|
+ private BigDecimal rating;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 总销量
|
|
|
+ */
|
|
|
+ private Integer salesCount;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 课程数量
|
|
|
+ */
|
|
|
+ private Integer courseCount;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 关注人数
|
|
|
+ */
|
|
|
+ private Integer followerCount;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 浏览人数
|
|
|
+ */
|
|
|
+ private Integer viewCount;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 创建时间
|
|
|
+ */
|
|
|
+ private Date createdAt;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 更新时间
|
|
|
+ */
|
|
|
+ private Date updatedAt;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 删除时间,软删除标志
|
|
|
+ */
|
|
|
+ private Date deletedAt;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 店铺网站URL
|
|
|
+ */
|
|
|
+ private String shopWebsite;
|
|
|
+
|
|
|
+ @TableField(exist = false)
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object that) {
|
|
|
+ if (this == that) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (that == null) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (getClass() != that.getClass()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ Shop other = (Shop) that;
|
|
|
+ return (this.getShopId() == null ? other.getShopId() == null : this.getShopId().equals(other.getShopId()))
|
|
|
+ && (this.getShopName() == null ? other.getShopName() == null : this.getShopName().equals(other.getShopName()))
|
|
|
+ && (this.getShopLogo() == null ? other.getShopLogo() == null : this.getShopLogo().equals(other.getShopLogo()))
|
|
|
+ && (this.getShopDesc() == null ? other.getShopDesc() == null : this.getShopDesc().equals(other.getShopDesc()))
|
|
|
+ && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
|
|
|
+ && (this.getCategoryId() == null ? other.getCategoryId() == null : this.getCategoryId().equals(other.getCategoryId()))
|
|
|
+ && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
|
|
|
+ && (this.getContactPhone() == null ? other.getContactPhone() == null : this.getContactPhone().equals(other.getContactPhone()))
|
|
|
+ && (this.getContactEmail() == null ? other.getContactEmail() == null : this.getContactEmail().equals(other.getContactEmail()))
|
|
|
+ && (this.getProvince() == null ? other.getProvince() == null : this.getProvince().equals(other.getProvince()))
|
|
|
+ && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
|
|
|
+ && (this.getDistrict() == null ? other.getDistrict() == null : this.getDistrict().equals(other.getDistrict()))
|
|
|
+ && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
|
|
|
+ && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
|
|
|
+ && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
|
|
|
+ && (this.getBannerImages() == null ? other.getBannerImages() == null : this.getBannerImages().equals(other.getBannerImages()))
|
|
|
+ && (this.getSocialMedia() == null ? other.getSocialMedia() == null : this.getSocialMedia().equals(other.getSocialMedia()))
|
|
|
+ && (this.getOpeningHours() == null ? other.getOpeningHours() == null : this.getOpeningHours().equals(other.getOpeningHours()))
|
|
|
+ && (this.getSeoTitle() == null ? other.getSeoTitle() == null : this.getSeoTitle().equals(other.getSeoTitle()))
|
|
|
+ && (this.getSeoKeywords() == null ? other.getSeoKeywords() == null : this.getSeoKeywords().equals(other.getSeoKeywords()))
|
|
|
+ && (this.getSeoDescription() == null ? other.getSeoDescription() == null : this.getSeoDescription().equals(other.getSeoDescription()))
|
|
|
+ && (this.getRating() == null ? other.getRating() == null : this.getRating().equals(other.getRating()))
|
|
|
+ && (this.getSalesCount() == null ? other.getSalesCount() == null : this.getSalesCount().equals(other.getSalesCount()))
|
|
|
+ && (this.getCourseCount() == null ? other.getCourseCount() == null : this.getCourseCount().equals(other.getCourseCount()))
|
|
|
+ && (this.getFollowerCount() == null ? other.getFollowerCount() == null : this.getFollowerCount().equals(other.getFollowerCount()))
|
|
|
+ && (this.getViewCount() == null ? other.getViewCount() == null : this.getViewCount().equals(other.getViewCount()))
|
|
|
+ && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
|
|
|
+ && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()))
|
|
|
+ && (this.getDeletedAt() == null ? other.getDeletedAt() == null : this.getDeletedAt().equals(other.getDeletedAt()))
|
|
|
+ && (this.getShopWebsite() == null ? other.getShopWebsite() == null : this.getShopWebsite().equals(other.getShopWebsite()));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ final int prime = 31;
|
|
|
+ int result = 1;
|
|
|
+ result = prime * result + ((getShopId() == null) ? 0 : getShopId().hashCode());
|
|
|
+ result = prime * result + ((getShopName() == null) ? 0 : getShopName().hashCode());
|
|
|
+ result = prime * result + ((getShopLogo() == null) ? 0 : getShopLogo().hashCode());
|
|
|
+ result = prime * result + ((getShopDesc() == null) ? 0 : getShopDesc().hashCode());
|
|
|
+ result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
|
|
|
+ result = prime * result + ((getCategoryId() == null) ? 0 : getCategoryId().hashCode());
|
|
|
+ result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
|
|
|
+ result = prime * result + ((getContactPhone() == null) ? 0 : getContactPhone().hashCode());
|
|
|
+ result = prime * result + ((getContactEmail() == null) ? 0 : getContactEmail().hashCode());
|
|
|
+ result = prime * result + ((getProvince() == null) ? 0 : getProvince().hashCode());
|
|
|
+ result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
|
|
|
+ result = prime * result + ((getDistrict() == null) ? 0 : getDistrict().hashCode());
|
|
|
+ result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
|
|
|
+ result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
|
|
|
+ result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
|
|
|
+ result = prime * result + ((getBannerImages() == null) ? 0 : getBannerImages().hashCode());
|
|
|
+ result = prime * result + ((getSocialMedia() == null) ? 0 : getSocialMedia().hashCode());
|
|
|
+ result = prime * result + ((getOpeningHours() == null) ? 0 : getOpeningHours().hashCode());
|
|
|
+ result = prime * result + ((getSeoTitle() == null) ? 0 : getSeoTitle().hashCode());
|
|
|
+ result = prime * result + ((getSeoKeywords() == null) ? 0 : getSeoKeywords().hashCode());
|
|
|
+ result = prime * result + ((getSeoDescription() == null) ? 0 : getSeoDescription().hashCode());
|
|
|
+ result = prime * result + ((getRating() == null) ? 0 : getRating().hashCode());
|
|
|
+ result = prime * result + ((getSalesCount() == null) ? 0 : getSalesCount().hashCode());
|
|
|
+ result = prime * result + ((getCourseCount() == null) ? 0 : getCourseCount().hashCode());
|
|
|
+ result = prime * result + ((getFollowerCount() == null) ? 0 : getFollowerCount().hashCode());
|
|
|
+ result = prime * result + ((getViewCount() == null) ? 0 : getViewCount().hashCode());
|
|
|
+ result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
|
|
|
+ result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
|
|
|
+ result = prime * result + ((getDeletedAt() == null) ? 0 : getDeletedAt().hashCode());
|
|
|
+ result = prime * result + ((getShopWebsite() == null) ? 0 : getShopWebsite().hashCode());
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+}
|