5 anni fa
parent
commit
8915cec4d0
29 ha cambiato i file con 5847 aggiunte e 1086 eliminazioni
  1. BIN
      minigame/WebContent/WEB-INF/lib/cors-filter-2.6.jar
  2. BIN
      minigame/WebContent/WEB-INF/lib/java-property-utils-1.9.1.jar
  3. 30 0
      minigame/WebContent/WEB-INF/web.xml
  4. 1 0
      minigame/src/com/hssx/constant/Constant.java
  5. 40 20
      minigame/src/com/hssx/controller/NewsController.java
  6. 153 0
      minigame/src/com/hssx/controller/PrizeController.java
  7. 123 58
      minigame/src/com/hssx/controller/UserController.java
  8. 162 197
      minigame/src/com/hssx/entity/News.java
  9. 692 673
      minigame/src/com/hssx/entity/NewsExample.java
  10. 97 0
      minigame/src/com/hssx/entity/Prize.java
  11. 511 0
      minigame/src/com/hssx/entity/PrizeExample.java
  12. 137 0
      minigame/src/com/hssx/entity/PrizeOpportunity.java
  13. 543 0
      minigame/src/com/hssx/entity/PrizeOpportunityExample.java
  14. 214 0
      minigame/src/com/hssx/entity/PrizeRecord.java
  15. 842 0
      minigame/src/com/hssx/entity/PrizeRecordExample.java
  16. 104 0
      minigame/src/com/hssx/entity/UserPrizeCount.java
  17. 483 0
      minigame/src/com/hssx/entity/UserPrizeCountExample.java
  18. 56 77
      minigame/src/com/hssx/mapper/NewsMapper.java
  19. 37 20
      minigame/src/com/hssx/mapper/NewsMapper.xml
  20. 75 0
      minigame/src/com/hssx/mapper/PrizeMapper.java
  21. 271 0
      minigame/src/com/hssx/mapper/PrizeMapper.xml
  22. 96 0
      minigame/src/com/hssx/mapper/PrizeOpportunityMapper.java
  23. 271 0
      minigame/src/com/hssx/mapper/PrizeOpportunityMapper.xml
  24. 75 0
      minigame/src/com/hssx/mapper/PrizeRecordMapper.java
  25. 348 0
      minigame/src/com/hssx/mapper/PrizeRecordMapper.xml
  26. 100 0
      minigame/src/com/hssx/mapper/UserPrizeCountMapper.java
  27. 259 0
      minigame/src/com/hssx/mapper/UserPrizeCountMapper.xml
  28. 40 41
      minigame/src/com/hssx/service/impl/NewsServiceImpl.java
  29. 87 0
      minigame/src/com/hssx/utils/weiboUtil.java

BIN
minigame/WebContent/WEB-INF/lib/cors-filter-2.6.jar


BIN
minigame/WebContent/WEB-INF/lib/java-property-utils-1.9.1.jar


+ 30 - 0
minigame/WebContent/WEB-INF/web.xml

@@ -19,6 +19,36 @@
 	<listener>
 		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
 	</listener>
+	 <!--CORS 跨域资源访问-->
+  <filter>         
+   <filter-name>CORS</filter-name>  
+   <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>  
+   <init-param>  
+    <param-name>cors.allowOrigin</param-name>  
+       <param-value>*</param-value>  
+   </init-param>  
+   <init-param>  
+    <param-name>cors.supportedMethods</param-name>  
+       <param-value>GET, POST</param-value>  
+   </init-param>  
+   <init-param>  
+    <param-name>cors.supportedHeaders</param-name>  
+       <param-value>Accept, Origin, X-Requested-With, Content-Type, Last-Modified</param-value>  
+   </init-param>  
+   <init-param>  
+       <param-name>cors.exposedHeaders</param-name>  
+       <param-value>Set-Cookie</param-value>  
+   </init-param>  
+   <init-param>  
+       <param-name>cors.supportsCredentials</param-name>  
+       <param-value>true</param-value>  
+   </init-param>
+  </filter>  
+  <filter-mapping>
+      <filter-name>CORS</filter-name>
+      <url-pattern>/*</url-pattern>
+  </filter-mapping>
+  
 	<filter>
 		<filter-name>CharacterEncodingFilter</filter-name>
 		<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>

+ 1 - 0
minigame/src/com/hssx/constant/Constant.java

@@ -11,6 +11,7 @@ public class Constant {
     public static final String MICROBLOG_APPSECRET = "f39462b939a56ce6d846bf83e04c20b5";//微博的accesstoken
     public static final String WECHAT_APPID = "wx749c84daac654e1e";//微信的appid
     public static final String WECHAT_APPSECRET = "aacbd046ec1c790836f4f684c96fe585";//微信的appsecret
+    public static final String CALLBACKURL = "http://wx.ttkuaiban.com/minigame/index.html";//微博返回code的回调地址
 
 }
 

+ 40 - 20
minigame/src/com/hssx/controller/NewsController.java

@@ -6,13 +6,19 @@ import java.security.KeyManagementException;
 import java.security.NoSuchAlgorithmException;
 import java.security.NoSuchProviderException;
 
+import javax.servlet.http.HttpServletResponse;
+
+import org.springframework.beans.BeanUtils;
 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.ResponseBody;
 
+import com.hssx.entity.News;
+import com.hssx.entity.User;
 import com.hssx.entity.vo.NewsVO;
 import com.hssx.mapper.NewsMapper;
+import com.hssx.mapper.UserMapper;
 import com.hssx.service.NewsService;
 import com.hssx.utils.HttpRespMsg;
 
@@ -28,41 +34,55 @@ public class NewsController {
     NewsMapper newsMapper;
     @Autowired
     NewsService newsService;
+    @Autowired
+	UserMapper usermapper;
     
 
     /**
      * 添加分享信息
      *
      * 传递的参数:
-     * type: 0 -微信 1 -微博
-     * type=0时,所需其他参数: message:寄语 openid:用户openid
-     *
-     * type=1时,所需其他参数:message:寄语 uid:微博身份唯一凭证
+     * 		userId:用户id message:寄语
      * @return
+     * @throws IOException 
      */
     @RequestMapping("/addNews")
-    @ResponseBody
-    public HttpRespMsg addUserNews(NewsVO newsVO){
-        HttpRespMsg msg =  newsService.addUserNews(newsVO);
-        return msg;
-
+    public void addUserNews(NewsVO newsVO,HttpServletResponse response) throws IOException{
+        HttpRespMsg msg =  new HttpRespMsg();
+        User user = usermapper.selectByPrimaryKey(newsVO.getUserId());
+		// 微信授权的链接
+		try {
+			News news = new News();
+			BeanUtils.copyProperties(newsVO, news);
+			news.setNickName(user.getNickName());
+			news.setHeaderPic(user.getHeaderPic());
+			news.setType(user.getType());
+			newsMapper.insert(news);
+			msg.data = news;
+		} catch (Exception e) {
+			e.printStackTrace();
+		}
+        response.setContentType("application/json");
+		response.setCharacterEncoding("UTF-8");
+		response.getWriter().println(msg.toJSONStr());
     }
+    
     /**
-     * 微博授权登录
+     * 添加分享信息
      *
      * 传递的参数:
-     * type: 0 -微信 1 -微博
-     * type=0时,所需其他参数: message:寄语 openid:用户openid
-     *
-     * type=1时,所需其他参数:message:寄语 uid:微博身份唯一凭证
+     * 		id:海报消息id 
      * @return
+     * @throws IOException 
      */
-    @RequestMapping("/microblogLogin")
-    @ResponseBody
-    public HttpRespMsg microblogLogin(NewsVO newsVO) throws IOException, NoSuchAlgorithmException, NoSuchProviderException, KeyManagementException {
-        HttpRespMsg msg =  newsService.login(newsVO,"http://www.mini.game/index.html");
-        return msg;
-
+    @RequestMapping("/show")
+    public void showUserNews(News news,HttpServletResponse response) throws IOException{
+    	HttpRespMsg msg =  new HttpRespMsg();
+    	news = newsMapper.selectByPrimaryKey(news.getId());
+    	msg.data = news;
+    	response.setContentType("application/json");
+    	response.setCharacterEncoding("UTF-8");
+    	response.getWriter().println(msg.toJSONStr());
     }
 
 

+ 153 - 0
minigame/src/com/hssx/controller/PrizeController.java

@@ -0,0 +1,153 @@
+package com.hssx.controller;
+
+import java.io.IOException;
+import java.security.KeyManagementException;
+import java.security.NoSuchAlgorithmException;
+import java.security.NoSuchProviderException;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Random;
+
+import javax.servlet.http.HttpServletResponse;
+
+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.hssx.entity.Prize;
+import com.hssx.entity.PrizeExample;
+import com.hssx.entity.PrizeRecord;
+import com.hssx.entity.PrizeRecordExample;
+import com.hssx.entity.User;
+import com.hssx.entity.UserPrizeCountExample;
+import com.hssx.mapper.PrizeMapper;
+import com.hssx.mapper.PrizeRecordMapper;
+import com.hssx.mapper.UserMapper;
+import com.hssx.mapper.UserPrizeCountMapper;
+import com.hssx.utils.HttpRespMsg;
+import com.sun.javafx.collections.MappingChange.Map;
+
+@Controller
+@RequestMapping("/prize")
+public class PrizeController {
+
+	@Autowired
+	UserMapper usermapper;
+	@Autowired
+	PrizeMapper prizeMapper;
+	@Autowired
+	PrizeRecordMapper prizeRecordMapper;
+	@Autowired
+	UserPrizeCountMapper UserPrizeCountMapper;
+
+	/**
+	 * 小游戏抽奖 参数: userId:当前抽奖人id
+	 *
+	 * @return
+	 */
+	@RequestMapping(value = "/luckDraw")
+	public void luckDraw(Integer userId, HttpServletResponse response)
+			throws Exception, KeyManagementException, NoSuchAlgorithmException, NoSuchProviderException, IOException {
+		HttpRespMsg msg = new HttpRespMsg();
+		Integer count = -1;
+		PrizeRecord prizeRecord = new PrizeRecord();
+		User user = usermapper.selectByPrimaryKey(userId);
+		prizeRecord.setUid(user.getId());
+		prizeRecord.setType(user.getType());
+		prizeRecord.setVoucherId(user.getVoucherId());
+		UserPrizeCountExample uExp = new UserPrizeCountExample();
+		Integer luckDrawCount = UserPrizeCountMapper.selectCountByToday();
+		if (luckDrawCount < 2) {
+
+		}
+		synchronized (this) {
+			Random ran = new Random();
+			int num = ran.nextInt(9999);
+			Prize prize = prizeMapper.selectByPrimaryKey(num);
+			if (prize == null) {
+				count = -1;
+			} else {
+				if (prize.getPrizeLevel() == 0 && prize.getIsSelected() == 0) {
+					count = 0;
+					// prize.setIsSelected(1);
+					// prizeMapper.updateByPrimaryKeySelective(prize);
+					prizeRecord.setPrizeId(prize.getPrizeLevel());
+					prizeRecord.setPrize(prize.getName());
+					prizeRecordMapper.insert(prizeRecord);
+				} else if (prize.getPrizeLevel() == 1 && prize.getIsSelected() == 0) {
+					count = 1;
+					// prize.setIsSelected(1);
+					// prizeMapper.updateByPrimaryKeySelective(prize);
+					prizeRecord.setPrizeId(prize.getPrizeLevel());
+					prizeRecord.setPrize(prize.getName());
+					prizeRecordMapper.insert(prizeRecord);
+				} else if (prize.getPrizeLevel() == 2 && prize.getIsSelected() == 0) {
+					count = 2;
+					// prize.setIsSelected(1);
+					// prizeMapper.updateByPrimaryKeySelective(prize);
+					prizeRecord.setPrizeId(prize.getPrizeLevel());
+					prizeRecord.setPrize(prize.getName());
+					prizeRecordMapper.insert(prizeRecord);
+				} else if (prize.getPrizeLevel() == 3 && prize.getIsSelected() == 0) {
+					count = 3;
+					// prize.setIsSelected(1);
+					// prizeMapper.updateByPrimaryKeySelective(prize);
+					prizeRecord.setPrizeId(prize.getPrizeLevel());
+					prizeRecord.setPrize(prize.getName());
+					prizeRecordMapper.insert(prizeRecord);
+				} else if (prize.getPrizeLevel() == 4 && prize.getIsSelected() == 0) {
+					count = 4;
+					// prize.setIsSelected(1);
+					// prizeMapper.updateByPrimaryKeySelective(prize);
+					prizeRecord.setPrizeId(prize.getPrizeLevel());
+					prizeRecord.setPrize(prize.getName());
+					prizeRecordMapper.insert(prizeRecord);
+				} else {
+					count = -1;
+				}
+			}
+		}
+		HashMap<String, Object> map = new HashMap<String, Object>();
+		map.put("prizeLevel", count);
+		map.put("prizeRecord", prizeRecord);
+		msg.data = map;
+		response.setContentType("application/json");
+		response.setCharacterEncoding("UTF-8");
+		response.getWriter().println(msg.toJSONStr());
+
+	}
+
+	/**
+	 * 小游戏抽奖列表
+	 *
+	 * @return
+	 */
+	@RequestMapping(value = "/luckDrawList")
+	public void luckDrawList(HttpServletResponse response)
+			throws Exception, KeyManagementException, NoSuchAlgorithmException, NoSuchProviderException, IOException {
+		HttpRespMsg msg = new HttpRespMsg();
+		List<PrizeRecord> list = prizeRecordMapper.selectByExample(new PrizeRecordExample());
+		msg.data = list;
+		response.setContentType("application/json");
+		response.setCharacterEncoding("UTF-8");
+		response.getWriter().println(msg.toJSONStr());
+	}
+
+	/**
+	 * 小游戏抽奖填写用户信息 参数:phone:电话 username:姓名 id:中奖纪录id
+	 * 
+	 * @return
+	 */
+	@RequestMapping(value = "/luckDrawAddInfo")
+	public void luckDrawAddInfo(PrizeRecord prizeRecord, HttpServletResponse response)
+			throws Exception, KeyManagementException, NoSuchAlgorithmException, NoSuchProviderException, IOException {
+		HttpRespMsg msg = new HttpRespMsg();
+		prizeRecordMapper.updateByPrimaryKeySelective(prizeRecord);
+		msg.data = prizeRecord;
+		response.setContentType("application/json");
+		response.setCharacterEncoding("UTF-8");
+		response.getWriter().println(msg.toJSONStr());
+	}
+}

+ 123 - 58
minigame/src/com/hssx/controller/UserController.java

@@ -4,15 +4,18 @@ import java.io.IOException;
 import java.security.KeyManagementException;
 import java.security.NoSuchAlgorithmException;
 import java.security.NoSuchProviderException;
+import java.util.HashMap;
 
 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;
 import org.apache.commons.lang.StringEscapeUtils;
 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 org.springframework.web.bind.annotation.ResponseBody;
 
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONObject;
@@ -22,68 +25,130 @@ import com.hssx.entity.UserExample;
 import com.hssx.mapper.UserMapper;
 import com.hssx.utils.HttpKit;
 import com.hssx.utils.HttpRespMsg;
+import com.sun.javafx.collections.MappingChange.Map;
 
 @Controller
 @RequestMapping("/user")
 public class UserController {
 	@Autowired
 	UserMapper usermapper;
-	
+
 	/**
-     * 微信授权登录
-     * 参数:
-     * type:授权类型,0-微信,1-微博
-     * code:平台返回的code值
-     *
-     * @return
-     */
-    @RequestMapping(value = "weiXinLogin")
-    public void weiXinLogin(@RequestParam String code, @RequestParam Integer type,
-                              HttpServletResponse response) throws Exception, KeyManagementException, NoSuchAlgorithmException, NoSuchProviderException, IOException {
-        HttpRespMsg msg = new HttpRespMsg();
-        if (type == 0) {
-            String url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=" + Constant.WECHAT_APPID + "&secret=" + Constant.WECHAT_APPSECRET + "&code=" + code + "&grant_type=authorization_code";
-            String resp = HttpKit.get(url, true);
-            resp = StringEscapeUtils.unescapeJava(resp);
-            System.out.println(resp);
-            JSONObject json = (JSONObject) JSON.parse(resp);
-            if (!json.containsKey("errcode")) {
-                String openId = json.getString("openid");
-                String accessToken = json.getString("access_token");
-                User user = new User();
-                user.setType(type);
-                user.setVoucherId(openId);
-                String url1 = "https://api.weixin.qq.com/sns/userinfo?access_token="+accessToken+"&openid="+openId+"&lang=zh_CN";
-                //获取用户基本信息
-                 resp = HttpKit.get(url1, true);
-                resp = StringEscapeUtils.unescapeJava(resp);
-                System.out.println(resp);
-                 json = (JSONObject) JSON.parse(resp);
-//                 if(!json.containsKey("errcode")){
-                     user.setNickName(json.getString("nickname"));
-                     user.setHeaderPic(json.getString("headimgurl"));
-//                 }
-                     System.out.println(user+"user");
-                 UserExample example = new UserExample();
-                 example.createCriteria().andVoucherIdEqualTo(openId).andTypeEqualTo(type);
-                if (usermapper.countByExample(example)==0) {
-                	usermapper.insert(user);
-                } else {
-                    //列表中已包含当前用户,
-                    user = usermapper.selectByExample(example).get(0);
-                    user.setNickName(json.getString("nickname"));
-                    user.setHeaderPic(json.getString("headimgurl"));
-                    usermapper.updateByPrimaryKeySelective(user);
-                }
-                msg.data = user;
-            } else {
-                msg.setError(json.getString("errmsg"));
-            }
-        }else if(type == 1){
-        }
-        response.setContentType("application/json");
-        response.setCharacterEncoding("UTF-8");
-        response.getWriter().println(msg.toJSONStr());
-    }
-	
+	 * 微信授权登录 参数: type:授权类型,0-微信,1-微博 code:平台返回的code值
+	 *
+	 * @return
+	 */
+	@RequestMapping(value = "weiXinLogin")
+	public void weiXinLogin(@RequestParam String code, @RequestParam Integer type, HttpServletResponse response)
+			throws Exception, KeyManagementException, NoSuchAlgorithmException, NoSuchProviderException, IOException {
+		HttpRespMsg msg = new HttpRespMsg();
+		User user = new User();
+		user.setType(type);
+		UserExample example = new UserExample();
+		if (type == 0) {
+			String url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=" + Constant.WECHAT_APPID + "&secret="
+					+ Constant.WECHAT_APPSECRET + "&code=" + code + "&grant_type=authorization_code";
+			String resp = HttpKit.get(url, true);
+			resp = StringEscapeUtils.unescapeJava(resp);
+			System.out.println(resp);
+			JSONObject json = (JSONObject) JSON.parse(resp);
+			if (!json.containsKey("errcode")) {
+				String openId = json.getString("openid");
+				String accessToken = json.getString("access_token");
+				user.setVoucherId(openId);
+				String url1 = "https://api.weixin.qq.com/sns/userinfo?access_token=" + accessToken + "&openid=" + openId
+						+ "&lang=zh_CN";
+				// 获取用户基本信息
+				resp = HttpKit.get(url1, true);
+				resp = StringEscapeUtils.unescapeJava(resp);
+				System.out.println(resp);
+				json = (JSONObject) JSON.parse(resp);
+				if (!json.containsKey("errcode")) {
+					user.setNickName(json.getString("nickname"));
+					user.setHeaderPic(json.getString("headimgurl"));
+				}
+				System.out.println(user + "user");
+				example.createCriteria().andVoucherIdEqualTo(openId).andTypeEqualTo(type);
+				if (usermapper.countByExample(example) == 0) {
+					usermapper.insert(user);
+				} else {
+					// 列表中已包含当前用户,
+					user = usermapper.selectByExample(example).get(0);
+					if (null == user.getNickName() && null == user.getHeaderPic()) {
+						user.setNickName(json.getString("nickname"));
+						user.setHeaderPic(json.getString("headimgurl"));
+						usermapper.updateByPrimaryKeySelective(user);
+					}
+				}
+				msg.data = user;
+			} else {
+				msg.setError(json.getString("errmsg"));
+			}
+		} else if (type == 1) {
+			// String url2 =
+			// "https://api.weibo.com/oauth2/access_token?client_id=" +
+			// Constant.MICROBLOG_APPKEY
+			// + "&client_secret=" + Constant.MICROBLOG_APPSECRET +
+			// "&grant_type=authoriz";
+			// HashMap<String, String> token = new HashMap<String, String>();
+			// 本机运行时会报证书错误
+			/*
+			 * ProtocolSocketFactory fcty = new MySecureProtocolSocketFactory();
+			 * Protocol.registerProtocol("https", new Protocol("https", fcty,
+			 * 443));
+			 */
+			PostMethod postMethod = new PostMethod("https://api.weibo.com/oauth2/access_token");
+			postMethod.addParameter("grant_type", "authorization_code");
+			postMethod.addParameter("code", code);
+			postMethod.addParameter("redirect_uri", Constant.CALLBACKURL);
+			postMethod.addParameter("client_id", Constant.MICROBLOG_APPKEY);
+			postMethod.addParameter("client_secret", Constant.MICROBLOG_APPSECRET);
+			HttpClient client = new HttpClient();
+			try {
+				client.executeMethod(postMethod);
+				String responseDate = postMethod.getResponseBodyAsString();
+				if (!responseDate.equals("") && responseDate.indexOf("access_token") != -1) {
+					System.out.println("responseDate=======>"+responseDate);
+					JSONObject jsonData = JSONObject.parseObject(responseDate);
+					System.out.println("jsonData===>"+jsonData);
+					String uid = jsonData.getString("uid");
+					user.setVoucherId(uid);
+					String accessToken = jsonData.getString("access_token");
+					String url = "https://api.weibo.com/2/users/show.json?access_token=" + accessToken + "&uid=" + uid;
+					GetMethod getMethod = new GetMethod(url);
+					client = new HttpClient();
+					try {
+						client.executeMethod(getMethod);
+						responseDate = getMethod.getResponseBodyAsString();
+						jsonData = JSONObject.parseObject(responseDate);
+						System.out.println("返回User jsonData===>"+jsonData);
+						user.setNickName(jsonData.getString("name"));
+						user.setHeaderPic(jsonData.getString("profile_image_url"));
+						example.createCriteria().andVoucherIdEqualTo(uid).andTypeEqualTo(type);
+						if (usermapper.countByExample(example) == 0) {
+							usermapper.insert(user);
+						} else {
+							// 列表中已包含当前用户,
+							user = usermapper.selectByExample(example).get(0);
+							if (null == user.getNickName() && null == user.getHeaderPic()) {
+								user.setNickName(jsonData.getString("name"));
+								user.setHeaderPic(jsonData.getString("profile_image_url"));
+								usermapper.updateByPrimaryKeySelective(user);
+							}
+						}
+						System.out.println("微博user----->"+user);
+						msg.data = user;
+					} catch (Exception e) {
+						e.printStackTrace();
+					}
+				}
+
+			} catch (Exception e) {
+				e.printStackTrace();
+			}
+		}
+		response.setContentType("application/json");
+		response.setCharacterEncoding("UTF-8");
+		response.getWriter().println(msg.toJSONStr());
+	}
 }

+ 162 - 197
minigame/src/com/hssx/entity/News.java

@@ -3,201 +3,166 @@ package com.hssx.entity;
 import java.util.Date;
 
 public class News {
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column mini_news.id
-     *
-     * @mbg.generated Wed Sep 18 17:29:20 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 Wed Sep 18 17:29:20 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 Wed Sep 18 17:29:20 CST 2019
-     */
-    private String headerPic;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column mini_news.indate
-     *
-     * @mbg.generated Wed Sep 18 17:29:20 CST 2019
-     */
-    private Date indate;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column mini_news.type
-     *
-     * @mbg.generated Wed Sep 18 17:29:20 CST 2019
-     */
-    private Integer type;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column mini_news.message
-     *
-     * @mbg.generated Wed Sep 18 17:29:20 CST 2019
-     */
-    private String message;
-
-    /**
-     * 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 Wed Sep 18 17:29:20 CST 2019
-     */
-    public Integer getId() {
-        return id;
-    }
-
-    /**
-     * 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 Wed Sep 18 17:29:20 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_news.nick_name
-     *
-     * @return the value of mini_news.nick_name
-     *
-     * @mbg.generated Wed Sep 18 17:29:20 CST 2019
-     */
-    public String getNickName() {
-        return nickName;
-    }
-
-    /**
-     * 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 Wed Sep 18 17:29:20 CST 2019
-     */
-    public void setNickName(String nickName) {
-        this.nickName = nickName;
-    }
-
-    /**
-     * 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 Wed Sep 18 17:29:20 CST 2019
-     */
-    public String getHeaderPic() {
-        return headerPic;
-    }
-
-    /**
-     * 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 Wed Sep 18 17:29:20 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_news.indate
-     *
-     * @return the value of mini_news.indate
-     *
-     * @mbg.generated Wed Sep 18 17:29:20 CST 2019
-     */
-    public Date getIndate() {
-        return indate;
-    }
-
-    /**
-     * 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 Wed Sep 18 17:29:20 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_news.type
-     *
-     * @return the value of mini_news.type
-     *
-     * @mbg.generated Wed Sep 18 17:29:20 CST 2019
-     */
-    public Integer getType() {
-        return type;
-    }
-
-    /**
-     * 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 Wed Sep 18 17:29:20 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_news.message
-     *
-     * @return the value of mini_news.message
-     *
-     * @mbg.generated Wed Sep 18 17:29:20 CST 2019
-     */
-    public String getMessage() {
-        return message;
-    }
-
-    /**
-     * 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 Wed Sep 18 17:29:20 CST 2019
-     */
-    public void setMessage(String message) {
-        this.message = message;
-    }
+
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_news.id
+	 * @mbg.generated  Thu Sep 19 10:50:46 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 10:50:46 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 10:50:46 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 10:50:46 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 10:50:46 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 10:50:46 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 10:50:46 CST 2019
+	 */
+	private Integer userId;
+
+	/**
+	 * 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 10:50:46 CST 2019
+	 */
+	public Integer getId() {
+		return id;
+	}
+
+	/**
+	 * 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 10:50:46 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_news.nick_name
+	 * @return  the value of mini_news.nick_name
+	 * @mbg.generated  Thu Sep 19 10:50:46 CST 2019
+	 */
+	public String getNickName() {
+		return nickName;
+	}
+
+	/**
+	 * 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 10:50:46 CST 2019
+	 */
+	public void setNickName(String nickName) {
+		this.nickName = nickName;
+	}
+
+	/**
+	 * 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 10:50:46 CST 2019
+	 */
+	public String getHeaderPic() {
+		return headerPic;
+	}
+
+	/**
+	 * 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 10:50:46 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_news.indate
+	 * @return  the value of mini_news.indate
+	 * @mbg.generated  Thu Sep 19 10:50:46 CST 2019
+	 */
+	public Date getIndate() {
+		return indate;
+	}
+
+	/**
+	 * 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 10:50:46 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_news.type
+	 * @return  the value of mini_news.type
+	 * @mbg.generated  Thu Sep 19 10:50:46 CST 2019
+	 */
+	public Integer getType() {
+		return type;
+	}
+
+	/**
+	 * 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 10:50:46 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_news.message
+	 * @return  the value of mini_news.message
+	 * @mbg.generated  Thu Sep 19 10:50:46 CST 2019
+	 */
+	public String getMessage() {
+		return message;
+	}
+
+	/**
+	 * 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 10:50:46 CST 2019
+	 */
+	public void setMessage(String message) {
+		this.message = message;
+	}
+
+	/**
+	 * 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 10:50:46 CST 2019
+	 */
+	public Integer 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 10:50:46 CST 2019
+	 */
+	public void setUserId(Integer userId) {
+		this.userId = userId;
+	}
 }

File diff suppressed because it is too large
+ 692 - 673
minigame/src/com/hssx/entity/NewsExample.java


+ 97 - 0
minigame/src/com/hssx/entity/Prize.java

@@ -0,0 +1,97 @@
+package com.hssx.entity;
+
+public class Prize {
+
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize.id
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	private Integer id;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize.name
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	private String name;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize.prize_level
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	private Integer prizeLevel;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column mini_prize.is_selected
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	private Integer isSelected;
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize.id
+	 * @return  the value of mini_prize.id
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	public Integer getId() {
+		return id;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize.id
+	 * @param id  the value for mini_prize.id
+	 * @mbg.generated  Thu Sep 19 17:01:40 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_prize.name
+	 * @return  the value of mini_prize.name
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	public String getName() {
+		return name;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize.name
+	 * @param name  the value for mini_prize.name
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize.prize_level
+	 * @return  the value of mini_prize.prize_level
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	public Integer getPrizeLevel() {
+		return prizeLevel;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize.prize_level
+	 * @param prizeLevel  the value for mini_prize.prize_level
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	public void setPrizeLevel(Integer prizeLevel) {
+		this.prizeLevel = prizeLevel;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column mini_prize.is_selected
+	 * @return  the value of mini_prize.is_selected
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	public Integer getIsSelected() {
+		return isSelected;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column mini_prize.is_selected
+	 * @param isSelected  the value for mini_prize.is_selected
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	public void setIsSelected(Integer isSelected) {
+		this.isSelected = isSelected;
+	}
+}

+ 511 - 0
minigame/src/com/hssx/entity/PrizeExample.java

@@ -0,0 +1,511 @@
+package com.hssx.entity;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class PrizeExample {
+    /**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	protected String orderByClause;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	protected boolean distinct;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	protected List<Criteria> oredCriteria;
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	public PrizeExample() {
+		oredCriteria = new ArrayList<Criteria>();
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 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_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	public String getOrderByClause() {
+		return orderByClause;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 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_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	public boolean isDistinct() {
+		return distinct;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	public List<Criteria> getOredCriteria() {
+		return oredCriteria;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 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_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 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_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 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_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 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_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 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_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 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 andNameIsNull() {
+			addCriterion("name is null");
+			return (Criteria) this;
+		}
+
+		public Criteria andNameIsNotNull() {
+			addCriterion("name is not null");
+			return (Criteria) this;
+		}
+
+		public Criteria andNameEqualTo(String value) {
+			addCriterion("name =", value, "name");
+			return (Criteria) this;
+		}
+
+		public Criteria andNameNotEqualTo(String value) {
+			addCriterion("name <>", value, "name");
+			return (Criteria) this;
+		}
+
+		public Criteria andNameGreaterThan(String value) {
+			addCriterion("name >", value, "name");
+			return (Criteria) this;
+		}
+
+		public Criteria andNameGreaterThanOrEqualTo(String value) {
+			addCriterion("name >=", value, "name");
+			return (Criteria) this;
+		}
+
+		public Criteria andNameLessThan(String value) {
+			addCriterion("name <", value, "name");
+			return (Criteria) this;
+		}
+
+		public Criteria andNameLessThanOrEqualTo(String value) {
+			addCriterion("name <=", value, "name");
+			return (Criteria) this;
+		}
+
+		public Criteria andNameLike(String value) {
+			addCriterion("name like", value, "name");
+			return (Criteria) this;
+		}
+
+		public Criteria andNameNotLike(String value) {
+			addCriterion("name not like", value, "name");
+			return (Criteria) this;
+		}
+
+		public Criteria andNameIn(List<String> values) {
+			addCriterion("name in", values, "name");
+			return (Criteria) this;
+		}
+
+		public Criteria andNameNotIn(List<String> values) {
+			addCriterion("name not in", values, "name");
+			return (Criteria) this;
+		}
+
+		public Criteria andNameBetween(String value1, String value2) {
+			addCriterion("name between", value1, value2, "name");
+			return (Criteria) this;
+		}
+
+		public Criteria andNameNotBetween(String value1, String value2) {
+			addCriterion("name not between", value1, value2, "name");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeLevelIsNull() {
+			addCriterion("prize_level is null");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeLevelIsNotNull() {
+			addCriterion("prize_level is not null");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeLevelEqualTo(Integer value) {
+			addCriterion("prize_level =", value, "prizeLevel");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeLevelNotEqualTo(Integer value) {
+			addCriterion("prize_level <>", value, "prizeLevel");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeLevelGreaterThan(Integer value) {
+			addCriterion("prize_level >", value, "prizeLevel");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeLevelGreaterThanOrEqualTo(Integer value) {
+			addCriterion("prize_level >=", value, "prizeLevel");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeLevelLessThan(Integer value) {
+			addCriterion("prize_level <", value, "prizeLevel");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeLevelLessThanOrEqualTo(Integer value) {
+			addCriterion("prize_level <=", value, "prizeLevel");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeLevelIn(List<Integer> values) {
+			addCriterion("prize_level in", values, "prizeLevel");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeLevelNotIn(List<Integer> values) {
+			addCriterion("prize_level not in", values, "prizeLevel");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeLevelBetween(Integer value1, Integer value2) {
+			addCriterion("prize_level between", value1, value2, "prizeLevel");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeLevelNotBetween(Integer value1, Integer value2) {
+			addCriterion("prize_level not between", value1, value2, "prizeLevel");
+			return (Criteria) this;
+		}
+
+		public Criteria andIsSelectedIsNull() {
+			addCriterion("is_selected is null");
+			return (Criteria) this;
+		}
+
+		public Criteria andIsSelectedIsNotNull() {
+			addCriterion("is_selected is not null");
+			return (Criteria) this;
+		}
+
+		public Criteria andIsSelectedEqualTo(Integer value) {
+			addCriterion("is_selected =", value, "isSelected");
+			return (Criteria) this;
+		}
+
+		public Criteria andIsSelectedNotEqualTo(Integer value) {
+			addCriterion("is_selected <>", value, "isSelected");
+			return (Criteria) this;
+		}
+
+		public Criteria andIsSelectedGreaterThan(Integer value) {
+			addCriterion("is_selected >", value, "isSelected");
+			return (Criteria) this;
+		}
+
+		public Criteria andIsSelectedGreaterThanOrEqualTo(Integer value) {
+			addCriterion("is_selected >=", value, "isSelected");
+			return (Criteria) this;
+		}
+
+		public Criteria andIsSelectedLessThan(Integer value) {
+			addCriterion("is_selected <", value, "isSelected");
+			return (Criteria) this;
+		}
+
+		public Criteria andIsSelectedLessThanOrEqualTo(Integer value) {
+			addCriterion("is_selected <=", value, "isSelected");
+			return (Criteria) this;
+		}
+
+		public Criteria andIsSelectedIn(List<Integer> values) {
+			addCriterion("is_selected in", values, "isSelected");
+			return (Criteria) this;
+		}
+
+		public Criteria andIsSelectedNotIn(List<Integer> values) {
+			addCriterion("is_selected not in", values, "isSelected");
+			return (Criteria) this;
+		}
+
+		public Criteria andIsSelectedBetween(Integer value1, Integer value2) {
+			addCriterion("is_selected between", value1, value2, "isSelected");
+			return (Criteria) this;
+		}
+
+		public Criteria andIsSelectedNotBetween(Integer value1, Integer value2) {
+			addCriterion("is_selected not between", value1, value2, "isSelected");
+			return (Criteria) this;
+		}
+	}
+
+	/**
+	 * This class was generated by MyBatis Generator. This class corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 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_prize
+     *
+     * @mbg.generated do_not_delete_during_merge Thu Sep 19 15:10:00 CST 2019
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+}

+ 137 - 0
minigame/src/com/hssx/entity/PrizeOpportunity.java

@@ -0,0 +1,137 @@
+package com.hssx.entity;
+
+import java.util.Date;
+
+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 18:52:38 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 18:52:38 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 18:52:38 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 18:52:38 CST 2019
+     */
+    private Date indate;
+
+    /**
+     * 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 18:52:38 CST 2019
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * 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 18:52:38 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_prize_opportunity.is_share
+     *
+     * @return the value of mini_prize_opportunity.is_share
+     *
+     * @mbg.generated Thu Sep 19 18:52:38 CST 2019
+     */
+    public Integer getIsShare() {
+        return isShare;
+    }
+
+    /**
+     * 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 18:52:38 CST 2019
+     */
+    public void setIsShare(Integer isShare) {
+        this.isShare = isShare;
+    }
+
+    /**
+     * 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 18:52:38 CST 2019
+     */
+    public Integer getOpportunityCount() {
+        return opportunityCount;
+    }
+
+    /**
+     * 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 18:52:38 CST 2019
+     */
+    public void setOpportunityCount(Integer opportunityCount) {
+        this.opportunityCount = opportunityCount;
+    }
+
+    /**
+     * 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 18:52:38 CST 2019
+     */
+    public Date getIndate() {
+        return indate;
+    }
+
+    /**
+     * 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 18:52:38 CST 2019
+     */
+    public void setIndate(Date indate) {
+        this.indate = indate;
+    }
+}

+ 543 - 0
minigame/src/com/hssx/entity/PrizeOpportunityExample.java

@@ -0,0 +1,543 @@
+package com.hssx.entity;
+
+import java.util.ArrayList;
+import java.util.Date;
+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 18:52:38 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 18:52:38 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 18:52:38 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 18:52:38 CST 2019
+     */
+    public PrizeOpportunityExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table mini_prize_opportunity
+     *
+     * @mbg.generated Thu Sep 19 18:52:38 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_prize_opportunity
+     *
+     * @mbg.generated Thu Sep 19 18:52:38 CST 2019
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table mini_prize_opportunity
+     *
+     * @mbg.generated Thu Sep 19 18:52:38 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_prize_opportunity
+     *
+     * @mbg.generated Thu Sep 19 18:52:38 CST 2019
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table mini_prize_opportunity
+     *
+     * @mbg.generated Thu Sep 19 18:52:38 CST 2019
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table mini_prize_opportunity
+     *
+     * @mbg.generated Thu Sep 19 18:52:38 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_prize_opportunity
+     *
+     * @mbg.generated Thu Sep 19 18:52:38 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_prize_opportunity
+     *
+     * @mbg.generated Thu Sep 19 18:52:38 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_prize_opportunity
+     *
+     * @mbg.generated Thu Sep 19 18:52:38 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_prize_opportunity
+     *
+     * @mbg.generated Thu Sep 19 18:52:38 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_prize_opportunity
+     *
+     * @mbg.generated Thu Sep 19 18:52:38 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 andIsShareIsNull() {
+            addCriterion("is_share is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsShareIsNotNull() {
+            addCriterion("is_share is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsShareEqualTo(Integer value) {
+            addCriterion("is_share =", value, "isShare");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsShareNotEqualTo(Integer value) {
+            addCriterion("is_share <>", value, "isShare");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsShareGreaterThan(Integer value) {
+            addCriterion("is_share >", value, "isShare");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsShareGreaterThanOrEqualTo(Integer value) {
+            addCriterion("is_share >=", value, "isShare");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsShareLessThan(Integer value) {
+            addCriterion("is_share <", value, "isShare");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsShareLessThanOrEqualTo(Integer value) {
+            addCriterion("is_share <=", value, "isShare");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsShareIn(List<Integer> values) {
+            addCriterion("is_share in", values, "isShare");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsShareNotIn(List<Integer> values) {
+            addCriterion("is_share not in", values, "isShare");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsShareBetween(Integer value1, Integer value2) {
+            addCriterion("is_share between", value1, value2, "isShare");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsShareNotBetween(Integer value1, Integer value2) {
+            addCriterion("is_share not between", value1, value2, "isShare");
+            return (Criteria) this;
+        }
+
+        public Criteria andOpportunityCountIsNull() {
+            addCriterion("opportunity_count is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andOpportunityCountIsNotNull() {
+            addCriterion("opportunity_count is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andOpportunityCountEqualTo(Integer value) {
+            addCriterion("opportunity_count =", value, "opportunityCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andOpportunityCountNotEqualTo(Integer value) {
+            addCriterion("opportunity_count <>", value, "opportunityCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andOpportunityCountGreaterThan(Integer value) {
+            addCriterion("opportunity_count >", value, "opportunityCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andOpportunityCountGreaterThanOrEqualTo(Integer value) {
+            addCriterion("opportunity_count >=", value, "opportunityCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andOpportunityCountLessThan(Integer value) {
+            addCriterion("opportunity_count <", value, "opportunityCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andOpportunityCountLessThanOrEqualTo(Integer value) {
+            addCriterion("opportunity_count <=", value, "opportunityCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andOpportunityCountIn(List<Integer> values) {
+            addCriterion("opportunity_count in", values, "opportunityCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andOpportunityCountNotIn(List<Integer> values) {
+            addCriterion("opportunity_count not in", values, "opportunityCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andOpportunityCountBetween(Integer value1, Integer value2) {
+            addCriterion("opportunity_count between", value1, value2, "opportunityCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andOpportunityCountNotBetween(Integer value1, Integer value2) {
+            addCriterion("opportunity_count not between", value1, value2, "opportunityCount");
+            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_prize_opportunity
+     *
+     * @mbg.generated do_not_delete_during_merge Thu Sep 19 18:52:38 CST 2019
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table mini_prize_opportunity
+     *
+     * @mbg.generated Thu Sep 19 18:52:38 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);
+        }
+    }
+}

+ 214 - 0
minigame/src/com/hssx/entity/PrizeRecord.java

@@ -0,0 +1,214 @@
+package com.hssx.entity;
+
+import java.util.Date;
+
+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 15:45:57 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 15:45:57 CST 2019
+	 */
+	private Integer 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 15:45:57 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 15:45:57 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 15:45:57 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 15:45:57 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 15:45:57 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 15:45:57 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 15:45:57 CST 2019
+	 */
+	private String prize;
+
+	/**
+	 * 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 15:45:57 CST 2019
+	 */
+	public Integer getId() {
+		return id;
+	}
+
+	/**
+	 * 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 15:45:57 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_prize_record.uid
+	 * @return  the value of mini_prize_record.uid
+	 * @mbg.generated  Thu Sep 19 15:45:57 CST 2019
+	 */
+	public Integer 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 15:45:57 CST 2019
+	 */
+	public void setUid(Integer 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 15:45:57 CST 2019
+	 */
+	public Integer getPrizeId() {
+		return prizeId;
+	}
+
+	/**
+	 * 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 15:45:57 CST 2019
+	 */
+	public void setPrizeId(Integer prizeId) {
+		this.prizeId = prizeId;
+	}
+
+	/**
+	 * 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 15:45:57 CST 2019
+	 */
+	public Date getIndate() {
+		return indate;
+	}
+
+	/**
+	 * 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 15:45:57 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_prize_record.phone
+	 * @return  the value of mini_prize_record.phone
+	 * @mbg.generated  Thu Sep 19 15:45:57 CST 2019
+	 */
+	public String getPhone() {
+		return phone;
+	}
+
+	/**
+	 * 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 15:45:57 CST 2019
+	 */
+	public void setPhone(String phone) {
+		this.phone = phone;
+	}
+
+	/**
+	 * 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 15:45:57 CST 2019
+	 */
+	public String getUserName() {
+		return userName;
+	}
+
+	/**
+	 * 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 15:45:57 CST 2019
+	 */
+	public void setUserName(String userName) {
+		this.userName = userName;
+	}
+
+	/**
+	 * 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 15:45:57 CST 2019
+	 */
+	public String getVoucherId() {
+		return voucherId;
+	}
+
+	/**
+	 * 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 15:45:57 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_prize_record.type
+	 * @return  the value of mini_prize_record.type
+	 * @mbg.generated  Thu Sep 19 15:45:57 CST 2019
+	 */
+	public Integer getType() {
+		return type;
+	}
+
+	/**
+	 * 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 15:45:57 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_prize_record.prize
+	 * @return  the value of mini_prize_record.prize
+	 * @mbg.generated  Thu Sep 19 15:45:57 CST 2019
+	 */
+	public String getPrize() {
+		return prize;
+	}
+
+	/**
+	 * 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 15:45:57 CST 2019
+	 */
+	public void setPrize(String prize) {
+		this.prize = prize;
+	}
+}

+ 842 - 0
minigame/src/com/hssx/entity/PrizeRecordExample.java

@@ -0,0 +1,842 @@
+package com.hssx.entity;
+
+import java.util.ArrayList;
+import java.util.Date;
+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 15:45:57 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 15:45:57 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 15:45:57 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 15:45:57 CST 2019
+	 */
+	public PrizeRecordExample() {
+		oredCriteria = new ArrayList<Criteria>();
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
+	 * @mbg.generated  Thu Sep 19 15:45:57 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_prize_record
+	 * @mbg.generated  Thu Sep 19 15:45:57 CST 2019
+	 */
+	public String getOrderByClause() {
+		return orderByClause;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
+	 * @mbg.generated  Thu Sep 19 15:45:57 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_prize_record
+	 * @mbg.generated  Thu Sep 19 15:45:57 CST 2019
+	 */
+	public boolean isDistinct() {
+		return distinct;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
+	 * @mbg.generated  Thu Sep 19 15:45:57 CST 2019
+	 */
+	public List<Criteria> getOredCriteria() {
+		return oredCriteria;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize_record
+	 * @mbg.generated  Thu Sep 19 15:45:57 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_prize_record
+	 * @mbg.generated  Thu Sep 19 15:45:57 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_prize_record
+	 * @mbg.generated  Thu Sep 19 15:45:57 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_prize_record
+	 * @mbg.generated  Thu Sep 19 15:45:57 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_prize_record
+	 * @mbg.generated  Thu Sep 19 15:45:57 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_prize_record
+	 * @mbg.generated  Thu Sep 19 15:45:57 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 andUidIsNull() {
+			addCriterion("uid is null");
+			return (Criteria) this;
+		}
+
+		public Criteria andUidIsNotNull() {
+			addCriterion("uid is not null");
+			return (Criteria) this;
+		}
+
+		public Criteria andUidEqualTo(Integer value) {
+			addCriterion("uid =", value, "uid");
+			return (Criteria) this;
+		}
+
+		public Criteria andUidNotEqualTo(Integer value) {
+			addCriterion("uid <>", value, "uid");
+			return (Criteria) this;
+		}
+
+		public Criteria andUidGreaterThan(Integer value) {
+			addCriterion("uid >", value, "uid");
+			return (Criteria) this;
+		}
+
+		public Criteria andUidGreaterThanOrEqualTo(Integer value) {
+			addCriterion("uid >=", value, "uid");
+			return (Criteria) this;
+		}
+
+		public Criteria andUidLessThan(Integer value) {
+			addCriterion("uid <", value, "uid");
+			return (Criteria) this;
+		}
+
+		public Criteria andUidLessThanOrEqualTo(Integer value) {
+			addCriterion("uid <=", value, "uid");
+			return (Criteria) this;
+		}
+
+		public Criteria andUidIn(List<Integer> values) {
+			addCriterion("uid in", values, "uid");
+			return (Criteria) this;
+		}
+
+		public Criteria andUidNotIn(List<Integer> values) {
+			addCriterion("uid not in", values, "uid");
+			return (Criteria) this;
+		}
+
+		public Criteria andUidBetween(Integer value1, Integer value2) {
+			addCriterion("uid between", value1, value2, "uid");
+			return (Criteria) this;
+		}
+
+		public Criteria andUidNotBetween(Integer value1, Integer value2) {
+			addCriterion("uid not between", value1, value2, "uid");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeIdIsNull() {
+			addCriterion("prize_id is null");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeIdIsNotNull() {
+			addCriterion("prize_id is not null");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeIdEqualTo(Integer value) {
+			addCriterion("prize_id =", value, "prizeId");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeIdNotEqualTo(Integer value) {
+			addCriterion("prize_id <>", value, "prizeId");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeIdGreaterThan(Integer value) {
+			addCriterion("prize_id >", value, "prizeId");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeIdGreaterThanOrEqualTo(Integer value) {
+			addCriterion("prize_id >=", value, "prizeId");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeIdLessThan(Integer value) {
+			addCriterion("prize_id <", value, "prizeId");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeIdLessThanOrEqualTo(Integer value) {
+			addCriterion("prize_id <=", value, "prizeId");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeIdIn(List<Integer> values) {
+			addCriterion("prize_id in", values, "prizeId");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeIdNotIn(List<Integer> values) {
+			addCriterion("prize_id not in", values, "prizeId");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeIdBetween(Integer value1, Integer value2) {
+			addCriterion("prize_id between", value1, value2, "prizeId");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeIdNotBetween(Integer value1, Integer value2) {
+			addCriterion("prize_id not between", value1, value2, "prizeId");
+			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;
+		}
+
+		public Criteria andPhoneIsNull() {
+			addCriterion("phone is null");
+			return (Criteria) this;
+		}
+
+		public Criteria andPhoneIsNotNull() {
+			addCriterion("phone is not null");
+			return (Criteria) this;
+		}
+
+		public Criteria andPhoneEqualTo(String value) {
+			addCriterion("phone =", value, "phone");
+			return (Criteria) this;
+		}
+
+		public Criteria andPhoneNotEqualTo(String value) {
+			addCriterion("phone <>", value, "phone");
+			return (Criteria) this;
+		}
+
+		public Criteria andPhoneGreaterThan(String value) {
+			addCriterion("phone >", value, "phone");
+			return (Criteria) this;
+		}
+
+		public Criteria andPhoneGreaterThanOrEqualTo(String value) {
+			addCriterion("phone >=", value, "phone");
+			return (Criteria) this;
+		}
+
+		public Criteria andPhoneLessThan(String value) {
+			addCriterion("phone <", value, "phone");
+			return (Criteria) this;
+		}
+
+		public Criteria andPhoneLessThanOrEqualTo(String value) {
+			addCriterion("phone <=", value, "phone");
+			return (Criteria) this;
+		}
+
+		public Criteria andPhoneLike(String value) {
+			addCriterion("phone like", value, "phone");
+			return (Criteria) this;
+		}
+
+		public Criteria andPhoneNotLike(String value) {
+			addCriterion("phone not like", value, "phone");
+			return (Criteria) this;
+		}
+
+		public Criteria andPhoneIn(List<String> values) {
+			addCriterion("phone in", values, "phone");
+			return (Criteria) this;
+		}
+
+		public Criteria andPhoneNotIn(List<String> values) {
+			addCriterion("phone not in", values, "phone");
+			return (Criteria) this;
+		}
+
+		public Criteria andPhoneBetween(String value1, String value2) {
+			addCriterion("phone between", value1, value2, "phone");
+			return (Criteria) this;
+		}
+
+		public Criteria andPhoneNotBetween(String value1, String value2) {
+			addCriterion("phone not between", value1, value2, "phone");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserNameIsNull() {
+			addCriterion("user_name is null");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserNameIsNotNull() {
+			addCriterion("user_name is not null");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserNameEqualTo(String value) {
+			addCriterion("user_name =", value, "userName");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserNameNotEqualTo(String value) {
+			addCriterion("user_name <>", value, "userName");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserNameGreaterThan(String value) {
+			addCriterion("user_name >", value, "userName");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserNameGreaterThanOrEqualTo(String value) {
+			addCriterion("user_name >=", value, "userName");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserNameLessThan(String value) {
+			addCriterion("user_name <", value, "userName");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserNameLessThanOrEqualTo(String value) {
+			addCriterion("user_name <=", value, "userName");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserNameLike(String value) {
+			addCriterion("user_name like", value, "userName");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserNameNotLike(String value) {
+			addCriterion("user_name not like", value, "userName");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserNameIn(List<String> values) {
+			addCriterion("user_name in", values, "userName");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserNameNotIn(List<String> values) {
+			addCriterion("user_name not in", values, "userName");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserNameBetween(String value1, String value2) {
+			addCriterion("user_name between", value1, value2, "userName");
+			return (Criteria) this;
+		}
+
+		public Criteria andUserNameNotBetween(String value1, String value2) {
+			addCriterion("user_name not between", value1, value2, "userName");
+			return (Criteria) this;
+		}
+
+		public Criteria andVoucherIdIsNull() {
+			addCriterion("voucher_id is null");
+			return (Criteria) this;
+		}
+
+		public Criteria andVoucherIdIsNotNull() {
+			addCriterion("voucher_id is not null");
+			return (Criteria) this;
+		}
+
+		public Criteria andVoucherIdEqualTo(String value) {
+			addCriterion("voucher_id =", value, "voucherId");
+			return (Criteria) this;
+		}
+
+		public Criteria andVoucherIdNotEqualTo(String value) {
+			addCriterion("voucher_id <>", value, "voucherId");
+			return (Criteria) this;
+		}
+
+		public Criteria andVoucherIdGreaterThan(String value) {
+			addCriterion("voucher_id >", value, "voucherId");
+			return (Criteria) this;
+		}
+
+		public Criteria andVoucherIdGreaterThanOrEqualTo(String value) {
+			addCriterion("voucher_id >=", value, "voucherId");
+			return (Criteria) this;
+		}
+
+		public Criteria andVoucherIdLessThan(String value) {
+			addCriterion("voucher_id <", value, "voucherId");
+			return (Criteria) this;
+		}
+
+		public Criteria andVoucherIdLessThanOrEqualTo(String value) {
+			addCriterion("voucher_id <=", value, "voucherId");
+			return (Criteria) this;
+		}
+
+		public Criteria andVoucherIdLike(String value) {
+			addCriterion("voucher_id like", value, "voucherId");
+			return (Criteria) this;
+		}
+
+		public Criteria andVoucherIdNotLike(String value) {
+			addCriterion("voucher_id not like", value, "voucherId");
+			return (Criteria) this;
+		}
+
+		public Criteria andVoucherIdIn(List<String> values) {
+			addCriterion("voucher_id in", values, "voucherId");
+			return (Criteria) this;
+		}
+
+		public Criteria andVoucherIdNotIn(List<String> values) {
+			addCriterion("voucher_id not in", values, "voucherId");
+			return (Criteria) this;
+		}
+
+		public Criteria andVoucherIdBetween(String value1, String value2) {
+			addCriterion("voucher_id between", value1, value2, "voucherId");
+			return (Criteria) this;
+		}
+
+		public Criteria andVoucherIdNotBetween(String value1, String value2) {
+			addCriterion("voucher_id not between", value1, value2, "voucherId");
+			return (Criteria) this;
+		}
+
+		public Criteria andTypeIsNull() {
+			addCriterion("type is null");
+			return (Criteria) this;
+		}
+
+		public Criteria andTypeIsNotNull() {
+			addCriterion("type is not null");
+			return (Criteria) this;
+		}
+
+		public Criteria andTypeEqualTo(Integer value) {
+			addCriterion("type =", value, "type");
+			return (Criteria) this;
+		}
+
+		public Criteria andTypeNotEqualTo(Integer value) {
+			addCriterion("type <>", value, "type");
+			return (Criteria) this;
+		}
+
+		public Criteria andTypeGreaterThan(Integer value) {
+			addCriterion("type >", value, "type");
+			return (Criteria) this;
+		}
+
+		public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
+			addCriterion("type >=", value, "type");
+			return (Criteria) this;
+		}
+
+		public Criteria andTypeLessThan(Integer value) {
+			addCriterion("type <", value, "type");
+			return (Criteria) this;
+		}
+
+		public Criteria andTypeLessThanOrEqualTo(Integer value) {
+			addCriterion("type <=", value, "type");
+			return (Criteria) this;
+		}
+
+		public Criteria andTypeIn(List<Integer> values) {
+			addCriterion("type in", values, "type");
+			return (Criteria) this;
+		}
+
+		public Criteria andTypeNotIn(List<Integer> values) {
+			addCriterion("type not in", values, "type");
+			return (Criteria) this;
+		}
+
+		public Criteria andTypeBetween(Integer value1, Integer value2) {
+			addCriterion("type between", value1, value2, "type");
+			return (Criteria) this;
+		}
+
+		public Criteria andTypeNotBetween(Integer value1, Integer value2) {
+			addCriterion("type not between", value1, value2, "type");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeIsNull() {
+			addCriterion("prize is null");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeIsNotNull() {
+			addCriterion("prize is not null");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeEqualTo(String value) {
+			addCriterion("prize =", value, "prize");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeNotEqualTo(String value) {
+			addCriterion("prize <>", value, "prize");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeGreaterThan(String value) {
+			addCriterion("prize >", value, "prize");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeGreaterThanOrEqualTo(String value) {
+			addCriterion("prize >=", value, "prize");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeLessThan(String value) {
+			addCriterion("prize <", value, "prize");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeLessThanOrEqualTo(String value) {
+			addCriterion("prize <=", value, "prize");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeLike(String value) {
+			addCriterion("prize like", value, "prize");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeNotLike(String value) {
+			addCriterion("prize not like", value, "prize");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeIn(List<String> values) {
+			addCriterion("prize in", values, "prize");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeNotIn(List<String> values) {
+			addCriterion("prize not in", values, "prize");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeBetween(String value1, String value2) {
+			addCriterion("prize between", value1, value2, "prize");
+			return (Criteria) this;
+		}
+
+		public Criteria andPrizeNotBetween(String value1, String value2) {
+			addCriterion("prize not between", value1, value2, "prize");
+			return (Criteria) this;
+		}
+	}
+
+	/**
+	 * This class was generated by MyBatis Generator. This class corresponds to the database table mini_prize_record
+	 * @mbg.generated  Thu Sep 19 15:45:57 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_prize_record
+     *
+     * @mbg.generated do_not_delete_during_merge Thu Sep 19 15:11:17 CST 2019
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+}

+ 104 - 0
minigame/src/com/hssx/entity/UserPrizeCount.java

@@ -0,0 +1,104 @@
+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.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 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 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 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 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 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;
+    }
+}

+ 483 - 0
minigame/src/com/hssx/entity/UserPrizeCountExample.java

@@ -0,0 +1,483 @@
+package com.hssx.entity;
+
+import java.util.ArrayList;
+import java.util.Date;
+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 class was generated by MyBatis Generator.
+     * This class corresponds to the database table mini_user_prize_count
+     *
+     * @mbg.generated do_not_delete_during_merge Thu Sep 19 17:40:42 CST 2019
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            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);
+        }
+    }
+}

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

@@ -6,91 +6,70 @@ import java.util.List;
 import org.apache.ibatis.annotations.Param;
 
 public interface NewsMapper {
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_news
-     *
-     * @mbg.generated Wed Sep 18 17:29:20 CST 2019
-     */
-    long countByExample(NewsExample example);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_news
-     *
-     * @mbg.generated Wed Sep 18 17:29:20 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 10:50:46 CST 2019
+	 */
+	long countByExample(NewsExample example);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_news
-     *
-     * @mbg.generated Wed Sep 18 17:29:20 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 10:50:46 CST 2019
+	 */
+	int deleteByExample(NewsExample example);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_news
-     *
-     * @mbg.generated Wed Sep 18 17:29:20 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 10:50:46 CST 2019
+	 */
+	int deleteByPrimaryKey(Integer id);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_news
-     *
-     * @mbg.generated Wed Sep 18 17:29:20 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 10:50:46 CST 2019
+	 */
+	int insert(News record);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_news
-     *
-     * @mbg.generated Wed Sep 18 17:29:20 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 10:50:46 CST 2019
+	 */
+	int insertSelective(News record);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_news
-     *
-     * @mbg.generated Wed Sep 18 17:29:20 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 10:50:46 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 Wed Sep 18 17:29:20 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 10:50:46 CST 2019
+	 */
+	News selectByPrimaryKey(Integer id);
 
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table mini_news
-     *
-     * @mbg.generated Wed Sep 18 17:29:20 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 10:50:46 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 Wed Sep 18 17:29:20 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 10:50:46 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 Wed Sep 18 17:29:20 CST 2019
-     */
-    int updateByPrimaryKey(News record);
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_news
+	 * @mbg.generated  Thu Sep 19 10:50:46 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 10:50:46 CST 2019
+	 */
+	int updateByPrimaryKey(News record);
 }

+ 37 - 20
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 Wed Sep 18 17:29:20 CST 2019.
+      This element was generated on Thu Sep 19 10:50:46 CST 2019.
     -->
     <id column="id" jdbcType="INTEGER" property="id" />
     <result column="nick_name" jdbcType="VARCHAR" property="nickName" />
@@ -13,12 +13,13 @@
     <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" />
   </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 Wed Sep 18 17:29:20 CST 2019.
+      This element was generated on Thu Sep 19 10:50:46 CST 2019.
     -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
@@ -52,7 +53,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:29:20 CST 2019.
+      This element was generated on Thu Sep 19 10:50:46 CST 2019.
     -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
@@ -86,15 +87,15 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:29:20 CST 2019.
+      This element was generated on Thu Sep 19 10:50:46 CST 2019.
     -->
-    id, nick_name, header_pic, indate, type, message
+    id, nick_name, header_pic, indate, type, message, user_id
   </sql>
   <select id="selectByExample" parameterType="com.hssx.entity.NewsExample" 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:29:20 CST 2019.
+      This element was generated on Thu Sep 19 10:50:46 CST 2019.
     -->
     select
     <if test="distinct">
@@ -113,7 +114,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:29:20 CST 2019.
+      This element was generated on Thu Sep 19 10:50:46 CST 2019.
     -->
     select 
     <include refid="Base_Column_List" />
@@ -124,7 +125,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:29:20 CST 2019.
+      This element was generated on Thu Sep 19 10:50:46 CST 2019.
     -->
     delete from mini_news
     where id = #{id,jdbcType=INTEGER}
@@ -133,7 +134,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:29:20 CST 2019.
+      This element was generated on Thu Sep 19 10:50:46 CST 2019.
     -->
     delete from mini_news
     <if test="_parameter != null">
@@ -144,21 +145,23 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:29:20 CST 2019.
+      This element was generated on Thu Sep 19 10:50:46 CST 2019.
     -->
     <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
       SELECT LAST_INSERT_ID()
     </selectKey>
     insert into mini_news (nick_name, header_pic, indate, 
-      type, message)
+      type, message, user_id
+      )
     values (#{nickName,jdbcType=VARCHAR}, #{headerPic,jdbcType=VARCHAR}, #{indate,jdbcType=TIMESTAMP}, 
-      #{type,jdbcType=INTEGER}, #{message,jdbcType=VARCHAR})
+      #{type,jdbcType=INTEGER}, #{message,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER}
+      )
   </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 Wed Sep 18 17:29:20 CST 2019.
+      This element was generated on Thu Sep 19 10:50:46 CST 2019.
     -->
     <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
       SELECT LAST_INSERT_ID()
@@ -180,6 +183,9 @@
       <if test="message != null">
         message,
       </if>
+      <if test="userId != null">
+        user_id,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="nickName != null">
@@ -197,13 +203,16 @@
       <if test="message != null">
         #{message,jdbcType=VARCHAR},
       </if>
+      <if test="userId != null">
+        #{userId,jdbcType=INTEGER},
+      </if>
     </trim>
   </insert>
   <select id="countByExample" parameterType="com.hssx.entity.NewsExample" resultType="java.lang.Long">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:29:20 CST 2019.
+      This element was generated on Thu Sep 19 10:50:46 CST 2019.
     -->
     select count(*) from mini_news
     <if test="_parameter != null">
@@ -214,7 +223,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:29:20 CST 2019.
+      This element was generated on Thu Sep 19 10:50:46 CST 2019.
     -->
     update mini_news
     <set>
@@ -236,6 +245,9 @@
       <if test="record.message != null">
         message = #{record.message,jdbcType=VARCHAR},
       </if>
+      <if test="record.userId != null">
+        user_id = #{record.userId,jdbcType=INTEGER},
+      </if>
     </set>
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
@@ -245,7 +257,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:29:20 CST 2019.
+      This element was generated on Thu Sep 19 10:50:46 CST 2019.
     -->
     update mini_news
     set id = #{record.id,jdbcType=INTEGER},
@@ -253,7 +265,8 @@
       header_pic = #{record.headerPic,jdbcType=VARCHAR},
       indate = #{record.indate,jdbcType=TIMESTAMP},
       type = #{record.type,jdbcType=INTEGER},
-      message = #{record.message,jdbcType=VARCHAR}
+      message = #{record.message,jdbcType=VARCHAR},
+      user_id = #{record.userId,jdbcType=INTEGER}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -262,7 +275,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:29:20 CST 2019.
+      This element was generated on Thu Sep 19 10:50:46 CST 2019.
     -->
     update mini_news
     <set>
@@ -281,6 +294,9 @@
       <if test="message != null">
         message = #{message,jdbcType=VARCHAR},
       </if>
+      <if test="userId != null">
+        user_id = #{userId,jdbcType=INTEGER},
+      </if>
     </set>
     where id = #{id,jdbcType=INTEGER}
   </update>
@@ -288,14 +304,15 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Sep 18 17:29:20 CST 2019.
+      This element was generated on Thu Sep 19 10:50:46 CST 2019.
     -->
     update mini_news
     set nick_name = #{nickName,jdbcType=VARCHAR},
       header_pic = #{headerPic,jdbcType=VARCHAR},
       indate = #{indate,jdbcType=TIMESTAMP},
       type = #{type,jdbcType=INTEGER},
-      message = #{message,jdbcType=VARCHAR}
+      message = #{message,jdbcType=VARCHAR},
+      user_id = #{userId,jdbcType=INTEGER}
     where id = #{id,jdbcType=INTEGER}
   </update>
 </mapper>

+ 75 - 0
minigame/src/com/hssx/mapper/PrizeMapper.java

@@ -0,0 +1,75 @@
+package com.hssx.mapper;
+
+import com.hssx.entity.Prize;
+import com.hssx.entity.PrizeExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface PrizeMapper {
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	long countByExample(PrizeExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	int deleteByExample(PrizeExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	int deleteByPrimaryKey(Integer id);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	int insert(Prize record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	int insertSelective(Prize record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	List<Prize> selectByExample(PrizeExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	Prize selectByPrimaryKey(Integer id);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	int updateByExampleSelective(@Param("record") Prize record, @Param("example") PrizeExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	int updateByExample(@Param("record") Prize record, @Param("example") PrizeExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	int updateByPrimaryKeySelective(Prize record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table mini_prize
+	 * @mbg.generated  Thu Sep 19 17:01:40 CST 2019
+	 */
+	int updateByPrimaryKey(Prize record);
+}

+ 271 - 0
minigame/src/com/hssx/mapper/PrizeMapper.xml

@@ -0,0 +1,271 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.hssx.mapper.PrizeMapper">
+  <resultMap id="BaseResultMap" type="com.hssx.entity.Prize">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 17:01:40 CST 2019.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="name" jdbcType="VARCHAR" property="name" />
+    <result column="prize_level" jdbcType="INTEGER" property="prizeLevel" />
+    <result column="is_selected" jdbcType="INTEGER" property="isSelected" />
+  </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:01:40 CST 2019.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_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:01:40 CST 2019.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 17:01:40 CST 2019.
+    -->
+    id, name, prize_level, is_selected
+  </sql>
+  <select id="selectByExample" parameterType="com.hssx.entity.PrizeExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 17:01:40 CST 2019.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from mini_prize
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 17:01:40 CST 2019.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from mini_prize
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 17:01:40 CST 2019.
+    -->
+    delete from mini_prize
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.hssx.entity.PrizeExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 17:01:40 CST 2019.
+    -->
+    delete from mini_prize
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.hssx.entity.Prize">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 17:01:40 CST 2019.
+    -->
+    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
+      SELECT LAST_INSERT_ID()
+    </selectKey>
+    insert into mini_prize (name, prize_level, is_selected
+      )
+    values (#{name,jdbcType=VARCHAR}, #{prizeLevel,jdbcType=INTEGER}, #{isSelected,jdbcType=INTEGER}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.hssx.entity.Prize">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 17:01:40 CST 2019.
+    -->
+    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
+      SELECT LAST_INSERT_ID()
+    </selectKey>
+    insert into mini_prize
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="name != null">
+        name,
+      </if>
+      <if test="prizeLevel != null">
+        prize_level,
+      </if>
+      <if test="isSelected != null">
+        is_selected,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="name != null">
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="prizeLevel != null">
+        #{prizeLevel,jdbcType=INTEGER},
+      </if>
+      <if test="isSelected != null">
+        #{isSelected,jdbcType=INTEGER},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.hssx.entity.PrizeExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 17:01:40 CST 2019.
+    -->
+    select count(*) from mini_prize
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 17:01:40 CST 2019.
+    -->
+    update mini_prize
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=INTEGER},
+      </if>
+      <if test="record.name != null">
+        name = #{record.name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.prizeLevel != null">
+        prize_level = #{record.prizeLevel,jdbcType=INTEGER},
+      </if>
+      <if test="record.isSelected != null">
+        is_selected = #{record.isSelected,jdbcType=INTEGER},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 17:01:40 CST 2019.
+    -->
+    update mini_prize
+    set id = #{record.id,jdbcType=INTEGER},
+      name = #{record.name,jdbcType=VARCHAR},
+      prize_level = #{record.prizeLevel,jdbcType=INTEGER},
+      is_selected = #{record.isSelected,jdbcType=INTEGER}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.hssx.entity.Prize">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 17:01:40 CST 2019.
+    -->
+    update mini_prize
+    <set>
+      <if test="name != null">
+        name = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="prizeLevel != null">
+        prize_level = #{prizeLevel,jdbcType=INTEGER},
+      </if>
+      <if test="isSelected != null">
+        is_selected = #{isSelected,jdbcType=INTEGER},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.hssx.entity.Prize">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 17:01:40 CST 2019.
+    -->
+    update mini_prize
+    set name = #{name,jdbcType=VARCHAR},
+      prize_level = #{prizeLevel,jdbcType=INTEGER},
+      is_selected = #{isSelected,jdbcType=INTEGER}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 96 - 0
minigame/src/com/hssx/mapper/PrizeOpportunityMapper.java

@@ -0,0 +1,96 @@
+package com.hssx.mapper;
+
+import com.hssx.entity.PrizeOpportunity;
+import com.hssx.entity.PrizeOpportunityExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+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 18:52:38 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 18:52:38 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 18:52:38 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 18:52:38 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 18:52:38 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 18:52:38 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 18:52:38 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 18:52:38 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 18:52:38 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 18:52:38 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 18:52:38 CST 2019
+     */
+    int updateByPrimaryKey(PrizeOpportunity record);
+}

+ 271 - 0
minigame/src/com/hssx/mapper/PrizeOpportunityMapper.xml

@@ -0,0 +1,271 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.hssx.mapper.PrizeOpportunityMapper">
+  <resultMap id="BaseResultMap" type="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 18:52:38 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" />
+  </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 18:52:38 CST 2019.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_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 18:52:38 CST 2019.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 18:52:38 CST 2019.
+    -->
+    id, is_share, opportunity_count, indate
+  </sql>
+  <select id="selectByExample" parameterType="com.hssx.entity.PrizeOpportunityExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 18:52:38 CST 2019.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from mini_prize_opportunity
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 18:52:38 CST 2019.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from mini_prize_opportunity
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 18:52:38 CST 2019.
+    -->
+    delete from mini_prize_opportunity
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.hssx.entity.PrizeOpportunityExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 18:52:38 CST 2019.
+    -->
+    delete from mini_prize_opportunity
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" 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 18:52:38 CST 2019.
+    -->
+    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
+      SELECT LAST_INSERT_ID()
+    </selectKey>
+    insert into mini_prize_opportunity (is_share, opportunity_count, indate
+      )
+    values (#{isShare,jdbcType=INTEGER}, #{opportunityCount,jdbcType=INTEGER}, #{indate,jdbcType=TIMESTAMP}
+      )
+  </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 18:52:38 CST 2019.
+    -->
+    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
+      SELECT LAST_INSERT_ID()
+    </selectKey>
+    insert into mini_prize_opportunity
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="isShare != null">
+        is_share,
+      </if>
+      <if test="opportunityCount != null">
+        opportunity_count,
+      </if>
+      <if test="indate != null">
+        indate,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="isShare != null">
+        #{isShare,jdbcType=INTEGER},
+      </if>
+      <if test="opportunityCount != null">
+        #{opportunityCount,jdbcType=INTEGER},
+      </if>
+      <if test="indate != null">
+        #{indate,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.hssx.entity.PrizeOpportunityExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 18:52:38 CST 2019.
+    -->
+    select count(*) from mini_prize_opportunity
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 18:52:38 CST 2019.
+    -->
+    update mini_prize_opportunity
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=INTEGER},
+      </if>
+      <if test="record.isShare != null">
+        is_share = #{record.isShare,jdbcType=INTEGER},
+      </if>
+      <if test="record.opportunityCount != null">
+        opportunity_count = #{record.opportunityCount,jdbcType=INTEGER},
+      </if>
+      <if test="record.indate != null">
+        indate = #{record.indate,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 18:52:38 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}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" 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 18:52:38 CST 2019.
+    -->
+    update mini_prize_opportunity
+    <set>
+      <if test="isShare != null">
+        is_share = #{isShare,jdbcType=INTEGER},
+      </if>
+      <if test="opportunityCount != null">
+        opportunity_count = #{opportunityCount,jdbcType=INTEGER},
+      </if>
+      <if test="indate != null">
+        indate = #{indate,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" 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 18:52:38 CST 2019.
+    -->
+    update mini_prize_opportunity
+    set is_share = #{isShare,jdbcType=INTEGER},
+      opportunity_count = #{opportunityCount,jdbcType=INTEGER},
+      indate = #{indate,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 75 - 0
minigame/src/com/hssx/mapper/PrizeRecordMapper.java

@@ -0,0 +1,75 @@
+package com.hssx.mapper;
+
+import com.hssx.entity.PrizeRecord;
+import com.hssx.entity.PrizeRecordExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+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 15:45:57 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 15:45:57 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 15:45:57 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 15:45:57 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 15:45:57 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 15:45:57 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 15:45:57 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 15:45:57 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 15:45:57 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 15:45:57 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 15:45:57 CST 2019
+	 */
+	int updateByPrimaryKey(PrizeRecord record);
+}

+ 348 - 0
minigame/src/com/hssx/mapper/PrizeRecordMapper.xml

@@ -0,0 +1,348 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.hssx.mapper.PrizeRecordMapper">
+  <resultMap id="BaseResultMap" type="com.hssx.entity.PrizeRecord">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 15:45:57 CST 2019.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="uid" jdbcType="INTEGER" property="uid" />
+    <result column="prize_id" jdbcType="INTEGER" property="prizeId" />
+    <result column="indate" jdbcType="TIMESTAMP" property="indate" />
+    <result column="phone" jdbcType="VARCHAR" property="phone" />
+    <result column="user_name" jdbcType="VARCHAR" property="userName" />
+    <result column="voucher_id" jdbcType="VARCHAR" property="voucherId" />
+    <result column="type" jdbcType="INTEGER" property="type" />
+    <result column="prize" jdbcType="VARCHAR" property="prize" />
+  </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 15:45:57 CST 2019.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_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 15:45:57 CST 2019.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 15:45:57 CST 2019.
+    -->
+    id, uid, prize_id, indate, phone, user_name, voucher_id, type, prize
+  </sql>
+  <select id="selectByExample" parameterType="com.hssx.entity.PrizeRecordExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 15:45:57 CST 2019.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from mini_prize_record
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 15:45:57 CST 2019.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from mini_prize_record
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 15:45:57 CST 2019.
+    -->
+    delete from mini_prize_record
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.hssx.entity.PrizeRecordExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 15:45:57 CST 2019.
+    -->
+    delete from mini_prize_record
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.hssx.entity.PrizeRecord">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 15:45:57 CST 2019.
+    -->
+    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
+      SELECT LAST_INSERT_ID()
+    </selectKey>
+    insert into mini_prize_record (uid, prize_id, indate, 
+      phone, user_name, voucher_id, 
+      type, prize)
+    values (#{uid,jdbcType=INTEGER}, #{prizeId,jdbcType=INTEGER}, #{indate,jdbcType=TIMESTAMP}, 
+      #{phone,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{voucherId,jdbcType=VARCHAR}, 
+      #{type,jdbcType=INTEGER}, #{prize,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.hssx.entity.PrizeRecord">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 15:45:57 CST 2019.
+    -->
+    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
+      SELECT LAST_INSERT_ID()
+    </selectKey>
+    insert into mini_prize_record
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="uid != null">
+        uid,
+      </if>
+      <if test="prizeId != null">
+        prize_id,
+      </if>
+      <if test="indate != null">
+        indate,
+      </if>
+      <if test="phone != null">
+        phone,
+      </if>
+      <if test="userName != null">
+        user_name,
+      </if>
+      <if test="voucherId != null">
+        voucher_id,
+      </if>
+      <if test="type != null">
+        type,
+      </if>
+      <if test="prize != null">
+        prize,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="uid != null">
+        #{uid,jdbcType=INTEGER},
+      </if>
+      <if test="prizeId != null">
+        #{prizeId,jdbcType=INTEGER},
+      </if>
+      <if test="indate != null">
+        #{indate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="phone != null">
+        #{phone,jdbcType=VARCHAR},
+      </if>
+      <if test="userName != null">
+        #{userName,jdbcType=VARCHAR},
+      </if>
+      <if test="voucherId != null">
+        #{voucherId,jdbcType=VARCHAR},
+      </if>
+      <if test="type != null">
+        #{type,jdbcType=INTEGER},
+      </if>
+      <if test="prize != null">
+        #{prize,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.hssx.entity.PrizeRecordExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 15:45:57 CST 2019.
+    -->
+    select count(*) from mini_prize_record
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 15:45:57 CST 2019.
+    -->
+    update mini_prize_record
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=INTEGER},
+      </if>
+      <if test="record.uid != null">
+        uid = #{record.uid,jdbcType=INTEGER},
+      </if>
+      <if test="record.prizeId != null">
+        prize_id = #{record.prizeId,jdbcType=INTEGER},
+      </if>
+      <if test="record.indate != null">
+        indate = #{record.indate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.phone != null">
+        phone = #{record.phone,jdbcType=VARCHAR},
+      </if>
+      <if test="record.userName != null">
+        user_name = #{record.userName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.voucherId != null">
+        voucher_id = #{record.voucherId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.type != null">
+        type = #{record.type,jdbcType=INTEGER},
+      </if>
+      <if test="record.prize != null">
+        prize = #{record.prize,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 15:45:57 CST 2019.
+    -->
+    update mini_prize_record
+    set id = #{record.id,jdbcType=INTEGER},
+      uid = #{record.uid,jdbcType=INTEGER},
+      prize_id = #{record.prizeId,jdbcType=INTEGER},
+      indate = #{record.indate,jdbcType=TIMESTAMP},
+      phone = #{record.phone,jdbcType=VARCHAR},
+      user_name = #{record.userName,jdbcType=VARCHAR},
+      voucher_id = #{record.voucherId,jdbcType=VARCHAR},
+      type = #{record.type,jdbcType=INTEGER},
+      prize = #{record.prize,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.hssx.entity.PrizeRecord">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 15:45:57 CST 2019.
+    -->
+    update mini_prize_record
+    <set>
+      <if test="uid != null">
+        uid = #{uid,jdbcType=INTEGER},
+      </if>
+      <if test="prizeId != null">
+        prize_id = #{prizeId,jdbcType=INTEGER},
+      </if>
+      <if test="indate != null">
+        indate = #{indate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="phone != null">
+        phone = #{phone,jdbcType=VARCHAR},
+      </if>
+      <if test="userName != null">
+        user_name = #{userName,jdbcType=VARCHAR},
+      </if>
+      <if test="voucherId != null">
+        voucher_id = #{voucherId,jdbcType=VARCHAR},
+      </if>
+      <if test="type != null">
+        type = #{type,jdbcType=INTEGER},
+      </if>
+      <if test="prize != null">
+        prize = #{prize,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.hssx.entity.PrizeRecord">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Sep 19 15:45:57 CST 2019.
+    -->
+    update mini_prize_record
+    set uid = #{uid,jdbcType=INTEGER},
+      prize_id = #{prizeId,jdbcType=INTEGER},
+      indate = #{indate,jdbcType=TIMESTAMP},
+      phone = #{phone,jdbcType=VARCHAR},
+      user_name = #{userName,jdbcType=VARCHAR},
+      voucher_id = #{voucherId,jdbcType=VARCHAR},
+      type = #{type,jdbcType=INTEGER},
+      prize = #{prize,jdbcType=VARCHAR}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 100 - 0
minigame/src/com/hssx/mapper/UserPrizeCountMapper.java

@@ -0,0 +1,100 @@
+package com.hssx.mapper;
+
+import com.hssx.entity.UserPrizeCount;
+import com.hssx.entity.UserPrizeCountExample;
+
+import java.util.Date;
+import java.util.List;
+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 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 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 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 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 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 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 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 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 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 Thu Sep 19 17:40:42 CST 2019
+     */
+    int updateByPrimaryKey(UserPrizeCount record);
+    
+    int selectCountByToday();
+}

+ 259 - 0
minigame/src/com/hssx/mapper/UserPrizeCountMapper.xml

@@ -0,0 +1,259 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.hssx.mapper.UserPrizeCountMapper">
+  <resultMap id="BaseResultMap" type="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.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="user_id" jdbcType="INTEGER" 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.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_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.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      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.
+    -->
+    id, user_id, indate
+  </sql>
+  <select id="selectByExample" parameterType="com.hssx.entity.UserPrizeCountExample" resultMap="BaseResultMap">
+    <!--
+      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.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from mini_user_prize_count
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    <!--
+      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.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from mini_user_prize_count
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      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.
+    -->
+    delete from mini_user_prize_count
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.hssx.entity.UserPrizeCountExample">
+    <!--
+      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.
+    -->
+    delete from mini_user_prize_count
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" 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.
+    -->
+    <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})
+  </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.
+    -->
+    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
+      SELECT LAST_INSERT_ID()
+    </selectKey>
+    insert into mini_user_prize_count
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="userId != null">
+        user_id,
+      </if>
+      <if test="indate != null">
+        indate,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="userId != null">
+        #{userId,jdbcType=INTEGER},
+      </if>
+      <if test="indate != null">
+        #{indate,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.hssx.entity.UserPrizeCountExample" resultType="java.lang.Long">
+    <!--
+      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.
+    -->
+    select count(*) from mini_user_prize_count
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      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.
+    -->
+    update mini_user_prize_count
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=INTEGER},
+      </if>
+      <if test="record.userId != null">
+        user_id = #{record.userId,jdbcType=INTEGER},
+      </if>
+      <if test="record.indate != null">
+        indate = #{record.indate,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      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.
+    -->
+    update mini_user_prize_count
+    set id = #{record.id,jdbcType=INTEGER},
+      user_id = #{record.userId,jdbcType=INTEGER},
+      indate = #{record.indate,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" 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.
+    -->
+    update mini_user_prize_count
+    <set>
+      <if test="userId != null">
+        user_id = #{userId,jdbcType=INTEGER},
+      </if>
+      <if test="indate != null">
+        indate = #{indate,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" 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.
+    -->
+    update mini_user_prize_count
+    set user_id = #{userId,jdbcType=INTEGER},
+      indate = #{indate,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  
+  <select id="selectCountByToday" resultType="java.lang.Integer">
+  select count(id) from mini_user_prize_count
+  WHERE TO_DAYS(indate) = TO_DAYS(NOW())
+  </select>
+</mapper>

+ 40 - 41
minigame/src/com/hssx/service/impl/NewsServiceImpl.java

@@ -8,14 +8,18 @@ import java.security.NoSuchProviderException;
 import javax.annotation.Resource;
 
 import org.apache.commons.lang.StringEscapeUtils;
+import org.springframework.beans.BeanUtils;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONObject;
 import com.hssx.constant.Constant;
 import com.hssx.entity.News;
+import com.hssx.entity.User;
 import com.hssx.entity.vo.NewsVO;
 import com.hssx.mapper.NewsMapper;
+import com.hssx.mapper.UserMapper;
 import com.hssx.service.NewsService;
 import com.hssx.utils.AccessToken;
 import com.hssx.utils.HttpKit;
@@ -25,53 +29,48 @@ import com.hssx.utils.WechatUserNews;
 
 /**
  * <p>
- *  服务实现类
+ * 服务实现类
  * </p>
  *
  * @author 吴涛涛
  * @since 2019-09-17
  */
-@Service("NewsService")
-public class NewsServiceImpl  implements NewsService {
+@Service("newsService")
+public class NewsServiceImpl implements NewsService {
 
-    @Resource
-    NewsMapper newsMapper;
+	@Resource
+	NewsMapper newsMapper;
+	@Autowired
+	UserMapper usermapper;
 
-    @Override
-    public HttpRespMsg addUserNews(NewsVO newsVO) {
-        HttpRespMsg msg = new HttpRespMsg();
-        if(newsVO.getType()==0){
-            //微信授权的链接
-            try {
-                WechatUserNews wechatUserNews = WechatAndMicroblogUtil.getWechatUserNews(newsVO.getOpenId(), AccessToken.getNewAccessToken());
-                News news = new News();
-                news.setNickName(wechatUserNews.getNickname());
-                news.setHeaderPic(wechatUserNews.getHeadimgurl());
-                news.setMessage(newsVO.getMessage());
-                news.setType(newsVO.getType());
-                newsMapper.insert(news);
-                msg.data = news;
-                return msg;
-            } catch (Exception e) {
-                e.printStackTrace();
-            }
+	@Override
+	public HttpRespMsg addUserNews(NewsVO newsVO) {
+		HttpRespMsg msg = new HttpRespMsg();
+//		User user = usermapper.selectByPrimaryKey(newsVO.getUserId());
+//		// 微信授权的链接
+//		try {
+//			News news = new News();
+//			BeanUtils.copyProperties(newsVO, news);
+//			news.setNickName(user.getNickName());
+//			news.setHeaderPic(user.getHeaderPic());
+//			news.setType(user.getType());
+//			newsMapper.insert(news);
+//			msg.data = news;
+//		} catch (Exception e) {
+//			e.printStackTrace();
+//		}
+		return msg;
+	}
 
-        }else if(newsVO.getType()==1){
-            //微博授权的链接
-
-
-        }
-
-        return null;
-    }
-
-    //微博授权登录
-    @Override
-    public HttpRespMsg login(NewsVO newsVO,String callbackURL) throws KeyManagementException, NoSuchAlgorithmException, NoSuchProviderException, IOException {
-        String authorizationURL = "https://api.weibo.com/oauth2/authorize?client_id="+Constant.MICROBLOG_APPKEY +"&response_type=code&redirect_uri="+callbackURL;
-        String resp = HttpKit.get(authorizationURL, true);
-        resp = StringEscapeUtils.unescapeJava(resp);
-        JSONObject json = (JSONObject) JSON.parse(resp);
-        return null;
-    }
+	// 微博授权登录
+	@Override
+	public HttpRespMsg login(NewsVO newsVO, String callbackURL)
+			throws KeyManagementException, NoSuchAlgorithmException, NoSuchProviderException, IOException {
+//		String authorizationURL = "https://api.weibo.com/oauth2/authorize?client_id=" + Constant.MICROBLOG_APPKEY
+//				+ "&response_type=code&redirect_uri=" + callbackURL;
+//		String resp = HttpKit.get(authorizationURL, true);
+//		resp = StringEscapeUtils.unescapeJava(resp);
+//		JSONObject json = (JSONObject) JSON.parse(resp);
+		return null;
+	}
 }

+ 87 - 0
minigame/src/com/hssx/utils/weiboUtil.java

@@ -0,0 +1,87 @@
+package com.hssx.utils;
+	
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.URI;
+import java.net.URISyntaxException;
+
+import org.apache.http.HttpEntity;
+import org.apache.http.HttpHost;
+import org.apache.http.HttpResponse;
+import org.apache.http.client.HttpClient;
+import org.apache.http.client.methods.HttpPost;
+import org.apache.http.conn.params.ConnRoutePNames;
+import org.apache.http.impl.client.DefaultHttpClient;
+
+public class weiboUtil 
+{
+	static public void main(String[] arg)
+	{
+		//System.setProperty("http.proxyHost", "proxy.wdf.diablo.corp");
+		//System.setProperty("http.proxyPort", "8080");
+		HttpClient httpclient = new DefaultHttpClient();   
+
+		HttpPost post = new HttpPost();
+		URI url;
+		try 
+		{
+			//url = new URI("https://api.weibo.com/oauth2/access_token");
+			String request = "https://api.weibo.com/oauth2/access_token?client_id=3921363495&client_secret=bac53e1f9c1e66514cf7410e39d581dd"
+					+ "&grant_type=authorization_code&code=7420036e360713bab82f62a5275aaba7&redirect_uri=https://api.weibo.com/oauth2/default.html";
+			url = new URI(request);
+			post.setURI(url);
+			HttpHost proxy = new HttpHost("proxy.wdf.sap.corp", 8080);
+			httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
+
+			/*post.addHeader("client_id", "3921363495");
+			post.addHeader("client_secret", "bac53e1f9c1e66514cf7410e39d581dd");
+			post.addHeader("grant_type", "authorization_code");
+			post.addHeader("code", "7420036e360713bab82f62a5275aaba7");
+			post.addHeader("redirect_uri", "https://api.weibo.com/oauth2/default.html");*/
+
+			HttpResponse response = httpclient.execute(post);
+			HttpEntity entity = response.getEntity();     
+			if (entity == null)
+			{
+				System.out.println("response is null!");
+				return;
+			}     
+			InputStream instreams = entity.getContent();     
+			String str = convertStreamToString(instreams);   
+			System.out.println("Do something");    
+			System.out.println(str);   
+		} 
+		catch (Exception e) 
+		{
+			e.printStackTrace();
+		}
+	}
+		
+	public static String convertStreamToString(InputStream is) 
+	{       
+		BufferedReader reader = new BufferedReader(new InputStreamReader(is));       
+		StringBuilder sb = new StringBuilder();       
+		String line = null;       
+		try {       
+			while ((line = reader.readLine()) != null) {   
+				sb.append(line + "\n");       
+				}       
+		} catch (IOException e) {       
+			e.printStackTrace();       
+		} finally {       
+			try {       
+				is.close();       
+			} catch (IOException e) {       
+				e.printStackTrace();       
+			}       
+		}       
+		return sb.toString();       
+	}   
+
+}
+
+
+