| | |
| | | * @param acceptData
|
| | | * @param page
|
| | | * @param uid
|
| | | * @param auctionId 商品id
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getGoodsCouponList", method = RequestMethod.POST)
|
| | | public void getGoodsCouponList(AcceptData acceptData, Long uid, PrintWriter out) {
|
| | | public void getGoodsCouponList(AcceptData acceptData, Long uid, Long auctionId, PrintWriter out) {
|
| | | if (uid == null) {
|
| | | out.print(JsonUtil.loadFalseResult("用户未登录"));
|
| | | return;
|
| | | }
|
| | |
|
| | | try {
|
| | | List<UserSystemCouponVO> resultList = UserSystemCouponService.getGoodsCouponList(uid);
|
| | | List<UserSystemCouponVO> resultList = UserSystemCouponService.getGoodsCouponList(uid, auctionId);
|
| | |
|
| | | if (resultList == null ) {
|
| | | resultList =new ArrayList<UserSystemCouponVO>();
|
| | | }
|
| | | |
| | |
|
| | | JSONObject dataTip = new JSONObject();
|
| | | dataTip.put("content", configService.get("free_coupon_tip"));
|
| | |
| | | return prize;
|
| | | }
|
| | |
|
| | | |
| | | |
| | | public static void main(String[] args) {
|
| | | long result = (1 + Math.round(Math.random() * (9)));
|
| | | System.out.println(result);
|
| | | }
|
| | |
|
| | |
|
| | | /**
|
| | | * 获取抽奖结果
|
| | |
| | | }
|
| | | userInfoExtra.setLotteryNewbies(count);
|
| | | userInfoExtraService.saveUserInfoExtra(userInfoExtra);
|
| | | |
| | | } else {
|
| | | count = lotteryNewbies; // 剩余次数
|
| | | }
|