...
|
...
|
@@ -10,6 +10,7 @@ import org.slf4j.LoggerFactory; |
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import com.yoho.activity.common.ApiResponse;
|
...
|
...
|
@@ -49,25 +50,21 @@ public class LotteryController { |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查询用户订单信息(时间:15天 至 一个月,是否已经抽奖)
|
|
|
* 查询用户订单列表(时间:15天 至 一个月,是否已经抽奖)
|
|
|
*
|
|
|
* @param lotteryId 活动id
|
|
|
* @param userId 用户id
|
|
|
* @param orderCode 订单编号
|
|
|
* @return 抽奖状态信息
|
|
|
* @param uid 用户id
|
|
|
* @return 用户有效的订单列表
|
|
|
*/
|
|
|
@RequestMapping("/getValidOrderInfo")
|
|
|
@RequestMapping("/getValidOrderList")
|
|
|
@ResponseBody
|
|
|
public ApiResponse getValidOrderInfo(@RequestBody LotteryVO vo) {
|
|
|
logger.info("Start getValidTimeOrderInfo with req {}", vo);
|
|
|
public ApiResponse getValidOrderList(@RequestParam(value="uid")Integer uid) {
|
|
|
logger.info("Start getValidOrderList with uid is {}", uid);
|
|
|
|
|
|
Integer userId = vo.getUserId();
|
|
|
|
|
|
checkUserId(userId);
|
|
|
checkUserId(uid);
|
|
|
|
|
|
LotteryRespData respData = lotteryService.getValidTimeOrderInfo(userId);
|
|
|
LotteryRespData respData = lotteryService.getValidOrderList(uid);
|
|
|
|
|
|
logger.info("End getValidTimeOrderInfo with req {}", vo);
|
|
|
logger.info("End getValidOrderList");
|
|
|
return new ApiResponse(respData);
|
|
|
}
|
|
|
|
...
|
...
|
|