限购
This commit is contained in:
@@ -182,7 +182,7 @@ public class GbOrderServiceImpl extends ServiceImpl<GbOrderMapper, GbOrder> impl
|
|||||||
if (ware.getOnlineStatus() == 0) {
|
if (ware.getOnlineStatus() == 0) {
|
||||||
throw new CzgException("拼团失败,商品已下架");
|
throw new CzgException("拼团失败,商品已下架");
|
||||||
}
|
}
|
||||||
if (ware.getLimitBuyNum() != MarketConstants.Num.NOT_LIMIT && ware.getLimitBuyNum() > param.getNumber()) {
|
if (ware.getLimitBuyNum() != MarketConstants.Num.NOT_LIMIT && ware.getLimitBuyNum() < param.getNumber()) {
|
||||||
throw new CzgException("拼团失败,该商品每人限购" + ware.getLimitBuyNum() + "份");
|
throw new CzgException("拼团失败,该商品每人限购" + ware.getLimitBuyNum() + "份");
|
||||||
}
|
}
|
||||||
if (StrUtil.isNotBlank(param.getGroupOrderNo())) {
|
if (StrUtil.isNotBlank(param.getGroupOrderNo())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user