From 31f64845425a6ca1b6003ba77d01bafdbdacb8e2 Mon Sep 17 00:00:00 2001
From: yujian <yujian>
Date: 星期一, 25 三月 2019 09:29:47 +0800
Subject: [PATCH] 部分对象清理 + RecommendBannerV2Dao改造

---
 fanli/src/main/java/com/yeshi/fanli/entity/bus/recommend/RecommendBannerV2.java |  128 +++++++++++++++++++-----------------------
 1 files changed, 58 insertions(+), 70 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/entity/bus/recommend/RecommendBannerV2.java b/fanli/src/main/java/com/yeshi/fanli/entity/bus/recommend/RecommendBannerV2.java
index fa5e38e..455148a 100644
--- a/fanli/src/main/java/com/yeshi/fanli/entity/bus/recommend/RecommendBannerV2.java
+++ b/fanli/src/main/java/com/yeshi/fanli/entity/bus/recommend/RecommendBannerV2.java
@@ -2,61 +2,48 @@
 
 import java.io.Serializable;
 
-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 org.yeshi.utils.mybatis.Column;
+import org.yeshi.utils.mybatis.Table;
 
 import com.yeshi.fanli.entity.common.JumpDetailV2;
 
 //鎺ㄨ崘Banner  v.2
-@Entity
-@Table(name = "yeshi_ec_recommend_banner_v2")
-public class RecommendBannerV2 implements Serializable{
+@Table("yeshi_ec_recommend_banner_v2")
+public class RecommendBannerV2 implements Serializable {
 	/**
 	 * 
 	 */
 	private static final long serialVersionUID = 1L;
-	
-	@Id
-	@GeneratedValue(strategy = GenerationType.AUTO)
-	@Column(name = "id")
-	private long id;
-	
-	@Column(name = "`name`")
-	private String name;
-	
-	@Column(name = "`picture`",length = 256)
-	private String picture;// 鍥剧墖閾炬帴
-	
-	@ManyToOne(fetch = FetchType.EAGER)
-	@JoinColumn(name = "jumpid")
-	private JumpDetailV2 jumpDetail;// 璺宠浆璇︽儏
-	
-	@Column(name = "`params`",length = 256)
-	private String params;// 璺宠浆鍙傛暟
-	
-	@Column(name = "`createtime`")
-	private long createtime;
-	
-	@Column(name = "`orderby`")
-	private int orderby;// 鍊艰秺灏忚秺锟�?
-	
-	@Column(name = "`show`")
-	private boolean show;// 鏄惁鏄剧ず
-	
-	
 
-	public RecommendBannerV2() {}
-	
-	
-	public RecommendBannerV2(JumpDetailV2 jumpDetail, String params,
-			String picture, long createtime, int orderby, boolean show) {
+	@Column(name = "id")
+	private Long id;
+
+	@Column(name = "name")
+	private String name;
+
+	@Column(name = "picture")
+	private String picture;// 鍥剧墖閾炬帴
+
+	@Column(name = "jumpid")
+	private JumpDetailV2 jumpDetail;// 璺宠浆璇︽儏
+
+	@Column(name = "params", length = 256)
+	private String params;// 璺宠浆鍙傛暟
+
+	@Column(name = "createtime")
+	private Long createtime;
+
+	@Column(name = "orderby")
+	private Integer orderby;// 鍊艰秺灏忚秺锟�?
+
+	@Column(name = "show")
+	private boolean show;// 鏄惁鏄剧ず
+
+	public RecommendBannerV2() {
+	}
+
+	public RecommendBannerV2(JumpDetailV2 jumpDetail, String params, String picture, Long createtime, Integer orderby,
+			boolean show) {
 		super();
 		this.jumpDetail = jumpDetail;
 		this.params = params;
@@ -64,6 +51,14 @@
 		this.createtime = createtime;
 		this.orderby = orderby;
 		this.show = show;
+	}
+
+	public Long getId() {
+		return id;
+	}
+
+	public void setId(Long id) {
+		this.id = id;
 	}
 
 	public String getName() {
@@ -74,20 +69,12 @@
 		this.name = name;
 	}
 
-	public boolean isShow() {
-		return show;
+	public String getPicture() {
+		return picture;
 	}
 
-	public void setShow(boolean show) {
-		this.show = show;
-	}
-
-	public long getId() {
-		return id;
-	}
-
-	public void setId(long id) {
-		this.id = id;
+	public void setPicture(String picture) {
+		this.picture = picture;
 	}
 
 	public JumpDetailV2 getJumpDetail() {
@@ -106,27 +93,28 @@
 		this.params = params;
 	}
 
-	public String getPicture() {
-		return picture;
-	}
-
-	public void setPicture(String picture) {
-		this.picture = picture;
-	}
-
-	public long getCreatetime() {
+	public Long getCreatetime() {
 		return createtime;
 	}
 
-	public void setCreatetime(long createtime) {
+	public void setCreatetime(Long createtime) {
 		this.createtime = createtime;
 	}
 
-	public int getOrderby() {
+	public Integer getOrderby() {
 		return orderby;
 	}
 
-	public void setOrderby(int orderby) {
+	public void setOrderby(Integer orderby) {
 		this.orderby = orderby;
 	}
+
+	public boolean isShow() {
+		return show;
+	}
+
+	public void setShow(boolean show) {
+		this.show = show;
+	}
+
 }

--
Gitblit v1.8.0