소스 검색

最新后台代码

5 년 전
부모
커밋
46edeb071a
1개의 변경된 파일20개의 추가작업 그리고 0개의 파일을 삭제
  1. 20 0
      minigame/src/com/hssx/controller/PrizeController.java

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

@@ -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());
+    }
 }