|
@@ -220,4 +220,24 @@ public class PrizeController {
|
|
|
response.setCharacterEncoding("UTF-8");
|
|
|
response.getWriter().println(msg.toJSONStr());
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查看个人获奖信息
|
|
|
+ *
|
|
|
+ * 传递的参数:
|
|
|
+ * userId:用户id message:寄语
|
|
|
+ * @return
|
|
|
+ * @throws IOException
|
|
|
+ */
|
|
|
+ @RequestMapping("/getluckDrawByUserId")
|
|
|
+ public void getluckDrawByUserId(Integer UserId,HttpServletResponse response) throws IOException{
|
|
|
+ HttpRespMsg msg = new HttpRespMsg();
|
|
|
+ PrizeRecordExample exp = new PrizeRecordExample();
|
|
|
+ exp.createCriteria().andUidEqualTo(UserId);
|
|
|
+ List<PrizeRecord> list = prizeRecordMapper.selectByExample(exp);
|
|
|
+ msg.data = list;
|
|
|
+ response.setContentType("application/json");
|
|
|
+ response.setCharacterEncoding("UTF-8");
|
|
|
+ response.getWriter().println(msg.toJSONStr());
|
|
|
+ }
|
|
|
}
|