|
@@ -13,6 +13,7 @@ import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
import com.ym.mec.common.tenant.TenantContextHolder;
|
|
import com.ym.mec.common.tenant.TenantContextHolder;
|
|
import com.ym.mec.thirdparty.message.MessageSenderPluginContext;
|
|
import com.ym.mec.thirdparty.message.MessageSenderPluginContext;
|
|
import com.ym.mec.util.collection.MapUtil;
|
|
import com.ym.mec.util.collection.MapUtil;
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.scheduling.annotation.Async;
|
|
import org.springframework.scheduling.annotation.Async;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -141,6 +142,9 @@ public class SysCouponServiceImpl extends BaseServiceImpl<Integer, SysCoupon> im
|
|
if (Objects.isNull(sysCoupon.getType())) {
|
|
if (Objects.isNull(sysCoupon.getType())) {
|
|
throw new BizException("请指定优惠券类型");
|
|
throw new BizException("请指定优惠券类型");
|
|
}
|
|
}
|
|
|
|
+ if (StringUtils.isEmpty(sysCoupon.getUseSystem())) {
|
|
|
|
+ throw new BizException("请置顶使用系统");
|
|
|
|
+ }
|
|
|
|
|
|
switch (sysCoupon.getType()) {
|
|
switch (sysCoupon.getType()) {
|
|
case DISCOUNT:
|
|
case DISCOUNT:
|