Переглянути джерело

增加后台统计抽奖接口

quyueting 5 роки тому
батько
коміт
cda3f9d497
1 змінених файлів з 18 додано та 0 видалено
  1. 18 0
      minigame/src/com/hssx/controller/PrizeController.java

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

@@ -136,6 +136,24 @@ public class PrizeController {
 		response.setCharacterEncoding("UTF-8");
 		response.getWriter().println(msg.toJSONStr());
 	}
+	
+	/**
+	 * 小游戏抽奖列表后台查看
+	 *
+	 * @return
+	 */
+	@RequestMapping(value = "/luckDrawListBack")
+	public void luckDrawListBack(HttpServletResponse response)
+			throws Exception, KeyManagementException, NoSuchAlgorithmException, NoSuchProviderException, IOException {
+		HttpRespMsg msg = new HttpRespMsg();
+		PrizeRecordExample example = new PrizeRecordExample();
+		example.createCriteria().andUidIsNotNull();
+		List<PrizeRecord> list = prizeRecordMapper.selectByExample(example);
+		msg.data = list;
+		response.setContentType("application/json");
+		response.setCharacterEncoding("UTF-8");
+		response.getWriter().println(msg.toJSONStr());
+	}
 
 	/**
 	 * 小游戏抽奖填写用户信息 参数:phone:电话 username:姓名 id:中奖纪录id