记得上下班打卡 | git大法好,push需谨慎

Commit 4bacc3c4 authored by GaoHu's avatar GaoHu

BUG:uid获取为空和新增加单独或去mix用户是否预约接口

parent 063dd10a
...@@ -109,4 +109,15 @@ public class GoblinGoodsAnticipateController { ...@@ -109,4 +109,15 @@ public class GoblinGoodsAnticipateController {
return goblinGoodsAnticipateService.reserveByMix(mixId); return goblinGoodsAnticipateService.reserveByMix(mixId);
} }
@ApiOperationSupport(order = 7)
@ApiOperation(value = "混合购【根据mixId查询用户是否预约该混合购】")
@GetMapping("reserveMixByUid")
@ApiImplicitParams({
@ApiImplicitParam(type = "form", required = true, dataType = "String", name = "mixId", value = "混合售id"),
})
public ResponseDto<Boolean> reserveMixByUid(@RequestParam(value = "mixId", required = true) String mixId) {
return goblinGoodsAnticipateService.reserveMixByUid(mixId);
}
} }
...@@ -76,7 +76,7 @@ public class GoblinMixAppServiceImpl implements IGoblinMixAppService { ...@@ -76,7 +76,7 @@ public class GoblinMixAppServiceImpl implements IGoblinMixAppService {
//获取用户预约情况 //获取用户预约情况
//获取udi //获取udi
String uid = CurrentUtil.getCurrentUid(); String uid = CurrentUtil.getCurrentUid();
if (vo.getReserve() == 1 && redisUtils.getReserveMixByUid(uid, mixId) != null) { if (vo.getReserve() == 1 && uid != null && redisUtils.getReserveMixByUid(uid, mixId) != null) {
vo.setUserReserve(1); vo.setUserReserve(1);
} }
int stock = 0; int stock = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment