admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/entity/bus/lable/LabelGoods.java
@@ -1,131 +1,102 @@
package com.yeshi.fanli.entity.bus.lable;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.yeshi.fanli.entity.common.AdminUser;
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
/**
 * 商品关联标签库
 *
 * @author yj
 *
 * @date 2018年6月27日
 */
@Entity
@Table(name = "yeshi_ec_label_goods")
@org.yeshi.utils.mybatis.Table("yeshi_ec_label_goods")
public class LabelGoods implements Serializable{
   /**
    *
    */
   private static final long serialVersionUID = 1L;
   @Id
   @Column(name = "lg_id")
   @GeneratedValue(strategy = GenerationType.AUTO)
   @org.yeshi.utils.mybatis.Column(name = "lg_id")
   private Long id;
   @ManyToOne(fetch = FetchType.EAGER)
   @JoinColumn(name = "lg_label_id")
   @org.yeshi.utils.mybatis.Column(name = "lg_label_id")
   private Label label; // 标签id
   @ManyToOne(fetch = FetchType.EAGER)
   @JoinColumn(name = "lg_goods_id")
   @org.yeshi.utils.mybatis.Column(name = "lg_goods_id")
   private TaoBaoGoodsBrief taoBaoGoodsBrief;// 商品id
   @ManyToOne(fetch = FetchType.EAGER)
   @JoinColumn(name = "lg_create_aid")
   @org.yeshi.utils.mybatis.Column(name = "lg_create_aid")
   private AdminUser createUser; // 创建人
   @JoinColumn(name = "lg_weight")
   @org.yeshi.utils.mybatis.Column(name = "lg_weight")
   private Double weight; // 分类id
   @JoinColumn(name = "lg_createtime")
   @org.yeshi.utils.mybatis.Column(name = "lg_createtime")
   private Date createtime; // 创建时间
   @JoinColumn(name = "lg_updatetime")
   @org.yeshi.utils.mybatis.Column(name = "lg_updatetime")
   private Date updatetime; // 更新时间
   public Long getId() {
      return id;
   }
   public void setId(Long id) {
      this.id = id;
   }
   public Label getLabel() {
      return label;
   }
   public void setLabel(Label label) {
      this.label = label;
   }
   public TaoBaoGoodsBrief getTaoBaoGoodsBrief() {
      return taoBaoGoodsBrief;
   }
   public void setTaoBaoGoodsBrief(TaoBaoGoodsBrief taoBaoGoodsBrief) {
      this.taoBaoGoodsBrief = taoBaoGoodsBrief;
   }
   public AdminUser getCreateUser() {
      return createUser;
   }
   public void setCreateUser(AdminUser createUser) {
      this.createUser = createUser;
   }
   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 Double getWeight() {
      return weight;
   }
   public void setWeight(Double weight) {
      this.weight = weight;
   }
}
package com.yeshi.fanli.entity.bus.lable;
import java.util.Date;
import org.yeshi.utils.generater.mybatis.Column;
import org.yeshi.utils.generater.mybatis.Table;
import com.yeshi.fanli.entity.common.AdminUser;
import com.yeshi.goods.facade.entity.taobao.TaoBaoGoodsBrief;
/**
 * 商品关联标签库
 *
 * @author yj
 *
 * @date 2018年6月27日
 */
@Table("yeshi_ec_label_goods")
public class LabelGoods {
   @Column(name = "lg_id")
   private Long id;
   @Column(name = "lg_label_id")
   private Label label; // 标签id
   @Column(name = "lg_goods_id")
   private TaoBaoGoodsBrief taoBaoGoodsBrief;// 商品id
   @Column(name = "lg_create_aid")
   private AdminUser createUser; // 创建人
   @Column(name = "lg_weight")
   private Double weight; // 分类id
   @Column(name = "lg_createtime")
   private Date createtime; // 创建时间
   @Column(name = "lg_updatetime")
   private Date updatetime; // 更新时间
   public Long getId() {
      return id;
   }
   public void setId(Long id) {
      this.id = id;
   }
   public Label getLabel() {
      return label;
   }
   public void setLabel(Label label) {
      this.label = label;
   }
   public TaoBaoGoodsBrief getTaoBaoGoodsBrief() {
      return taoBaoGoodsBrief;
   }
   public void setTaoBaoGoodsBrief(TaoBaoGoodsBrief taoBaoGoodsBrief) {
      this.taoBaoGoodsBrief = taoBaoGoodsBrief;
   }
   public AdminUser getCreateUser() {
      return createUser;
   }
   public void setCreateUser(AdminUser createUser) {
      this.createUser = createUser;
   }
   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 Double getWeight() {
      return weight;
   }
   public void setWeight(Double weight) {
      this.weight = weight;
   }
}