|
|
|
@ -13,7 +13,6 @@ import com.bsd.say.mapper.CouponMapper;
|
|
|
|
|
import com.bsd.say.mapper.RecordMapper;
|
|
|
|
|
import com.bsd.say.mapper.UsersMapper;
|
|
|
|
|
import com.bsd.say.service.AwardListService;
|
|
|
|
|
import com.bsd.say.service.CouponService;
|
|
|
|
|
import com.bsd.say.util.LogUtils;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
@ -56,11 +55,13 @@ public class AwardListServiceImpl extends BaseServiceImpl<AwardListMapper, Award
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 抽奖
|
|
|
|
|
*
|
|
|
|
|
* @param ajaxRequest
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public AjaxResult award(AjaxRequest ajaxRequest) {
|
|
|
|
|
|
|
|
|
|
synchronized (this) {
|
|
|
|
|
AjaxResult ajaxResult = new AjaxResult();
|
|
|
|
|
JSONObject data = ajaxRequest.getData();
|
|
|
|
@ -116,6 +117,7 @@ public class AwardListServiceImpl extends BaseServiceImpl<AwardListMapper, Award
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 判断有没有抽过奖品 微信code必传
|
|
|
|
|
*
|
|
|
|
|
* @param ajaxRequest
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
@ -178,6 +180,7 @@ public class AwardListServiceImpl extends BaseServiceImpl<AwardListMapper, Award
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 一等奖填写地址信息 (校验验证码)
|
|
|
|
|
*
|
|
|
|
|
* @param ajaxRequest
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
@ -255,6 +258,7 @@ public class AwardListServiceImpl extends BaseServiceImpl<AwardListMapper, Award
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 通过code获取个人优惠券和抽奖
|
|
|
|
|
*
|
|
|
|
|
* @param ajaxRequest
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|