|
|
|
@@ -188,7 +188,7 @@ public class WxCouponController extends BaseController { |
|
|
|
sb.append(",\"inventory\":").append(coupon.getInventory()).append(",\"price\":").append(coupon.getPrice()).append(",\"creditPrice\":").append(coupon.getCreditPrice()); |
|
|
|
//如果配置显示已售数量 |
|
|
|
SysConfig config = sysConfigService.getByKey(SysConfigConstant.coupon_detail_show_selled, getTenantInfo()); |
|
|
|
if (null != config && config.getConfigItemValue().equals("1")) { |
|
|
|
if (null != config && "1".equals(config.getConfigItemValue())) { |
|
|
|
sb.append(",\"selledCount\":").append(coupon.getInventory()-coupon.getRemainInventory()); |
|
|
|
} |
|
|
|
sb.append("}"); |
|
|
|
|