From cdcbed9af813b2a02cdc01eefa24db8bec6b51a9 Mon Sep 17 00:00:00 2001
From: yujian <yujian>
Date: 星期三, 27 三月 2019 12:17:33 +0800
Subject: [PATCH] 主分类 + 子分类 DAO改造

---
 fanli/src/main/java/com/yeshi/fanli/entity/bus/clazz/GoodsClass.java |  123 ++++++++++++++++++----------------------
 1 files changed, 56 insertions(+), 67 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/entity/bus/clazz/GoodsClass.java b/fanli/src/main/java/com/yeshi/fanli/entity/bus/clazz/GoodsClass.java
index 749f84e..89d06d5 100644
--- a/fanli/src/main/java/com/yeshi/fanli/entity/bus/clazz/GoodsClass.java
+++ b/fanli/src/main/java/com/yeshi/fanli/entity/bus/clazz/GoodsClass.java
@@ -3,13 +3,8 @@
 import java.io.Serializable;
 import java.util.List;
 
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.Table;
-import javax.persistence.Transient;
+import org.yeshi.utils.mybatis.Column;
+import org.yeshi.utils.mybatis.Table;
 
 import com.yeshi.fanli.entity.system.BusinessSystem;
 
@@ -18,60 +13,63 @@
  * 
  * @author Administrator
  *
- *
  */
-@Entity
-@Table(name = "yeshi_ec_class")
-public class GoodsClass implements Serializable{
+@Table("yeshi_ec_class")
+public class GoodsClass implements Serializable {
+
 	/**
 	 * 
 	 */
 	private static final long serialVersionUID = 1L;
 
-	@Id
-	@GeneratedValue(strategy = GenerationType.AUTO)
 	@Column(name = "id")
-	private long id;
+	private Long id;
 	
-	@Column(name = "`name`", length = 50)
+	@Column(name = "name")
 	private String name;
 	
-	@Column(name = "`picture`", length = 1024)
+	@Column(name = "picture")
 	private String picture;
 
+	@Column(name = "url")
 	private String url;
 	
-	@Column(name = "`key`", length = 50)
+	@Column(name = "key")
 	private String key;
 	
-	
-	@Column(name = "`search_param`", length = 1024)
+	@Column(name = "search_param")
 	private String searchParam;
 
-//	@Column(name = "`tbcates`", length = 1024)
-//	private String tbCates;
-
-	private int orderby;
+	@Column(name = "orderby")
+	private Integer orderby;
 	
-	private long createtime;
+	@Column(name = "createtime")
+	private Long createtime;
 	
 	@Column(name = "ios_click")
-	private Long iosClick = 0l;
+	private Long iosClick;
 	
 	@Column(name = "android_click")
-	private Long androidClick = 0l;
+	private Long androidClick;
 	
-	@Transient // 鐐瑰嚮娆℃暟
+	
+	// 鐐瑰嚮娆℃暟
 	private Long countClick = 0l; 
-	
-	@Transient // 鍏宠仈鏍囩鏁伴噺
+	// 鍏宠仈鏍囩鏁伴噺
 	private int countlabel = 0; 
-	
-	@Transient // 绯荤粺鍏宠仈鍒楄〃
+	// 绯荤粺鍏宠仈鍒楄〃
 	private  List<BusinessSystem> systemList;
 
+	
+	public GoodsClass() {
+	}
 
-	public GoodsClass(String name, String picture, int orderby, long createtime) {
+	public GoodsClass(Long id) {
+		super();
+		this.id = id;
+	}
+
+	public GoodsClass(String name, String picture, Integer orderby, Long createtime) {
 		super();
 		this.name = name;
 		this.picture = picture;
@@ -79,19 +77,11 @@
 		this.createtime = createtime;
 	}
 
-	public GoodsClass() {
-	}
-
-	public GoodsClass(long id) {
-		super();
-		this.id = id;
-	}
-
-	public long getId() {
+	public Long getId() {
 		return id;
 	}
 
-	public void setId(long id) {
+	public void setId(Long id) {
 		this.id = id;
 	}
 
@@ -101,14 +91,6 @@
 
 	public void setName(String name) {
 		this.name = name;
-	}
-
-	public String getKey() {
-		return key;
-	}
-
-	public void setKey(String key) {
-		this.key = key;
 	}
 
 	public String getPicture() {
@@ -127,19 +109,35 @@
 		this.url = url;
 	}
 
-	public int getOrderby() {
+	public String getKey() {
+		return key;
+	}
+
+	public void setKey(String key) {
+		this.key = key;
+	}
+
+	public String getSearchParam() {
+		return searchParam;
+	}
+
+	public void setSearchParam(String searchParam) {
+		this.searchParam = searchParam;
+	}
+
+	public Integer getOrderby() {
 		return orderby;
 	}
 
-	public void setOrderby(int orderby) {
+	public void setOrderby(Integer orderby) {
 		this.orderby = orderby;
 	}
 
-	public long getCreatetime() {
+	public Long getCreatetime() {
 		return createtime;
 	}
 
-	public void setCreatetime(long createtime) {
+	public void setCreatetime(Long createtime) {
 		this.createtime = createtime;
 	}
 
@@ -167,14 +165,6 @@
 		this.countClick = countClick;
 	}
 
-	public List<BusinessSystem> getSystemList() {
-		return systemList;
-	}
-
-	public void setSystemList(List<BusinessSystem> systemList) {
-		this.systemList = systemList;
-	}
-
 	public int getCountlabel() {
 		return countlabel;
 	}
@@ -183,13 +173,12 @@
 		this.countlabel = countlabel;
 	}
 
-	public String getSearchParam() {
-		return searchParam;
+	public List<BusinessSystem> getSystemList() {
+		return systemList;
 	}
 
-	public void setSearchParam(String searchParam) {
-		this.searchParam = searchParam;
+	public void setSystemList(List<BusinessSystem> systemList) {
+		this.systemList = systemList;
 	}
 
-	
 }

--
Gitblit v1.8.0