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

Commit 31215735 authored by jiangxiulong's avatar jiangxiulong

isListCanBuy

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