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

Commit 31215735 authored by jiangxiulong's avatar jiangxiulong

isListCanBuy

parent 88c6d28a
...@@ -36,8 +36,8 @@ public class GoblinPayOrderDetailsVo implements Serializable, Cloneable { ...@@ -36,8 +36,8 @@ public class GoblinPayOrderDetailsVo implements Serializable, Cloneable {
@ApiModelProperty(position = 24, value = "数量") @ApiModelProperty(position = 24, value = "数量")
private Integer num; private Integer num;
@ApiModelProperty(position = 25, value = "分批、提前购 是否有购买权限") @ApiModelProperty(position = 25, value = "分批、提前购 是否有购买权限 0没有 1有")
private Boolean listCanBuy; private Integer isListCanBuy;
private static final GoblinPayOrderDetailsVo obj = new GoblinPayOrderDetailsVo(); private static final GoblinPayOrderDetailsVo obj = new GoblinPayOrderDetailsVo();
......
...@@ -103,11 +103,14 @@ public class GoblinNftOrderAppServiceImpl implements IGoblinNftOrderAppService { ...@@ -103,11 +103,14 @@ public class GoblinNftOrderAppServiceImpl implements IGoblinNftOrderAppService {
payOrderDetailsVo.setStoreName(storeInfoVo.getStoreName()); payOrderDetailsVo.setStoreName(storeInfoVo.getStoreName());
// 分批、提前购黑、白名单 // 分批、提前购黑、白名单
Boolean listCanBuy = true; Integer isListCanBuy = 1;
if (null != tagType) { if (null != tagType) {
listCanBuy = goblinRedisUtils.getListCanBuy(listId, skuId, mobile, uid, whiteType); Boolean listCanBuy = goblinRedisUtils.getListCanBuy(listId, skuId, mobile, uid, whiteType);
if (!listCanBuy) {
isListCanBuy = 0;
} }
payOrderDetailsVo.setListCanBuy(listCanBuy); }
payOrderDetailsVo.setIsListCanBuy(isListCanBuy);
return ResponseDto.success(payOrderDetailsVo); return ResponseDto.success(payOrderDetailsVo);
} else { } else {
......
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