Selaa lähdekoodia

最新后台代码

5 vuotta sitten
vanhempi
commit
ce52ec9c40

+ 2 - 2
minigame/src/com/hssx/controller/PrizeController.java

@@ -54,7 +54,7 @@ public class PrizeController {
 	 * @return
 	 */
 	@RequestMapping(value = "/luckDraw")
-	public void luckDraw(@RequestParam(required = false) Integer userId, HttpServletResponse response)
+	public void luckDraw(@RequestParam(required = false) String userId, HttpServletResponse response)
 			throws Exception, KeyManagementException, NoSuchAlgorithmException, NoSuchProviderException, IOException {
 		HttpRespMsg msg = new HttpRespMsg();
 //		userId = new Random().nextInt(6) + 1;// 测试用
@@ -297,7 +297,7 @@ public class PrizeController {
 	 * @throws IOException
 	 */
 	@RequestMapping("/getluckDrawByUserId")
-	public void getluckDrawByUserId(Integer UserId, HttpServletResponse response) throws IOException {
+	public void getluckDrawByUserId(String UserId, HttpServletResponse response) throws IOException {
 		HttpRespMsg msg = new HttpRespMsg();
 		PrizeRecordExample exp = new PrizeRecordExample();
 		exp.createCriteria().andUidEqualTo(UserId);

+ 3 - 3
minigame/src/com/hssx/controller/UserController.java

@@ -7,9 +7,7 @@ import java.security.NoSuchProviderException;
 import java.util.Date;
 import java.util.SortedMap;
 import java.util.TreeMap;
-
 import javax.servlet.http.HttpServletResponse;
-
 import org.apache.commons.httpclient.HttpClient;
 import org.apache.commons.httpclient.methods.GetMethod;
 import org.apache.commons.httpclient.methods.PostMethod;
@@ -18,7 +16,6 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestParam;
-
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONObject;
 import com.estates.filter.EmojiHttpServletRequestWraper;
@@ -33,6 +30,7 @@ import com.hssx.utils.HttpKit;
 import com.hssx.utils.HttpRespMsg;
 import com.hssx.utils.JsapiTicketUtil;
 import com.hssx.utils.Sha1Util;
+import com.hssx.utils.Snowflake;
 
 @Controller
 @RequestMapping("/user")
@@ -82,6 +80,7 @@ public class UserController {
 				System.out.println(user + "user");
 				example.createCriteria().andVoucherIdEqualTo(openId).andTypeEqualTo(type);
 				if (usermapper.countByExample(example) == 0) {
+					user.setId(Snowflake.getSnowflakeId());
 					usermapper.insert(user);
 				} else {
 					// 列表中已包含当前用户,
@@ -138,6 +137,7 @@ public class UserController {
 						user.setHeaderPic(jsonData.getString("profile_image_url"));
 						example.createCriteria().andVoucherIdEqualTo(uid).andTypeEqualTo(type);
 						if (usermapper.countByExample(example) == 0) {
+							user.setId(Snowflake.getSnowflakeId());
 							usermapper.insert(user);
 						} else {
 							// 列表中已包含当前用户,

+ 27 - 27
minigame/src/com/hssx/entity/News.java

@@ -6,49 +6,49 @@ public class News {
 
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_news.id
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	private Integer id;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_news.nick_name
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	private String nickName;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_news.header_pic
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	private String headerPic;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_news.indate
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	private Date indate;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_news.type
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	private Integer type;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_news.message
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	private String message;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_news.user_id
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
-	private Integer userId;
+	private String userId;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_news.receiver
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	private String receiver;
 
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_news.id
 	 * @return  the value of mini_news.id
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public Integer getId() {
 		return id;
@@ -57,7 +57,7 @@ public class News {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_news.id
 	 * @param id  the value for mini_news.id
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public void setId(Integer id) {
 		this.id = id;
@@ -66,7 +66,7 @@ public class News {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_news.nick_name
 	 * @return  the value of mini_news.nick_name
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public String getNickName() {
 		return nickName;
@@ -75,7 +75,7 @@ public class News {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_news.nick_name
 	 * @param nickName  the value for mini_news.nick_name
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public void setNickName(String nickName) {
 		this.nickName = nickName;
@@ -84,7 +84,7 @@ public class News {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_news.header_pic
 	 * @return  the value of mini_news.header_pic
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public String getHeaderPic() {
 		return headerPic;
@@ -93,7 +93,7 @@ public class News {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_news.header_pic
 	 * @param headerPic  the value for mini_news.header_pic
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public void setHeaderPic(String headerPic) {
 		this.headerPic = headerPic;
@@ -102,7 +102,7 @@ public class News {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_news.indate
 	 * @return  the value of mini_news.indate
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public Date getIndate() {
 		return indate;
@@ -111,7 +111,7 @@ public class News {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_news.indate
 	 * @param indate  the value for mini_news.indate
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public void setIndate(Date indate) {
 		this.indate = indate;
@@ -120,7 +120,7 @@ public class News {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_news.type
 	 * @return  the value of mini_news.type
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public Integer getType() {
 		return type;
@@ -129,7 +129,7 @@ public class News {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_news.type
 	 * @param type  the value for mini_news.type
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public void setType(Integer type) {
 		this.type = type;
@@ -138,7 +138,7 @@ public class News {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_news.message
 	 * @return  the value of mini_news.message
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public String getMessage() {
 		return message;
@@ -147,7 +147,7 @@ public class News {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_news.message
 	 * @param message  the value for mini_news.message
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public void setMessage(String message) {
 		this.message = message;
@@ -156,25 +156,25 @@ public class News {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_news.user_id
 	 * @return  the value of mini_news.user_id
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
-	public Integer getUserId() {
+	public String getUserId() {
 		return userId;
 	}
 
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_news.user_id
 	 * @param userId  the value for mini_news.user_id
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
-	public void setUserId(Integer userId) {
+	public void setUserId(String userId) {
 		this.userId = userId;
 	}
 
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_news.receiver
 	 * @return  the value of mini_news.receiver
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public String getReceiver() {
 		return receiver;
@@ -183,7 +183,7 @@ public class News {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_news.receiver
 	 * @param receiver  the value for mini_news.receiver
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public void setReceiver(String receiver) {
 		this.receiver = receiver;

+ 36 - 26
minigame/src/com/hssx/entity/NewsExample.java

@@ -7,23 +7,23 @@ import java.util.List;
 public class NewsExample {
     /**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	protected String orderByClause;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	protected boolean distinct;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	protected List<Criteria> oredCriteria;
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public NewsExample() {
 		oredCriteria = new ArrayList<Criteria>();
@@ -31,7 +31,7 @@ public class NewsExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public void setOrderByClause(String orderByClause) {
 		this.orderByClause = orderByClause;
@@ -39,7 +39,7 @@ public class NewsExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public String getOrderByClause() {
 		return orderByClause;
@@ -47,7 +47,7 @@ public class NewsExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public void setDistinct(boolean distinct) {
 		this.distinct = distinct;
@@ -55,7 +55,7 @@ public class NewsExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public boolean isDistinct() {
 		return distinct;
@@ -63,7 +63,7 @@ public class NewsExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public List<Criteria> getOredCriteria() {
 		return oredCriteria;
@@ -71,7 +71,7 @@ public class NewsExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public void or(Criteria criteria) {
 		oredCriteria.add(criteria);
@@ -79,7 +79,7 @@ public class NewsExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public Criteria or() {
 		Criteria criteria = createCriteriaInternal();
@@ -89,7 +89,7 @@ public class NewsExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public Criteria createCriteria() {
 		Criteria criteria = createCriteriaInternal();
@@ -101,7 +101,7 @@ public class NewsExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	protected Criteria createCriteriaInternal() {
 		Criteria criteria = new Criteria();
@@ -110,7 +110,7 @@ public class NewsExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public void clear() {
 		oredCriteria.clear();
@@ -120,7 +120,7 @@ public class NewsExample {
 
 	/**
 	 * This class was generated by MyBatis Generator. This class corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	protected abstract static class GeneratedCriteria {
 		protected List<Criterion> criteria;
@@ -563,52 +563,62 @@ public class NewsExample {
 			return (Criteria) this;
 		}
 
-		public Criteria andUserIdEqualTo(Integer value) {
+		public Criteria andUserIdEqualTo(String value) {
 			addCriterion("user_id =", value, "userId");
 			return (Criteria) this;
 		}
 
-		public Criteria andUserIdNotEqualTo(Integer value) {
+		public Criteria andUserIdNotEqualTo(String value) {
 			addCriterion("user_id <>", value, "userId");
 			return (Criteria) this;
 		}
 
-		public Criteria andUserIdGreaterThan(Integer value) {
+		public Criteria andUserIdGreaterThan(String value) {
 			addCriterion("user_id >", value, "userId");
 			return (Criteria) this;
 		}
 
-		public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
+		public Criteria andUserIdGreaterThanOrEqualTo(String value) {
 			addCriterion("user_id >=", value, "userId");
 			return (Criteria) this;
 		}
 
-		public Criteria andUserIdLessThan(Integer value) {
+		public Criteria andUserIdLessThan(String value) {
 			addCriterion("user_id <", value, "userId");
 			return (Criteria) this;
 		}
 
-		public Criteria andUserIdLessThanOrEqualTo(Integer value) {
+		public Criteria andUserIdLessThanOrEqualTo(String value) {
 			addCriterion("user_id <=", value, "userId");
 			return (Criteria) this;
 		}
 
-		public Criteria andUserIdIn(List<Integer> values) {
+		public Criteria andUserIdLike(String value) {
+			addCriterion("user_id like", value, "userId");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserIdNotLike(String value) {
+			addCriterion("user_id not like", value, "userId");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserIdIn(List<String> values) {
 			addCriterion("user_id in", values, "userId");
 			return (Criteria) this;
 		}
 
-		public Criteria andUserIdNotIn(List<Integer> values) {
+		public Criteria andUserIdNotIn(List<String> values) {
 			addCriterion("user_id not in", values, "userId");
 			return (Criteria) this;
 		}
 
-		public Criteria andUserIdBetween(Integer value1, Integer value2) {
+		public Criteria andUserIdBetween(String value1, String value2) {
 			addCriterion("user_id between", value1, value2, "userId");
 			return (Criteria) this;
 		}
 
-		public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
+		public Criteria andUserIdNotBetween(String value1, String value2) {
 			addCriterion("user_id not between", value1, value2, "userId");
 			return (Criteria) this;
 		}
@@ -686,7 +696,7 @@ public class NewsExample {
 
 	/**
 	 * This class was generated by MyBatis Generator. This class corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	public static class Criterion {
 		private String condition;

+ 18 - 18
minigame/src/com/hssx/entity/PrizeOpportunity.java

@@ -6,34 +6,34 @@ public class PrizeOpportunity {
 
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize_opportunity.id
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	private Integer id;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize_opportunity.is_share
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	private Integer isShare;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize_opportunity.opportunity_count
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	private Integer opportunityCount;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize_opportunity.indate
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	private Date indate;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize_opportunity.uid
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
-	private Integer uid;
+	private String uid;
 
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize_opportunity.id
 	 * @return  the value of mini_prize_opportunity.id
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public Integer getId() {
 		return id;
@@ -42,7 +42,7 @@ public class PrizeOpportunity {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize_opportunity.id
 	 * @param id  the value for mini_prize_opportunity.id
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public void setId(Integer id) {
 		this.id = id;
@@ -51,7 +51,7 @@ public class PrizeOpportunity {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize_opportunity.is_share
 	 * @return  the value of mini_prize_opportunity.is_share
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public Integer getIsShare() {
 		return isShare;
@@ -60,7 +60,7 @@ public class PrizeOpportunity {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize_opportunity.is_share
 	 * @param isShare  the value for mini_prize_opportunity.is_share
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public void setIsShare(Integer isShare) {
 		this.isShare = isShare;
@@ -69,7 +69,7 @@ public class PrizeOpportunity {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize_opportunity.opportunity_count
 	 * @return  the value of mini_prize_opportunity.opportunity_count
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public Integer getOpportunityCount() {
 		return opportunityCount;
@@ -78,7 +78,7 @@ public class PrizeOpportunity {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize_opportunity.opportunity_count
 	 * @param opportunityCount  the value for mini_prize_opportunity.opportunity_count
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public void setOpportunityCount(Integer opportunityCount) {
 		this.opportunityCount = opportunityCount;
@@ -87,7 +87,7 @@ public class PrizeOpportunity {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize_opportunity.indate
 	 * @return  the value of mini_prize_opportunity.indate
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public Date getIndate() {
 		return indate;
@@ -96,7 +96,7 @@ public class PrizeOpportunity {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize_opportunity.indate
 	 * @param indate  the value for mini_prize_opportunity.indate
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public void setIndate(Date indate) {
 		this.indate = indate;
@@ -105,18 +105,18 @@ public class PrizeOpportunity {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize_opportunity.uid
 	 * @return  the value of mini_prize_opportunity.uid
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
-	public Integer getUid() {
+	public String getUid() {
 		return uid;
 	}
 
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize_opportunity.uid
 	 * @param uid  the value for mini_prize_opportunity.uid
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
-	public void setUid(Integer uid) {
+	public void setUid(String uid) {
 		this.uid = uid;
 	}
 }

+ 36 - 26
minigame/src/com/hssx/entity/PrizeOpportunityExample.java

@@ -7,23 +7,23 @@ import java.util.List;
 public class PrizeOpportunityExample {
     /**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	protected String orderByClause;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	protected boolean distinct;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	protected List<Criteria> oredCriteria;
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public PrizeOpportunityExample() {
 		oredCriteria = new ArrayList<Criteria>();
@@ -31,7 +31,7 @@ public class PrizeOpportunityExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public void setOrderByClause(String orderByClause) {
 		this.orderByClause = orderByClause;
@@ -39,7 +39,7 @@ public class PrizeOpportunityExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public String getOrderByClause() {
 		return orderByClause;
@@ -47,7 +47,7 @@ public class PrizeOpportunityExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public void setDistinct(boolean distinct) {
 		this.distinct = distinct;
@@ -55,7 +55,7 @@ public class PrizeOpportunityExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public boolean isDistinct() {
 		return distinct;
@@ -63,7 +63,7 @@ public class PrizeOpportunityExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public List<Criteria> getOredCriteria() {
 		return oredCriteria;
@@ -71,7 +71,7 @@ public class PrizeOpportunityExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public void or(Criteria criteria) {
 		oredCriteria.add(criteria);
@@ -79,7 +79,7 @@ public class PrizeOpportunityExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public Criteria or() {
 		Criteria criteria = createCriteriaInternal();
@@ -89,7 +89,7 @@ public class PrizeOpportunityExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public Criteria createCriteria() {
 		Criteria criteria = createCriteriaInternal();
@@ -101,7 +101,7 @@ public class PrizeOpportunityExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	protected Criteria createCriteriaInternal() {
 		Criteria criteria = new Criteria();
@@ -110,7 +110,7 @@ public class PrizeOpportunityExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public void clear() {
 		oredCriteria.clear();
@@ -120,7 +120,7 @@ public class PrizeOpportunityExample {
 
 	/**
 	 * This class was generated by MyBatis Generator. This class corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	protected abstract static class GeneratedCriteria {
 		protected List<Criterion> criteria;
@@ -413,52 +413,62 @@ public class PrizeOpportunityExample {
 			return (Criteria) this;
 		}
 
-		public Criteria andUidEqualTo(Integer value) {
+		public Criteria andUidEqualTo(String value) {
 			addCriterion("uid =", value, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidNotEqualTo(Integer value) {
+		public Criteria andUidNotEqualTo(String value) {
 			addCriterion("uid <>", value, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidGreaterThan(Integer value) {
+		public Criteria andUidGreaterThan(String value) {
 			addCriterion("uid >", value, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidGreaterThanOrEqualTo(Integer value) {
+		public Criteria andUidGreaterThanOrEqualTo(String value) {
 			addCriterion("uid >=", value, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidLessThan(Integer value) {
+		public Criteria andUidLessThan(String value) {
 			addCriterion("uid <", value, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidLessThanOrEqualTo(Integer value) {
+		public Criteria andUidLessThanOrEqualTo(String value) {
 			addCriterion("uid <=", value, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidIn(List<Integer> values) {
+		public Criteria andUidLike(String value) {
+			addCriterion("uid like", value, "uid");
+			return (Criteria) this;
+		}
+
+		public Criteria andUidNotLike(String value) {
+			addCriterion("uid not like", value, "uid");
+			return (Criteria) this;
+		}
+
+		public Criteria andUidIn(List<String> values) {
 			addCriterion("uid in", values, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidNotIn(List<Integer> values) {
+		public Criteria andUidNotIn(List<String> values) {
 			addCriterion("uid not in", values, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidBetween(Integer value1, Integer value2) {
+		public Criteria andUidBetween(String value1, String value2) {
 			addCriterion("uid between", value1, value2, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidNotBetween(Integer value1, Integer value2) {
+		public Criteria andUidNotBetween(String value1, String value2) {
 			addCriterion("uid not between", value1, value2, "uid");
 			return (Criteria) this;
 		}
@@ -466,7 +476,7 @@ public class PrizeOpportunityExample {
 
 	/**
 	 * This class was generated by MyBatis Generator. This class corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	public static class Criterion {
 		private String condition;

+ 33 - 33
minigame/src/com/hssx/entity/PrizeRecord.java

@@ -6,59 +6,59 @@ public class PrizeRecord {
 
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize_record.id
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	private Integer id;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize_record.uid
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
-	private Integer uid;
+	private String uid;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize_record.prize_id
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	private Integer prizeId;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize_record.indate
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	private Date indate;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize_record.phone
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	private String phone;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize_record.user_name
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	private String userName;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize_record.voucher_id
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	private String voucherId;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize_record.type
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	private Integer type;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize_record.prize
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	private String prize;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize_record.nick_name
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	private String nickName;
 
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize_record.id
 	 * @return  the value of mini_prize_record.id
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public Integer getId() {
 		return id;
@@ -67,7 +67,7 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize_record.id
 	 * @param id  the value for mini_prize_record.id
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public void setId(Integer id) {
 		this.id = id;
@@ -76,25 +76,25 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize_record.uid
 	 * @return  the value of mini_prize_record.uid
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
-	public Integer getUid() {
+	public String getUid() {
 		return uid;
 	}
 
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize_record.uid
 	 * @param uid  the value for mini_prize_record.uid
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
-	public void setUid(Integer uid) {
+	public void setUid(String uid) {
 		this.uid = uid;
 	}
 
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize_record.prize_id
 	 * @return  the value of mini_prize_record.prize_id
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public Integer getPrizeId() {
 		return prizeId;
@@ -103,7 +103,7 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize_record.prize_id
 	 * @param prizeId  the value for mini_prize_record.prize_id
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public void setPrizeId(Integer prizeId) {
 		this.prizeId = prizeId;
@@ -112,7 +112,7 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize_record.indate
 	 * @return  the value of mini_prize_record.indate
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public Date getIndate() {
 		return indate;
@@ -121,7 +121,7 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize_record.indate
 	 * @param indate  the value for mini_prize_record.indate
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public void setIndate(Date indate) {
 		this.indate = indate;
@@ -130,7 +130,7 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize_record.phone
 	 * @return  the value of mini_prize_record.phone
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public String getPhone() {
 		return phone;
@@ -139,7 +139,7 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize_record.phone
 	 * @param phone  the value for mini_prize_record.phone
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public void setPhone(String phone) {
 		this.phone = phone;
@@ -148,7 +148,7 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize_record.user_name
 	 * @return  the value of mini_prize_record.user_name
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public String getUserName() {
 		return userName;
@@ -157,7 +157,7 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize_record.user_name
 	 * @param userName  the value for mini_prize_record.user_name
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public void setUserName(String userName) {
 		this.userName = userName;
@@ -166,7 +166,7 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize_record.voucher_id
 	 * @return  the value of mini_prize_record.voucher_id
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public String getVoucherId() {
 		return voucherId;
@@ -175,7 +175,7 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize_record.voucher_id
 	 * @param voucherId  the value for mini_prize_record.voucher_id
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public void setVoucherId(String voucherId) {
 		this.voucherId = voucherId;
@@ -184,7 +184,7 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize_record.type
 	 * @return  the value of mini_prize_record.type
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public Integer getType() {
 		return type;
@@ -193,7 +193,7 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize_record.type
 	 * @param type  the value for mini_prize_record.type
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public void setType(Integer type) {
 		this.type = type;
@@ -202,7 +202,7 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize_record.prize
 	 * @return  the value of mini_prize_record.prize
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public String getPrize() {
 		return prize;
@@ -211,7 +211,7 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize_record.prize
 	 * @param prize  the value for mini_prize_record.prize
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public void setPrize(String prize) {
 		this.prize = prize;
@@ -220,7 +220,7 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize_record.nick_name
 	 * @return  the value of mini_prize_record.nick_name
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public String getNickName() {
 		return nickName;
@@ -229,7 +229,7 @@ public class PrizeRecord {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize_record.nick_name
 	 * @param nickName  the value for mini_prize_record.nick_name
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public void setNickName(String nickName) {
 		this.nickName = nickName;

+ 36 - 26
minigame/src/com/hssx/entity/PrizeRecordExample.java

@@ -7,23 +7,23 @@ import java.util.List;
 public class PrizeRecordExample {
     /**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	protected String orderByClause;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	protected boolean distinct;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	protected List<Criteria> oredCriteria;
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public PrizeRecordExample() {
 		oredCriteria = new ArrayList<Criteria>();
@@ -31,7 +31,7 @@ public class PrizeRecordExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public void setOrderByClause(String orderByClause) {
 		this.orderByClause = orderByClause;
@@ -39,7 +39,7 @@ public class PrizeRecordExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public String getOrderByClause() {
 		return orderByClause;
@@ -47,7 +47,7 @@ public class PrizeRecordExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public void setDistinct(boolean distinct) {
 		this.distinct = distinct;
@@ -55,7 +55,7 @@ public class PrizeRecordExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public boolean isDistinct() {
 		return distinct;
@@ -63,7 +63,7 @@ public class PrizeRecordExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public List<Criteria> getOredCriteria() {
 		return oredCriteria;
@@ -71,7 +71,7 @@ public class PrizeRecordExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public void or(Criteria criteria) {
 		oredCriteria.add(criteria);
@@ -79,7 +79,7 @@ public class PrizeRecordExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public Criteria or() {
 		Criteria criteria = createCriteriaInternal();
@@ -89,7 +89,7 @@ public class PrizeRecordExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public Criteria createCriteria() {
 		Criteria criteria = createCriteriaInternal();
@@ -101,7 +101,7 @@ public class PrizeRecordExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	protected Criteria createCriteriaInternal() {
 		Criteria criteria = new Criteria();
@@ -110,7 +110,7 @@ public class PrizeRecordExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public void clear() {
 		oredCriteria.clear();
@@ -120,7 +120,7 @@ public class PrizeRecordExample {
 
 	/**
 	 * This class was generated by MyBatis Generator. This class corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	protected abstract static class GeneratedCriteria {
 		protected List<Criterion> criteria;
@@ -233,52 +233,62 @@ public class PrizeRecordExample {
 			return (Criteria) this;
 		}
 
-		public Criteria andUidEqualTo(Integer value) {
+		public Criteria andUidEqualTo(String value) {
 			addCriterion("uid =", value, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidNotEqualTo(Integer value) {
+		public Criteria andUidNotEqualTo(String value) {
 			addCriterion("uid <>", value, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidGreaterThan(Integer value) {
+		public Criteria andUidGreaterThan(String value) {
 			addCriterion("uid >", value, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidGreaterThanOrEqualTo(Integer value) {
+		public Criteria andUidGreaterThanOrEqualTo(String value) {
 			addCriterion("uid >=", value, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidLessThan(Integer value) {
+		public Criteria andUidLessThan(String value) {
 			addCriterion("uid <", value, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidLessThanOrEqualTo(Integer value) {
+		public Criteria andUidLessThanOrEqualTo(String value) {
 			addCriterion("uid <=", value, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidIn(List<Integer> values) {
+		public Criteria andUidLike(String value) {
+			addCriterion("uid like", value, "uid");
+			return (Criteria) this;
+		}
+
+		public Criteria andUidNotLike(String value) {
+			addCriterion("uid not like", value, "uid");
+			return (Criteria) this;
+		}
+
+		public Criteria andUidIn(List<String> values) {
 			addCriterion("uid in", values, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidNotIn(List<Integer> values) {
+		public Criteria andUidNotIn(List<String> values) {
 			addCriterion("uid not in", values, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidBetween(Integer value1, Integer value2) {
+		public Criteria andUidBetween(String value1, String value2) {
 			addCriterion("uid between", value1, value2, "uid");
 			return (Criteria) this;
 		}
 
-		public Criteria andUidNotBetween(Integer value1, Integer value2) {
+		public Criteria andUidNotBetween(String value1, String value2) {
 			addCriterion("uid not between", value1, value2, "uid");
 			return (Criteria) this;
 		}
@@ -816,7 +826,7 @@ public class PrizeRecordExample {
 
 	/**
 	 * This class was generated by MyBatis Generator. This class corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	public static class Criterion {
 		private String condition;

+ 126 - 185
minigame/src/com/hssx/entity/User.java

@@ -4,202 +4,143 @@ import java.util.Date;
 
 public class User {
     /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column mini_user.id
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    private Integer id;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column mini_user.type
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    private Integer type;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column mini_user.voucher_id
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    private String voucherId;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column mini_user.indate
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    private Date indate;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column mini_user.header_pic
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    private String headerPic;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column mini_user.nick_name
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    private String nickName;
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method returns the value of the database column mini_user.id
-     *
-     * @return the value of mini_user.id
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    public Integer getId() {
-        return id;
-    }
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_user.id
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	private String id;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_user.type
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	private Integer type;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_user.voucher_id
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	private String voucherId;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_user.indate
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	private Date indate;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_user.header_pic
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	private String headerPic;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_user.nick_name
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	private String nickName;
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_user.id
+	 * @return  the value of mini_user.id
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	public String getId() {
+		return id;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method sets the value of the database column mini_user.id
-     *
-     * @param id the value for mini_user.id
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    public void setId(Integer id) {
-        this.id = id;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_user.id
+	 * @param id  the value for mini_user.id
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	public void setId(String id) {
+		this.id = id;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method returns the value of the database column mini_user.type
-     *
-     * @return the value of mini_user.type
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    public Integer getType() {
-        return type;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_user.type
+	 * @return  the value of mini_user.type
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	public Integer getType() {
+		return type;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method sets the value of the database column mini_user.type
-     *
-     * @param type the value for mini_user.type
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    public void setType(Integer type) {
-        this.type = type;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_user.type
+	 * @param type  the value for mini_user.type
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	public void setType(Integer type) {
+		this.type = type;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method returns the value of the database column mini_user.voucher_id
-     *
-     * @return the value of mini_user.voucher_id
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    public String getVoucherId() {
-        return voucherId;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_user.voucher_id
+	 * @return  the value of mini_user.voucher_id
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	public String getVoucherId() {
+		return voucherId;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method sets the value of the database column mini_user.voucher_id
-     *
-     * @param voucherId the value for mini_user.voucher_id
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    public void setVoucherId(String voucherId) {
-        this.voucherId = voucherId;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_user.voucher_id
+	 * @param voucherId  the value for mini_user.voucher_id
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	public void setVoucherId(String voucherId) {
+		this.voucherId = voucherId;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method returns the value of the database column mini_user.indate
-     *
-     * @return the value of mini_user.indate
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    public Date getIndate() {
-        return indate;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_user.indate
+	 * @return  the value of mini_user.indate
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	public Date getIndate() {
+		return indate;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method sets the value of the database column mini_user.indate
-     *
-     * @param indate the value for mini_user.indate
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    public void setIndate(Date indate) {
-        this.indate = indate;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_user.indate
+	 * @param indate  the value for mini_user.indate
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	public void setIndate(Date indate) {
+		this.indate = indate;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method returns the value of the database column mini_user.header_pic
-     *
-     * @return the value of mini_user.header_pic
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    public String getHeaderPic() {
-        return headerPic;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_user.header_pic
+	 * @return  the value of mini_user.header_pic
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	public String getHeaderPic() {
+		return headerPic;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method sets the value of the database column mini_user.header_pic
-     *
-     * @param headerPic the value for mini_user.header_pic
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    public void setHeaderPic(String headerPic) {
-        this.headerPic = headerPic;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_user.header_pic
+	 * @param headerPic  the value for mini_user.header_pic
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	public void setHeaderPic(String headerPic) {
+		this.headerPic = headerPic;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method returns the value of the database column mini_user.nick_name
-     *
-     * @return the value of mini_user.nick_name
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    public String getNickName() {
-        return nickName;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_user.nick_name
+	 * @return  the value of mini_user.nick_name
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	public String getNickName() {
+		return nickName;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method sets the value of the database column mini_user.nick_name
-     *
-     * @param nickName the value for mini_user.nick_name
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    public void setNickName(String nickName) {
-        this.nickName = nickName;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_user.nick_name
+	 * @param nickName  the value for mini_user.nick_name
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	public void setNickName(String nickName) {
+		this.nickName = nickName;
+	}
 
 	@Override
 	public String toString() {

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 642 - 673
minigame/src/com/hssx/entity/UserExample.java


+ 63 - 91
minigame/src/com/hssx/entity/UserPrizeCount.java

@@ -3,102 +3,74 @@ package com.hssx.entity;
 import java.util.Date;
 
 public class UserPrizeCount {
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column mini_user_prize_count.id
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    private Integer id;
 
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column mini_user_prize_count.user_id
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    private Integer userId;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_user_prize_count.id
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	private Integer id;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_user_prize_count.user_id
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	private String userId;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_user_prize_count.indate
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	private Date indate;
 
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column mini_user_prize_count.indate
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    private Date indate;
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_user_prize_count.id
+	 * @return  the value of mini_user_prize_count.id
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public Integer getId() {
+		return id;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method returns the value of the database column mini_user_prize_count.id
-     *
-     * @return the value of mini_user_prize_count.id
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public Integer getId() {
-        return id;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_user_prize_count.id
+	 * @param id  the value for mini_user_prize_count.id
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public void setId(Integer id) {
+		this.id = id;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method sets the value of the database column mini_user_prize_count.id
-     *
-     * @param id the value for mini_user_prize_count.id
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public void setId(Integer id) {
-        this.id = id;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_user_prize_count.user_id
+	 * @return  the value of mini_user_prize_count.user_id
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public String getUserId() {
+		return userId;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method returns the value of the database column mini_user_prize_count.user_id
-     *
-     * @return the value of mini_user_prize_count.user_id
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public Integer getUserId() {
-        return userId;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_user_prize_count.user_id
+	 * @param userId  the value for mini_user_prize_count.user_id
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public void setUserId(String userId) {
+		this.userId = userId;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method sets the value of the database column mini_user_prize_count.user_id
-     *
-     * @param userId the value for mini_user_prize_count.user_id
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public void setUserId(Integer userId) {
-        this.userId = userId;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_user_prize_count.indate
+	 * @return  the value of mini_user_prize_count.indate
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public Date getIndate() {
+		return indate;
+	}
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method returns the value of the database column mini_user_prize_count.indate
-     *
-     * @return the value of mini_user_prize_count.indate
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public Date getIndate() {
-        return indate;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method sets the value of the database column mini_user_prize_count.indate
-     *
-     * @param indate the value for mini_user_prize_count.indate
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public void setIndate(Date indate) {
-        this.indate = indate;
-    }
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_user_prize_count.indate
+	 * @param indate  the value for mini_user_prize_count.indate
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public void setIndate(Date indate) {
+		this.indate = indate;
+	}
 }

+ 432 - 463
minigame/src/com/hssx/entity/UserPrizeCountExample.java

@@ -6,377 +6,438 @@ import java.util.List;
 
 public class UserPrizeCountExample {
     /**
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    protected String orderByClause;
-
-    /**
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    protected boolean distinct;
-
-    /**
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    protected List<Criteria> oredCriteria;
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public UserPrizeCountExample() {
-        oredCriteria = new ArrayList<Criteria>();
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public void setOrderByClause(String orderByClause) {
-        this.orderByClause = orderByClause;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public String getOrderByClause() {
-        return orderByClause;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public void setDistinct(boolean distinct) {
-        this.distinct = distinct;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public boolean isDistinct() {
-        return distinct;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public List<Criteria> getOredCriteria() {
-        return oredCriteria;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public void or(Criteria criteria) {
-        oredCriteria.add(criteria);
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public Criteria or() {
-        Criteria criteria = createCriteriaInternal();
-        oredCriteria.add(criteria);
-        return criteria;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public Criteria createCriteria() {
-        Criteria criteria = createCriteriaInternal();
-        if (oredCriteria.size() == 0) {
-            oredCriteria.add(criteria);
-        }
-        return criteria;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    protected Criteria createCriteriaInternal() {
-        Criteria criteria = new Criteria();
-        return criteria;
-    }
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public void clear() {
-        oredCriteria.clear();
-        orderByClause = null;
-        distinct = false;
-    }
-
-    /**
-     * This class was generated by MyBatis Generator.
-     * This class corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    protected abstract static class GeneratedCriteria {
-        protected List<Criterion> criteria;
-
-        protected GeneratedCriteria() {
-            super();
-            criteria = new ArrayList<Criterion>();
-        }
-
-        public boolean isValid() {
-            return criteria.size() > 0;
-        }
-
-        public List<Criterion> getAllCriteria() {
-            return criteria;
-        }
-
-        public List<Criterion> getCriteria() {
-            return criteria;
-        }
-
-        protected void addCriterion(String condition) {
-            if (condition == null) {
-                throw new RuntimeException("Value for condition cannot be null");
-            }
-            criteria.add(new Criterion(condition));
-        }
-
-        protected void addCriterion(String condition, Object value, String property) {
-            if (value == null) {
-                throw new RuntimeException("Value for " + property + " cannot be null");
-            }
-            criteria.add(new Criterion(condition, value));
-        }
-
-        protected void addCriterion(String condition, Object value1, Object value2, String property) {
-            if (value1 == null || value2 == null) {
-                throw new RuntimeException("Between values for " + property + " cannot be null");
-            }
-            criteria.add(new Criterion(condition, value1, value2));
-        }
-
-        public Criteria andIdIsNull() {
-            addCriterion("id is null");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdIsNotNull() {
-            addCriterion("id is not null");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdEqualTo(Integer value) {
-            addCriterion("id =", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdNotEqualTo(Integer value) {
-            addCriterion("id <>", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdGreaterThan(Integer value) {
-            addCriterion("id >", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
-            addCriterion("id >=", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdLessThan(Integer value) {
-            addCriterion("id <", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdLessThanOrEqualTo(Integer value) {
-            addCriterion("id <=", value, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdIn(List<Integer> values) {
-            addCriterion("id in", values, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdNotIn(List<Integer> values) {
-            addCriterion("id not in", values, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdBetween(Integer value1, Integer value2) {
-            addCriterion("id between", value1, value2, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andIdNotBetween(Integer value1, Integer value2) {
-            addCriterion("id not between", value1, value2, "id");
-            return (Criteria) this;
-        }
-
-        public Criteria andUserIdIsNull() {
-            addCriterion("user_id is null");
-            return (Criteria) this;
-        }
-
-        public Criteria andUserIdIsNotNull() {
-            addCriterion("user_id is not null");
-            return (Criteria) this;
-        }
-
-        public Criteria andUserIdEqualTo(Integer value) {
-            addCriterion("user_id =", value, "userId");
-            return (Criteria) this;
-        }
-
-        public Criteria andUserIdNotEqualTo(Integer value) {
-            addCriterion("user_id <>", value, "userId");
-            return (Criteria) this;
-        }
-
-        public Criteria andUserIdGreaterThan(Integer value) {
-            addCriterion("user_id >", value, "userId");
-            return (Criteria) this;
-        }
-
-        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
-            addCriterion("user_id >=", value, "userId");
-            return (Criteria) this;
-        }
-
-        public Criteria andUserIdLessThan(Integer value) {
-            addCriterion("user_id <", value, "userId");
-            return (Criteria) this;
-        }
-
-        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
-            addCriterion("user_id <=", value, "userId");
-            return (Criteria) this;
-        }
-
-        public Criteria andUserIdIn(List<Integer> values) {
-            addCriterion("user_id in", values, "userId");
-            return (Criteria) this;
-        }
-
-        public Criteria andUserIdNotIn(List<Integer> values) {
-            addCriterion("user_id not in", values, "userId");
-            return (Criteria) this;
-        }
-
-        public Criteria andUserIdBetween(Integer value1, Integer value2) {
-            addCriterion("user_id between", value1, value2, "userId");
-            return (Criteria) this;
-        }
-
-        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
-            addCriterion("user_id not between", value1, value2, "userId");
-            return (Criteria) this;
-        }
-
-        public Criteria andIndateIsNull() {
-            addCriterion("indate is null");
-            return (Criteria) this;
-        }
-
-        public Criteria andIndateIsNotNull() {
-            addCriterion("indate is not null");
-            return (Criteria) this;
-        }
-
-        public Criteria andIndateEqualTo(Date value) {
-            addCriterion("indate =", value, "indate");
-            return (Criteria) this;
-        }
-
-        public Criteria andIndateNotEqualTo(Date value) {
-            addCriterion("indate <>", value, "indate");
-            return (Criteria) this;
-        }
-
-        public Criteria andIndateGreaterThan(Date value) {
-            addCriterion("indate >", value, "indate");
-            return (Criteria) this;
-        }
-
-        public Criteria andIndateGreaterThanOrEqualTo(Date value) {
-            addCriterion("indate >=", value, "indate");
-            return (Criteria) this;
-        }
-
-        public Criteria andIndateLessThan(Date value) {
-            addCriterion("indate <", value, "indate");
-            return (Criteria) this;
-        }
-
-        public Criteria andIndateLessThanOrEqualTo(Date value) {
-            addCriterion("indate <=", value, "indate");
-            return (Criteria) this;
-        }
-
-        public Criteria andIndateIn(List<Date> values) {
-            addCriterion("indate in", values, "indate");
-            return (Criteria) this;
-        }
-
-        public Criteria andIndateNotIn(List<Date> values) {
-            addCriterion("indate not in", values, "indate");
-            return (Criteria) this;
-        }
-
-        public Criteria andIndateBetween(Date value1, Date value2) {
-            addCriterion("indate between", value1, value2, "indate");
-            return (Criteria) this;
-        }
-
-        public Criteria andIndateNotBetween(Date value1, Date value2) {
-            addCriterion("indate not between", value1, value2, "indate");
-            return (Criteria) this;
-        }
-    }
-
-    /**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	protected String orderByClause;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	protected boolean distinct;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	protected List<Criteria> oredCriteria;
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public UserPrizeCountExample() {
+		oredCriteria = new ArrayList<Criteria>();
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public void setOrderByClause(String orderByClause) {
+		this.orderByClause = orderByClause;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public String getOrderByClause() {
+		return orderByClause;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public void setDistinct(boolean distinct) {
+		this.distinct = distinct;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public boolean isDistinct() {
+		return distinct;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public List<Criteria> getOredCriteria() {
+		return oredCriteria;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public void or(Criteria criteria) {
+		oredCriteria.add(criteria);
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public Criteria or() {
+		Criteria criteria = createCriteriaInternal();
+		oredCriteria.add(criteria);
+		return criteria;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public Criteria createCriteria() {
+		Criteria criteria = createCriteriaInternal();
+		if (oredCriteria.size() == 0) {
+			oredCriteria.add(criteria);
+		}
+		return criteria;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	protected Criteria createCriteriaInternal() {
+		Criteria criteria = new Criteria();
+		return criteria;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public void clear() {
+		oredCriteria.clear();
+		orderByClause = null;
+		distinct = false;
+	}
+
+	/**
+	 * This class was generated by MyBatis Generator. This class corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	protected abstract static class GeneratedCriteria {
+		protected List<Criterion> criteria;
+
+		protected GeneratedCriteria() {
+			super();
+			criteria = new ArrayList<Criterion>();
+		}
+
+		public boolean isValid() {
+			return criteria.size() > 0;
+		}
+
+		public List<Criterion> getAllCriteria() {
+			return criteria;
+		}
+
+		public List<Criterion> getCriteria() {
+			return criteria;
+		}
+
+		protected void addCriterion(String condition) {
+			if (condition == null) {
+				throw new RuntimeException("Value for condition cannot be null");
+			}
+			criteria.add(new Criterion(condition));
+		}
+
+		protected void addCriterion(String condition, Object value, String property) {
+			if (value == null) {
+				throw new RuntimeException("Value for " + property + " cannot be null");
+			}
+			criteria.add(new Criterion(condition, value));
+		}
+
+		protected void addCriterion(String condition, Object value1, Object value2, String property) {
+			if (value1 == null || value2 == null) {
+				throw new RuntimeException("Between values for " + property + " cannot be null");
+			}
+			criteria.add(new Criterion(condition, value1, value2));
+		}
+
+		public Criteria andIdIsNull() {
+			addCriterion("id is null");
+			return (Criteria) this;
+		}
+
+		public Criteria andIdIsNotNull() {
+			addCriterion("id is not null");
+			return (Criteria) this;
+		}
+
+		public Criteria andIdEqualTo(Integer value) {
+			addCriterion("id =", value, "id");
+			return (Criteria) this;
+		}
+
+		public Criteria andIdNotEqualTo(Integer value) {
+			addCriterion("id <>", value, "id");
+			return (Criteria) this;
+		}
+
+		public Criteria andIdGreaterThan(Integer value) {
+			addCriterion("id >", value, "id");
+			return (Criteria) this;
+		}
+
+		public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+			addCriterion("id >=", value, "id");
+			return (Criteria) this;
+		}
+
+		public Criteria andIdLessThan(Integer value) {
+			addCriterion("id <", value, "id");
+			return (Criteria) this;
+		}
+
+		public Criteria andIdLessThanOrEqualTo(Integer value) {
+			addCriterion("id <=", value, "id");
+			return (Criteria) this;
+		}
+
+		public Criteria andIdIn(List<Integer> values) {
+			addCriterion("id in", values, "id");
+			return (Criteria) this;
+		}
+
+		public Criteria andIdNotIn(List<Integer> values) {
+			addCriterion("id not in", values, "id");
+			return (Criteria) this;
+		}
+
+		public Criteria andIdBetween(Integer value1, Integer value2) {
+			addCriterion("id between", value1, value2, "id");
+			return (Criteria) this;
+		}
+
+		public Criteria andIdNotBetween(Integer value1, Integer value2) {
+			addCriterion("id not between", value1, value2, "id");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserIdIsNull() {
+			addCriterion("user_id is null");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserIdIsNotNull() {
+			addCriterion("user_id is not null");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserIdEqualTo(String value) {
+			addCriterion("user_id =", value, "userId");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserIdNotEqualTo(String value) {
+			addCriterion("user_id <>", value, "userId");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserIdGreaterThan(String value) {
+			addCriterion("user_id >", value, "userId");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserIdGreaterThanOrEqualTo(String value) {
+			addCriterion("user_id >=", value, "userId");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserIdLessThan(String value) {
+			addCriterion("user_id <", value, "userId");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserIdLessThanOrEqualTo(String value) {
+			addCriterion("user_id <=", value, "userId");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserIdLike(String value) {
+			addCriterion("user_id like", value, "userId");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserIdNotLike(String value) {
+			addCriterion("user_id not like", value, "userId");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserIdIn(List<String> values) {
+			addCriterion("user_id in", values, "userId");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserIdNotIn(List<String> values) {
+			addCriterion("user_id not in", values, "userId");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserIdBetween(String value1, String value2) {
+			addCriterion("user_id between", value1, value2, "userId");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserIdNotBetween(String value1, String value2) {
+			addCriterion("user_id not between", value1, value2, "userId");
+			return (Criteria) this;
+		}
+
+		public Criteria andIndateIsNull() {
+			addCriterion("indate is null");
+			return (Criteria) this;
+		}
+
+		public Criteria andIndateIsNotNull() {
+			addCriterion("indate is not null");
+			return (Criteria) this;
+		}
+
+		public Criteria andIndateEqualTo(Date value) {
+			addCriterion("indate =", value, "indate");
+			return (Criteria) this;
+		}
+
+		public Criteria andIndateNotEqualTo(Date value) {
+			addCriterion("indate <>", value, "indate");
+			return (Criteria) this;
+		}
+
+		public Criteria andIndateGreaterThan(Date value) {
+			addCriterion("indate >", value, "indate");
+			return (Criteria) this;
+		}
+
+		public Criteria andIndateGreaterThanOrEqualTo(Date value) {
+			addCriterion("indate >=", value, "indate");
+			return (Criteria) this;
+		}
+
+		public Criteria andIndateLessThan(Date value) {
+			addCriterion("indate <", value, "indate");
+			return (Criteria) this;
+		}
+
+		public Criteria andIndateLessThanOrEqualTo(Date value) {
+			addCriterion("indate <=", value, "indate");
+			return (Criteria) this;
+		}
+
+		public Criteria andIndateIn(List<Date> values) {
+			addCriterion("indate in", values, "indate");
+			return (Criteria) this;
+		}
+
+		public Criteria andIndateNotIn(List<Date> values) {
+			addCriterion("indate not in", values, "indate");
+			return (Criteria) this;
+		}
+
+		public Criteria andIndateBetween(Date value1, Date value2) {
+			addCriterion("indate between", value1, value2, "indate");
+			return (Criteria) this;
+		}
+
+		public Criteria andIndateNotBetween(Date value1, Date value2) {
+			addCriterion("indate not between", value1, value2, "indate");
+			return (Criteria) this;
+		}
+	}
+
+	/**
+	 * This class was generated by MyBatis Generator. This class corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	public static class Criterion {
+		private String condition;
+		private Object value;
+		private Object secondValue;
+		private boolean noValue;
+		private boolean singleValue;
+		private boolean betweenValue;
+		private boolean listValue;
+		private String typeHandler;
+
+		public String getCondition() {
+			return condition;
+		}
+
+		public Object getValue() {
+			return value;
+		}
+
+		public Object getSecondValue() {
+			return secondValue;
+		}
+
+		public boolean isNoValue() {
+			return noValue;
+		}
+
+		public boolean isSingleValue() {
+			return singleValue;
+		}
+
+		public boolean isBetweenValue() {
+			return betweenValue;
+		}
+
+		public boolean isListValue() {
+			return listValue;
+		}
+
+		public String getTypeHandler() {
+			return typeHandler;
+		}
+
+		protected Criterion(String condition) {
+			super();
+			this.condition = condition;
+			this.typeHandler = null;
+			this.noValue = true;
+		}
+
+		protected Criterion(String condition, Object value, String typeHandler) {
+			super();
+			this.condition = condition;
+			this.value = value;
+			this.typeHandler = typeHandler;
+			if (value instanceof List<?>) {
+				this.listValue = true;
+			} else {
+				this.singleValue = true;
+			}
+		}
+
+		protected Criterion(String condition, Object value) {
+			this(condition, value, null);
+		}
+
+		protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+			super();
+			this.condition = condition;
+			this.value = value;
+			this.secondValue = secondValue;
+			this.typeHandler = typeHandler;
+			this.betweenValue = true;
+		}
+
+		protected Criterion(String condition, Object value, Object secondValue) {
+			this(condition, value, secondValue, null);
+		}
+	}
+
+	/**
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table mini_user_prize_count
      *
@@ -388,96 +449,4 @@ public class UserPrizeCountExample {
             super();
         }
     }
-
-    /**
-     * This class was generated by MyBatis Generator.
-     * This class corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    public static class Criterion {
-        private String condition;
-
-        private Object value;
-
-        private Object secondValue;
-
-        private boolean noValue;
-
-        private boolean singleValue;
-
-        private boolean betweenValue;
-
-        private boolean listValue;
-
-        private String typeHandler;
-
-        public String getCondition() {
-            return condition;
-        }
-
-        public Object getValue() {
-            return value;
-        }
-
-        public Object getSecondValue() {
-            return secondValue;
-        }
-
-        public boolean isNoValue() {
-            return noValue;
-        }
-
-        public boolean isSingleValue() {
-            return singleValue;
-        }
-
-        public boolean isBetweenValue() {
-            return betweenValue;
-        }
-
-        public boolean isListValue() {
-            return listValue;
-        }
-
-        public String getTypeHandler() {
-            return typeHandler;
-        }
-
-        protected Criterion(String condition) {
-            super();
-            this.condition = condition;
-            this.typeHandler = null;
-            this.noValue = true;
-        }
-
-        protected Criterion(String condition, Object value, String typeHandler) {
-            super();
-            this.condition = condition;
-            this.value = value;
-            this.typeHandler = typeHandler;
-            if (value instanceof List<?>) {
-                this.listValue = true;
-            } else {
-                this.singleValue = true;
-            }
-        }
-
-        protected Criterion(String condition, Object value) {
-            this(condition, value, null);
-        }
-
-        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
-            super();
-            this.condition = condition;
-            this.value = value;
-            this.secondValue = secondValue;
-            this.typeHandler = typeHandler;
-            this.betweenValue = true;
-        }
-
-        protected Criterion(String condition, Object value, Object secondValue) {
-            this(condition, value, secondValue, null);
-        }
-    }
 }

+ 11 - 11
minigame/src/com/hssx/mapper/NewsMapper.java

@@ -9,67 +9,67 @@ public interface NewsMapper {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	long countByExample(NewsExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	int deleteByExample(NewsExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	int deleteByPrimaryKey(Integer id);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	int insert(News record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	int insertSelective(News record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	List<News> selectByExample(NewsExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	News selectByPrimaryKey(Integer id);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	int updateByExampleSelective(@Param("record") News record, @Param("example") NewsExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	int updateByExample(@Param("record") News record, @Param("example") NewsExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	int updateByPrimaryKeySelective(News record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
-	 * @mbg.generated  Thu Sep 19 20:54:27 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:18:22 CST 2019
 	 */
 	int updateByPrimaryKey(News record);
 }

+ 22 - 22
minigame/src/com/hssx/mapper/NewsMapper.xml

@@ -5,7 +5,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:54:27 CST 2019.
+      This element was generated on Mon Sep 23 14:18:22 CST 2019.
     -->
     <id column="id" jdbcType="INTEGER" property="id" />
     <result column="nick_name" jdbcType="VARCHAR" property="nickName" />
@@ -13,14 +13,14 @@
     <result column="indate" jdbcType="TIMESTAMP" property="indate" />
     <result column="type" jdbcType="INTEGER" property="type" />
     <result column="message" jdbcType="VARCHAR" property="message" />
-    <result column="user_id" jdbcType="INTEGER" property="userId" />
+    <result column="user_id" jdbcType="VARCHAR" property="userId" />
     <result column="receiver" jdbcType="VARCHAR" property="receiver" />
   </resultMap>
   <sql id="Example_Where_Clause">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:54:27 CST 2019.
+      This element was generated on Mon Sep 23 14:18:22 CST 2019.
     -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
@@ -54,7 +54,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:54:27 CST 2019.
+      This element was generated on Mon Sep 23 14:18:22 CST 2019.
     -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
@@ -88,7 +88,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:54:27 CST 2019.
+      This element was generated on Mon Sep 23 14:18:22 CST 2019.
     -->
     id, nick_name, header_pic, indate, type, message, user_id, receiver
   </sql>
@@ -96,7 +96,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:54:27 CST 2019.
+      This element was generated on Mon Sep 23 14:18:22 CST 2019.
     -->
     select
     <if test="distinct">
@@ -115,7 +115,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:54:27 CST 2019.
+      This element was generated on Mon Sep 23 14:18:22 CST 2019.
     -->
     select 
     <include refid="Base_Column_List" />
@@ -126,7 +126,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:54:27 CST 2019.
+      This element was generated on Mon Sep 23 14:18:22 CST 2019.
     -->
     delete from mini_news
     where id = #{id,jdbcType=INTEGER}
@@ -135,7 +135,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:54:27 CST 2019.
+      This element was generated on Mon Sep 23 14:18:22 CST 2019.
     -->
     delete from mini_news
     <if test="_parameter != null">
@@ -146,7 +146,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:54:27 CST 2019.
+      This element was generated on Mon Sep 23 14:18:22 CST 2019.
     -->
     <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
       SELECT LAST_INSERT_ID()
@@ -155,14 +155,14 @@
       type, message, user_id, 
       receiver)
     values (#{nickName,jdbcType=VARCHAR}, #{headerPic,jdbcType=VARCHAR}, #{indate,jdbcType=TIMESTAMP}, 
-      #{type,jdbcType=INTEGER}, #{message,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER}, 
+      #{type,jdbcType=INTEGER}, #{message,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, 
       #{receiver,jdbcType=VARCHAR})
   </insert>
   <insert id="insertSelective" parameterType="com.hssx.entity.News">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:54:27 CST 2019.
+      This element was generated on Mon Sep 23 14:18:22 CST 2019.
     -->
     <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
       SELECT LAST_INSERT_ID()
@@ -208,7 +208,7 @@
         #{message,jdbcType=VARCHAR},
       </if>
       <if test="userId != null">
-        #{userId,jdbcType=INTEGER},
+        #{userId,jdbcType=VARCHAR},
       </if>
       <if test="receiver != null">
         #{receiver,jdbcType=VARCHAR},
@@ -219,7 +219,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:54:27 CST 2019.
+      This element was generated on Mon Sep 23 14:18:22 CST 2019.
     -->
     select count(*) from mini_news
     <if test="_parameter != null">
@@ -230,7 +230,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:54:27 CST 2019.
+      This element was generated on Mon Sep 23 14:18:22 CST 2019.
     -->
     update mini_news
     <set>
@@ -253,7 +253,7 @@
         message = #{record.message,jdbcType=VARCHAR},
       </if>
       <if test="record.userId != null">
-        user_id = #{record.userId,jdbcType=INTEGER},
+        user_id = #{record.userId,jdbcType=VARCHAR},
       </if>
       <if test="record.receiver != null">
         receiver = #{record.receiver,jdbcType=VARCHAR},
@@ -267,7 +267,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:54:27 CST 2019.
+      This element was generated on Mon Sep 23 14:18:22 CST 2019.
     -->
     update mini_news
     set id = #{record.id,jdbcType=INTEGER},
@@ -276,7 +276,7 @@
       indate = #{record.indate,jdbcType=TIMESTAMP},
       type = #{record.type,jdbcType=INTEGER},
       message = #{record.message,jdbcType=VARCHAR},
-      user_id = #{record.userId,jdbcType=INTEGER},
+      user_id = #{record.userId,jdbcType=VARCHAR},
       receiver = #{record.receiver,jdbcType=VARCHAR}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
@@ -286,7 +286,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:54:27 CST 2019.
+      This element was generated on Mon Sep 23 14:18:22 CST 2019.
     -->
     update mini_news
     <set>
@@ -306,7 +306,7 @@
         message = #{message,jdbcType=VARCHAR},
       </if>
       <if test="userId != null">
-        user_id = #{userId,jdbcType=INTEGER},
+        user_id = #{userId,jdbcType=VARCHAR},
       </if>
       <if test="receiver != null">
         receiver = #{receiver,jdbcType=VARCHAR},
@@ -318,7 +318,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:54:27 CST 2019.
+      This element was generated on Mon Sep 23 14:18:22 CST 2019.
     -->
     update mini_news
     set nick_name = #{nickName,jdbcType=VARCHAR},
@@ -326,7 +326,7 @@
       indate = #{indate,jdbcType=TIMESTAMP},
       type = #{type,jdbcType=INTEGER},
       message = #{message,jdbcType=VARCHAR},
-      user_id = #{userId,jdbcType=INTEGER},
+      user_id = #{userId,jdbcType=VARCHAR},
       receiver = #{receiver,jdbcType=VARCHAR}
     where id = #{id,jdbcType=INTEGER}
   </update>

+ 12 - 12
minigame/src/com/hssx/mapper/PrizeOpportunityMapper.java

@@ -9,70 +9,70 @@ public interface PrizeOpportunityMapper {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	long countByExample(PrizeOpportunityExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	int deleteByExample(PrizeOpportunityExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	int deleteByPrimaryKey(Integer id);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	int insert(PrizeOpportunity record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	int insertSelective(PrizeOpportunity record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	List<PrizeOpportunity> selectByExample(PrizeOpportunityExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	PrizeOpportunity selectByPrimaryKey(Integer id);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	int updateByExampleSelective(@Param("record") PrizeOpportunity record,
 			@Param("example") PrizeOpportunityExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	int updateByExample(@Param("record") PrizeOpportunity record, @Param("example") PrizeOpportunityExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	int updateByPrimaryKeySelective(PrizeOpportunity record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_opportunity
-	 * @mbg.generated  Thu Sep 19 20:14:16 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:20:05 CST 2019
 	 */
 	int updateByPrimaryKey(PrizeOpportunity record);
 
-	int selectCountByToday(@Param("uid")Integer uid);
+	int selectCountByToday(@Param("uid")String uid);
 }

+ 22 - 22
minigame/src/com/hssx/mapper/PrizeOpportunityMapper.xml

@@ -5,19 +5,19 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:14:16 CST 2019.
+      This element was generated on Mon Sep 23 14:20:05 CST 2019.
     -->
     <id column="id" jdbcType="INTEGER" property="id" />
     <result column="is_share" jdbcType="INTEGER" property="isShare" />
     <result column="opportunity_count" jdbcType="INTEGER" property="opportunityCount" />
     <result column="indate" jdbcType="TIMESTAMP" property="indate" />
-    <result column="uid" jdbcType="INTEGER" property="uid" />
+    <result column="uid" jdbcType="VARCHAR" property="uid" />
   </resultMap>
   <sql id="Example_Where_Clause">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:14:16 CST 2019.
+      This element was generated on Mon Sep 23 14:20:05 CST 2019.
     -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
@@ -51,7 +51,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:14:16 CST 2019.
+      This element was generated on Mon Sep 23 14:20:05 CST 2019.
     -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
@@ -85,7 +85,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:14:16 CST 2019.
+      This element was generated on Mon Sep 23 14:20:05 CST 2019.
     -->
     id, is_share, opportunity_count, indate, uid
   </sql>
@@ -93,7 +93,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:14:16 CST 2019.
+      This element was generated on Mon Sep 23 14:20:05 CST 2019.
     -->
     select
     <if test="distinct">
@@ -112,7 +112,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:14:16 CST 2019.
+      This element was generated on Mon Sep 23 14:20:05 CST 2019.
     -->
     select 
     <include refid="Base_Column_List" />
@@ -123,7 +123,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:14:16 CST 2019.
+      This element was generated on Mon Sep 23 14:20:05 CST 2019.
     -->
     delete from mini_prize_opportunity
     where id = #{id,jdbcType=INTEGER}
@@ -132,7 +132,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:14:16 CST 2019.
+      This element was generated on Mon Sep 23 14:20:05 CST 2019.
     -->
     delete from mini_prize_opportunity
     <if test="_parameter != null">
@@ -143,7 +143,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:14:16 CST 2019.
+      This element was generated on Mon Sep 23 14:20:05 CST 2019.
     -->
     <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
       SELECT LAST_INSERT_ID()
@@ -151,13 +151,13 @@
     insert into mini_prize_opportunity (is_share, opportunity_count, indate, 
       uid)
     values (#{isShare,jdbcType=INTEGER}, #{opportunityCount,jdbcType=INTEGER}, #{indate,jdbcType=TIMESTAMP}, 
-      #{uid,jdbcType=INTEGER})
+      #{uid,jdbcType=VARCHAR})
   </insert>
   <insert id="insertSelective" parameterType="com.hssx.entity.PrizeOpportunity">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:14:16 CST 2019.
+      This element was generated on Mon Sep 23 14:20:05 CST 2019.
     -->
     <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
       SELECT LAST_INSERT_ID()
@@ -188,7 +188,7 @@
         #{indate,jdbcType=TIMESTAMP},
       </if>
       <if test="uid != null">
-        #{uid,jdbcType=INTEGER},
+        #{uid,jdbcType=VARCHAR},
       </if>
     </trim>
   </insert>
@@ -196,7 +196,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:14:16 CST 2019.
+      This element was generated on Mon Sep 23 14:20:05 CST 2019.
     -->
     select count(*) from mini_prize_opportunity
     <if test="_parameter != null">
@@ -207,7 +207,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:14:16 CST 2019.
+      This element was generated on Mon Sep 23 14:20:05 CST 2019.
     -->
     update mini_prize_opportunity
     <set>
@@ -224,7 +224,7 @@
         indate = #{record.indate,jdbcType=TIMESTAMP},
       </if>
       <if test="record.uid != null">
-        uid = #{record.uid,jdbcType=INTEGER},
+        uid = #{record.uid,jdbcType=VARCHAR},
       </if>
     </set>
     <if test="_parameter != null">
@@ -235,14 +235,14 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:14:16 CST 2019.
+      This element was generated on Mon Sep 23 14:20:05 CST 2019.
     -->
     update mini_prize_opportunity
     set id = #{record.id,jdbcType=INTEGER},
       is_share = #{record.isShare,jdbcType=INTEGER},
       opportunity_count = #{record.opportunityCount,jdbcType=INTEGER},
       indate = #{record.indate,jdbcType=TIMESTAMP},
-      uid = #{record.uid,jdbcType=INTEGER}
+      uid = #{record.uid,jdbcType=VARCHAR}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -251,7 +251,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:14:16 CST 2019.
+      This element was generated on Mon Sep 23 14:20:05 CST 2019.
     -->
     update mini_prize_opportunity
     <set>
@@ -265,7 +265,7 @@
         indate = #{indate,jdbcType=TIMESTAMP},
       </if>
       <if test="uid != null">
-        uid = #{uid,jdbcType=INTEGER},
+        uid = #{uid,jdbcType=VARCHAR},
       </if>
     </set>
     where id = #{id,jdbcType=INTEGER}
@@ -274,13 +274,13 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 20:14:16 CST 2019.
+      This element was generated on Mon Sep 23 14:20:05 CST 2019.
     -->
     update mini_prize_opportunity
     set is_share = #{isShare,jdbcType=INTEGER},
       opportunity_count = #{opportunityCount,jdbcType=INTEGER},
       indate = #{indate,jdbcType=TIMESTAMP},
-      uid = #{uid,jdbcType=INTEGER}
+      uid = #{uid,jdbcType=VARCHAR}
     where id = #{id,jdbcType=INTEGER}
   </update>
   

+ 11 - 11
minigame/src/com/hssx/mapper/PrizeRecordMapper.java

@@ -9,67 +9,67 @@ public interface PrizeRecordMapper {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	long countByExample(PrizeRecordExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	int deleteByExample(PrizeRecordExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	int deleteByPrimaryKey(Integer id);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	int insert(PrizeRecord record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	int insertSelective(PrizeRecord record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	List<PrizeRecord> selectByExample(PrizeRecordExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	PrizeRecord selectByPrimaryKey(Integer id);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	int updateByExampleSelective(@Param("record") PrizeRecord record, @Param("example") PrizeRecordExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	int updateByExample(@Param("record") PrizeRecord record, @Param("example") PrizeRecordExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	int updateByPrimaryKeySelective(PrizeRecord record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
-	 * @mbg.generated  Thu Sep 19 19:28:22 CST 2019
+	 * @mbg.generated  Mon Sep 23 14:27:53 CST 2019
 	 */
 	int updateByPrimaryKey(PrizeRecord record);
 }

+ 22 - 22
minigame/src/com/hssx/mapper/PrizeRecordMapper.xml

@@ -5,10 +5,10 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 19:28:22 CST 2019.
+      This element was generated on Mon Sep 23 14:27:53 CST 2019.
     -->
     <id column="id" jdbcType="INTEGER" property="id" />
-    <result column="uid" jdbcType="INTEGER" property="uid" />
+    <result column="uid" jdbcType="VARCHAR" property="uid" />
     <result column="prize_id" jdbcType="INTEGER" property="prizeId" />
     <result column="indate" jdbcType="TIMESTAMP" property="indate" />
     <result column="phone" jdbcType="VARCHAR" property="phone" />
@@ -22,7 +22,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 19:28:22 CST 2019.
+      This element was generated on Mon Sep 23 14:27:53 CST 2019.
     -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
@@ -56,7 +56,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 19:28:22 CST 2019.
+      This element was generated on Mon Sep 23 14:27:53 CST 2019.
     -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
@@ -90,7 +90,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 19:28:22 CST 2019.
+      This element was generated on Mon Sep 23 14:27:53 CST 2019.
     -->
     id, uid, prize_id, indate, phone, user_name, voucher_id, type, prize, nick_name
   </sql>
@@ -98,7 +98,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 19:28:22 CST 2019.
+      This element was generated on Mon Sep 23 14:27:53 CST 2019.
     -->
     select
     <if test="distinct">
@@ -117,7 +117,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 19:28:22 CST 2019.
+      This element was generated on Mon Sep 23 14:27:53 CST 2019.
     -->
     select 
     <include refid="Base_Column_List" />
@@ -128,7 +128,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 19:28:22 CST 2019.
+      This element was generated on Mon Sep 23 14:27:53 CST 2019.
     -->
     delete from mini_prize_record
     where id = #{id,jdbcType=INTEGER}
@@ -137,7 +137,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 19:28:22 CST 2019.
+      This element was generated on Mon Sep 23 14:27:53 CST 2019.
     -->
     delete from mini_prize_record
     <if test="_parameter != null">
@@ -148,7 +148,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 19:28:22 CST 2019.
+      This element was generated on Mon Sep 23 14:27:53 CST 2019.
     -->
     <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
       SELECT LAST_INSERT_ID()
@@ -157,7 +157,7 @@
       phone, user_name, voucher_id, 
       type, prize, nick_name
       )
-    values (#{uid,jdbcType=INTEGER}, #{prizeId,jdbcType=INTEGER}, #{indate,jdbcType=TIMESTAMP}, 
+    values (#{uid,jdbcType=VARCHAR}, #{prizeId,jdbcType=INTEGER}, #{indate,jdbcType=TIMESTAMP}, 
       #{phone,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{voucherId,jdbcType=VARCHAR}, 
       #{type,jdbcType=INTEGER}, #{prize,jdbcType=VARCHAR}, #{nickName,jdbcType=VARCHAR}
       )
@@ -166,7 +166,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 19:28:22 CST 2019.
+      This element was generated on Mon Sep 23 14:27:53 CST 2019.
     -->
     <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
       SELECT LAST_INSERT_ID()
@@ -203,7 +203,7 @@
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="uid != null">
-        #{uid,jdbcType=INTEGER},
+        #{uid,jdbcType=VARCHAR},
       </if>
       <if test="prizeId != null">
         #{prizeId,jdbcType=INTEGER},
@@ -235,7 +235,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 19:28:22 CST 2019.
+      This element was generated on Mon Sep 23 14:27:53 CST 2019.
     -->
     select count(*) from mini_prize_record
     <if test="_parameter != null">
@@ -246,7 +246,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 19:28:22 CST 2019.
+      This element was generated on Mon Sep 23 14:27:53 CST 2019.
     -->
     update mini_prize_record
     <set>
@@ -254,7 +254,7 @@
         id = #{record.id,jdbcType=INTEGER},
       </if>
       <if test="record.uid != null">
-        uid = #{record.uid,jdbcType=INTEGER},
+        uid = #{record.uid,jdbcType=VARCHAR},
       </if>
       <if test="record.prizeId != null">
         prize_id = #{record.prizeId,jdbcType=INTEGER},
@@ -289,11 +289,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 19:28:22 CST 2019.
+      This element was generated on Mon Sep 23 14:27:53 CST 2019.
     -->
     update mini_prize_record
     set id = #{record.id,jdbcType=INTEGER},
-      uid = #{record.uid,jdbcType=INTEGER},
+      uid = #{record.uid,jdbcType=VARCHAR},
       prize_id = #{record.prizeId,jdbcType=INTEGER},
       indate = #{record.indate,jdbcType=TIMESTAMP},
       phone = #{record.phone,jdbcType=VARCHAR},
@@ -310,12 +310,12 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 19:28:22 CST 2019.
+      This element was generated on Mon Sep 23 14:27:53 CST 2019.
     -->
     update mini_prize_record
     <set>
       <if test="uid != null">
-        uid = #{uid,jdbcType=INTEGER},
+        uid = #{uid,jdbcType=VARCHAR},
       </if>
       <if test="prizeId != null">
         prize_id = #{prizeId,jdbcType=INTEGER},
@@ -348,10 +348,10 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 19:28:22 CST 2019.
+      This element was generated on Mon Sep 23 14:27:53 CST 2019.
     -->
     update mini_prize_record
-    set uid = #{uid,jdbcType=INTEGER},
+    set uid = #{uid,jdbcType=VARCHAR},
       prize_id = #{prizeId,jdbcType=INTEGER},
       indate = #{indate,jdbcType=TIMESTAMP},
       phone = #{phone,jdbcType=VARCHAR},

+ 56 - 77
minigame/src/com/hssx/mapper/UserMapper.java

@@ -6,91 +6,70 @@ import java.util.List;
 import org.apache.ibatis.annotations.Param;
 
 public interface UserMapper {
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    long countByExample(UserExample example);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    int deleteByExample(UserExample example);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	long countByExample(UserExample example);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    int deleteByPrimaryKey(Integer id);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	int deleteByExample(UserExample example);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    int insert(User record);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	int deleteByPrimaryKey(String id);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    int insertSelective(User record);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	int insert(User record);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    List<User> selectByExample(UserExample example);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	int insertSelective(User record);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    User selectByPrimaryKey(Integer id);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	List<User> selectByExample(UserExample example);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	User selectByPrimaryKey(String id);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    int updateByExample(@Param("record") User record, @Param("example") UserExample example);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    int updateByPrimaryKeySelective(User record);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	int updateByExample(@Param("record") User record, @Param("example") UserExample example);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user
-     *
-     * @mbg.generated Wed Sep 18 17:26:25 CST 2019
-     */
-    int updateByPrimaryKey(User record);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	int updateByPrimaryKeySelective(User record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user
+	 * @mbg.generated  Mon Sep 23 14:10:37 CST 2019
+	 */
+	int updateByPrimaryKey(User record);
 }

+ 26 - 26
minigame/src/com/hssx/mapper/UserMapper.xml

@@ -5,9 +5,9 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:26:25 CST 2019.
+      This element was generated on Mon Sep 23 14:10:37 CST 2019.
     -->
-    <id column="id" jdbcType="INTEGER" property="id" />
+    <id column="id" jdbcType="VARCHAR" property="id" />
     <result column="type" jdbcType="INTEGER" property="type" />
     <result column="voucher_id" jdbcType="VARCHAR" property="voucherId" />
     <result column="indate" jdbcType="TIMESTAMP" property="indate" />
@@ -18,7 +18,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:26:25 CST 2019.
+      This element was generated on Mon Sep 23 14:10:37 CST 2019.
     -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
@@ -52,7 +52,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:26:25 CST 2019.
+      This element was generated on Mon Sep 23 14:10:37 CST 2019.
     -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
@@ -86,7 +86,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:26:25 CST 2019.
+      This element was generated on Mon Sep 23 14:10:37 CST 2019.
     -->
     id, type, voucher_id, indate, header_pic, nick_name
   </sql>
@@ -94,7 +94,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:26:25 CST 2019.
+      This element was generated on Mon Sep 23 14:10:37 CST 2019.
     -->
     select
     <if test="distinct">
@@ -109,31 +109,31 @@
       order by ${orderByClause}
     </if>
   </select>
-  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:26:25 CST 2019.
+      This element was generated on Mon Sep 23 14:10:37 CST 2019.
     -->
     select 
     <include refid="Base_Column_List" />
     from mini_user
-    where id = #{id,jdbcType=INTEGER}
+    where id = #{id,jdbcType=VARCHAR}
   </select>
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:26:25 CST 2019.
+      This element was generated on Mon Sep 23 14:10:37 CST 2019.
     -->
     delete from mini_user
-    where id = #{id,jdbcType=INTEGER}
+    where id = #{id,jdbcType=VARCHAR}
   </delete>
   <delete id="deleteByExample" parameterType="com.hssx.entity.UserExample">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:26:25 CST 2019.
+      This element was generated on Mon Sep 23 14:10:37 CST 2019.
     -->
     delete from mini_user
     <if test="_parameter != null">
@@ -144,9 +144,9 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:26:25 CST 2019.
+      This element was generated on Mon Sep 23 14:10:37 CST 2019.
     -->
-    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
+    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.String">
       SELECT LAST_INSERT_ID()
     </selectKey>
     insert into mini_user (type, voucher_id, indate, 
@@ -158,9 +158,9 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:26:25 CST 2019.
+      This element was generated on Mon Sep 23 14:10:37 CST 2019.
     -->
-    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
+    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.String">
       SELECT LAST_INSERT_ID()
     </selectKey>
     insert into mini_user
@@ -203,7 +203,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:26:25 CST 2019.
+      This element was generated on Mon Sep 23 14:10:37 CST 2019.
     -->
     select count(*) from mini_user
     <if test="_parameter != null">
@@ -214,12 +214,12 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:26:25 CST 2019.
+      This element was generated on Mon Sep 23 14:10:37 CST 2019.
     -->
     update mini_user
     <set>
       <if test="record.id != null">
-        id = #{record.id,jdbcType=INTEGER},
+        id = #{record.id,jdbcType=VARCHAR},
       </if>
       <if test="record.type != null">
         type = #{record.type,jdbcType=INTEGER},
@@ -245,10 +245,10 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:26:25 CST 2019.
+      This element was generated on Mon Sep 23 14:10:37 CST 2019.
     -->
     update mini_user
-    set id = #{record.id,jdbcType=INTEGER},
+    set id = #{record.id,jdbcType=VARCHAR},
       type = #{record.type,jdbcType=INTEGER},
       voucher_id = #{record.voucherId,jdbcType=VARCHAR},
       indate = #{record.indate,jdbcType=TIMESTAMP},
@@ -262,7 +262,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:26:25 CST 2019.
+      This element was generated on Mon Sep 23 14:10:37 CST 2019.
     -->
     update mini_user
     <set>
@@ -282,13 +282,13 @@
         nick_name = #{nickName,jdbcType=VARCHAR},
       </if>
     </set>
-    where id = #{id,jdbcType=INTEGER}
+    where id = #{id,jdbcType=VARCHAR}
   </update>
   <update id="updateByPrimaryKey" parameterType="com.hssx.entity.User">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:26:25 CST 2019.
+      This element was generated on Mon Sep 23 14:10:37 CST 2019.
     -->
     update mini_user
     set type = #{type,jdbcType=INTEGER},
@@ -296,6 +296,6 @@
       indate = #{indate,jdbcType=TIMESTAMP},
       header_pic = #{headerPic,jdbcType=VARCHAR},
       nick_name = #{nickName,jdbcType=VARCHAR}
-    where id = #{id,jdbcType=INTEGER}
+    where id = #{id,jdbcType=VARCHAR}
   </update>
 </mapper>

+ 57 - 78
minigame/src/com/hssx/mapper/UserPrizeCountMapper.java

@@ -9,92 +9,71 @@ import org.apache.ibatis.annotations.Param;
 
 public interface UserPrizeCountMapper {
     /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    long countByExample(UserPrizeCountExample example);
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	long countByExample(UserPrizeCountExample example);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    int deleteByExample(UserPrizeCountExample example);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	int deleteByExample(UserPrizeCountExample example);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    int deleteByPrimaryKey(Integer id);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	int deleteByPrimaryKey(Integer id);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    int insert(UserPrizeCount record);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	int insert(UserPrizeCount record);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    int insertSelective(UserPrizeCount record);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	int insertSelective(UserPrizeCount record);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    List<UserPrizeCount> selectByExample(UserPrizeCountExample example);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	List<UserPrizeCount> selectByExample(UserPrizeCountExample example);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    UserPrizeCount selectByPrimaryKey(Integer id);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	UserPrizeCount selectByPrimaryKey(Integer id);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    int updateByExampleSelective(@Param("record") UserPrizeCount record, @Param("example") UserPrizeCountExample example);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	int updateByExampleSelective(@Param("record") UserPrizeCount record,
+			@Param("example") UserPrizeCountExample example);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    int updateByExample(@Param("record") UserPrizeCount record, @Param("example") UserPrizeCountExample example);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	int updateByExample(@Param("record") UserPrizeCount record, @Param("example") UserPrizeCountExample example);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    int updateByPrimaryKeySelective(UserPrizeCount record);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	int updateByPrimaryKeySelective(UserPrizeCount record);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_user_prize_count
-     *
-     * @mbg.generated Thu Sep 19 17:40:42 CST 2019
-     */
-    int updateByPrimaryKey(UserPrizeCount record);
-    
-    int selectCountByTodayByUid(@Param("userId")Integer userId);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_user_prize_count
+	 * @mbg.generated  Mon Sep 23 14:30:35 CST 2019
+	 */
+	int updateByPrimaryKey(UserPrizeCount record);
+
+	int selectCountByTodayByUid(@Param("userId")String userId);
 }

+ 22 - 22
minigame/src/com/hssx/mapper/UserPrizeCountMapper.xml

@@ -5,17 +5,17 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 17:40:42 CST 2019.
+      This element was generated on Mon Sep 23 14:30:35 CST 2019.
     -->
     <id column="id" jdbcType="INTEGER" property="id" />
-    <result column="user_id" jdbcType="INTEGER" property="userId" />
+    <result column="user_id" jdbcType="VARCHAR" property="userId" />
     <result column="indate" jdbcType="TIMESTAMP" property="indate" />
   </resultMap>
   <sql id="Example_Where_Clause">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 17:40:42 CST 2019.
+      This element was generated on Mon Sep 23 14:30:35 CST 2019.
     -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
@@ -49,7 +49,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 17:40:42 CST 2019.
+      This element was generated on Mon Sep 23 14:30:35 CST 2019.
     -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
@@ -83,7 +83,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 17:40:42 CST 2019.
+      This element was generated on Mon Sep 23 14:30:35 CST 2019.
     -->
     id, user_id, indate
   </sql>
@@ -91,7 +91,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 17:40:42 CST 2019.
+      This element was generated on Mon Sep 23 14:30:35 CST 2019.
     -->
     select
     <if test="distinct">
@@ -110,7 +110,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 17:40:42 CST 2019.
+      This element was generated on Mon Sep 23 14:30:35 CST 2019.
     -->
     select 
     <include refid="Base_Column_List" />
@@ -121,7 +121,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 17:40:42 CST 2019.
+      This element was generated on Mon Sep 23 14:30:35 CST 2019.
     -->
     delete from mini_user_prize_count
     where id = #{id,jdbcType=INTEGER}
@@ -130,7 +130,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 17:40:42 CST 2019.
+      This element was generated on Mon Sep 23 14:30:35 CST 2019.
     -->
     delete from mini_user_prize_count
     <if test="_parameter != null">
@@ -141,19 +141,19 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 17:40:42 CST 2019.
+      This element was generated on Mon Sep 23 14:30:35 CST 2019.
     -->
     <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
       SELECT LAST_INSERT_ID()
     </selectKey>
     insert into mini_user_prize_count (user_id, indate)
-    values (#{userId,jdbcType=INTEGER}, #{indate,jdbcType=TIMESTAMP})
+    values (#{userId,jdbcType=VARCHAR}, #{indate,jdbcType=TIMESTAMP})
   </insert>
   <insert id="insertSelective" parameterType="com.hssx.entity.UserPrizeCount">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 17:40:42 CST 2019.
+      This element was generated on Mon Sep 23 14:30:35 CST 2019.
     -->
     <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
       SELECT LAST_INSERT_ID()
@@ -169,7 +169,7 @@
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="userId != null">
-        #{userId,jdbcType=INTEGER},
+        #{userId,jdbcType=VARCHAR},
       </if>
       <if test="indate != null">
         #{indate,jdbcType=TIMESTAMP},
@@ -180,7 +180,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 17:40:42 CST 2019.
+      This element was generated on Mon Sep 23 14:30:35 CST 2019.
     -->
     select count(*) from mini_user_prize_count
     <if test="_parameter != null">
@@ -191,7 +191,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 17:40:42 CST 2019.
+      This element was generated on Mon Sep 23 14:30:35 CST 2019.
     -->
     update mini_user_prize_count
     <set>
@@ -199,7 +199,7 @@
         id = #{record.id,jdbcType=INTEGER},
       </if>
       <if test="record.userId != null">
-        user_id = #{record.userId,jdbcType=INTEGER},
+        user_id = #{record.userId,jdbcType=VARCHAR},
       </if>
       <if test="record.indate != null">
         indate = #{record.indate,jdbcType=TIMESTAMP},
@@ -213,11 +213,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 17:40:42 CST 2019.
+      This element was generated on Mon Sep 23 14:30:35 CST 2019.
     -->
     update mini_user_prize_count
     set id = #{record.id,jdbcType=INTEGER},
-      user_id = #{record.userId,jdbcType=INTEGER},
+      user_id = #{record.userId,jdbcType=VARCHAR},
       indate = #{record.indate,jdbcType=TIMESTAMP}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
@@ -227,12 +227,12 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 17:40:42 CST 2019.
+      This element was generated on Mon Sep 23 14:30:35 CST 2019.
     -->
     update mini_user_prize_count
     <set>
       <if test="userId != null">
-        user_id = #{userId,jdbcType=INTEGER},
+        user_id = #{userId,jdbcType=VARCHAR},
       </if>
       <if test="indate != null">
         indate = #{indate,jdbcType=TIMESTAMP},
@@ -244,10 +244,10 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Thu Sep 19 17:40:42 CST 2019.
+      This element was generated on Mon Sep 23 14:30:35 CST 2019.
     -->
     update mini_user_prize_count
-    set user_id = #{userId,jdbcType=INTEGER},
+    set user_id = #{userId,jdbcType=VARCHAR},
       indate = #{indate,jdbcType=TIMESTAMP}
     where id = #{id,jdbcType=INTEGER}
   </update>

+ 177 - 0
minigame/src/com/hssx/utils/Snowflake.java

@@ -0,0 +1,177 @@
+package com.hssx.utils;
+
+import java.net.InetAddress;
+import java.net.NetworkInterface;
+import java.net.SocketException;
+import java.net.UnknownHostException;
+import java.util.Enumeration;
+import java.util.Random;
+
+public class Snowflake {
+	// ==============================Fields===========================================
+	private final static long TWEPOCH = 1288834974657L;
+
+    // 机器标识位数
+    private final static long WORKER_ID_BITS = 5L;
+
+    // 数据中心标识位数
+    private final static long DATA_CENTER_ID_BITS = 5L;
+
+    // 机器ID最大值 31
+    private final static long MAX_WORKER_ID = -1L ^ (-1L << WORKER_ID_BITS);
+
+    // 数据中心ID最大值 31
+    private final static long MAX_DATA_CENTER_ID = -1L ^ (-1L << DATA_CENTER_ID_BITS);
+
+    // 毫秒内自增位
+    private final static long SEQUENCE_BITS = 12L;
+
+    // 机器ID偏左移12位
+    private final static long WORKER_ID_SHIFT = SEQUENCE_BITS;
+
+    private final static long DATA_CENTER_ID_SHIFT = SEQUENCE_BITS + WORKER_ID_BITS;
+
+    // 时间毫秒左移22位
+    private final static long TIMESTAMP_LEFT_SHIFT = SEQUENCE_BITS + WORKER_ID_BITS + DATA_CENTER_ID_BITS;
+
+    private final static long SEQUENCE_MASK = -1L ^ (-1L << SEQUENCE_BITS);
+
+    private long lastTimestamp = -1L;
+
+    private long sequence = 0L;
+    private final long workerId;
+    private final long dataCenterId;
+    private static volatile Snowflake snowflake = null;
+    private static Object lock = new Object();
+
+    //单例禁止new实例化
+    private Snowflake(long workerId, long dataCenterId) {
+        if (workerId > MAX_WORKER_ID || workerId < 0) {
+            workerId = getRandom();
+        }
+
+        if (dataCenterId > MAX_DATA_CENTER_ID || dataCenterId < 0) {
+
+            throw new IllegalArgumentException(String.format("%s 数据中心ID最大值 必须是 %d 到 %d 之间", dataCenterId, 0, MAX_DATA_CENTER_ID));
+        }
+        this.workerId = workerId;
+        this.dataCenterId = dataCenterId;
+    }
+
+    /**
+     * 获取单列
+     *
+     * @return
+     */
+    public static Snowflake getInstanceSnowflake() {
+        if (snowflake == null) {
+            synchronized (lock) {
+                long workerId ;
+                long dataCenterId = getRandom();
+                try {
+                    //第一次使用获取mac地址的
+                    workerId = getWorkerId();
+                } catch (Exception e) {
+                    workerId = getRandom();
+                }
+                snowflake = new Snowflake(workerId, dataCenterId);
+            }
+        }
+        return snowflake;
+    }
+
+    /**
+     * 生成1-31之间的随机数
+     *
+     * @return
+     */
+    private static long getRandom() {
+        int max = (int) (MAX_WORKER_ID);
+        int min = 1;
+        Random random = new Random();
+        long result = random.nextInt(max - min) + min;
+        return result;
+    }
+
+    public static String getSnowflakeId() throws Exception{
+        return Snowflake.getInstanceSnowflake().nextId()+"";
+    }
+    
+    private synchronized long nextId() throws Exception {
+        long timestamp = time();
+        if (timestamp < lastTimestamp) {
+            throw new Exception("时钟向后移动,拒绝生成id  " + (lastTimestamp - timestamp) + " milliseconds");
+        }
+
+        if (lastTimestamp == timestamp) {
+            // 当前毫秒内,则+1
+            sequence = (sequence + 1) & SEQUENCE_MASK;
+            if (sequence == 0) {
+                // 当前毫秒内计数满了,则等待下一秒
+                timestamp = tilNextMillis(lastTimestamp);
+            }
+        } else {
+            sequence = 0;
+        }
+        lastTimestamp = timestamp;
+
+        // ID偏移组合生成最终的ID,并返回ID
+        long nextId = ((timestamp - TWEPOCH) << TIMESTAMP_LEFT_SHIFT)
+            | (dataCenterId << DATA_CENTER_ID_SHIFT) | (workerId << WORKER_ID_SHIFT) | sequence;
+
+        return nextId;
+    }
+
+    private long tilNextMillis(final long lastTimestamp) {
+        long timestamp = this.time();
+        while (timestamp <= lastTimestamp) {
+            timestamp = this.time();
+        }
+        return timestamp;
+    }
+
+    private long time() {
+        return System.currentTimeMillis();
+    }
+
+    @SuppressWarnings("Duplicates")
+    private static long getWorkerId() throws SocketException, UnknownHostException, NullPointerException {
+        @SuppressWarnings("unused")
+        InetAddress ip = InetAddress.getLocalHost();
+
+        NetworkInterface network = null;
+        Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces();
+        while (en.hasMoreElements()) {
+            NetworkInterface nint = en.nextElement();
+            if (!nint.isLoopback() && nint.getHardwareAddress() != null) {
+                network = nint;
+                break;
+            }
+        }
+
+        @SuppressWarnings("ConstantConditions")
+        byte[] mac = network.getHardwareAddress();
+
+        Random rnd = new Random();
+        byte rndByte = (byte) (rnd.nextInt() & 0x000000FF);
+
+        // 取mac地址最后一位和随机数
+        return ((0x000000FF & (long) mac[mac.length - 1]) | (0x0000FF00 & (((long) rndByte) << 8))) >> 6;
+    }
+    
+    
+    public static void main(String[] args) {
+        long start = System.currentTimeMillis();
+            try {
+                for (int i = 0, len = 100000; i < len; i++) {
+                    //getSnowflakeId();
+                    System.out.println(getSnowflakeId());
+                }
+            } catch (Exception e) {
+
+            }
+        System.out.println("10万耗时: " + (System.currentTimeMillis()-start) + "ms");
+        
+    }
+
+}