...
|
...
|
@@ -36,6 +36,7 @@ import com.yohobuy.ufo.model.common.PageResponseBO; |
|
|
import com.yohobuy.ufo.model.promotion.CouponDisplayBo;
|
|
|
import com.yohobuy.ufo.model.promotion.constant.CouponTypeEnum;
|
|
|
import com.yohobuy.ufo.model.promotion.constant.PositionType;
|
|
|
import com.yohobuy.ufo.model.promotion.constant.UserTypeEnum;
|
|
|
import com.yohobuy.ufo.model.promotion.constant.Visibility;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang.math.NumberUtils;
|
...
|
...
|
@@ -627,9 +628,12 @@ public class CouponServiceImpl implements ICouponService,IBusinessExportService{ |
|
|
|
|
|
if (null == req.getUserType()) {
|
|
|
LOGGER.warn("checkSaveOrUpdateCouponParam failed! userType error! userType is {}", req.getUserType());
|
|
|
throw new ServiceException(400, "错误:用户类型条件为空");
|
|
|
throw new ServiceException(400, "错误:用户类型为空");
|
|
|
}
|
|
|
|
|
|
//检查值在范围内
|
|
|
UserTypeEnum.find(req.getUserType());
|
|
|
|
|
|
if(null == req.getUseLimitType()){
|
|
|
LOGGER.warn("checkSaveOrUpdateCouponParam failed! useLimitType error! useLimitType is {}",req.getUseLimitType());
|
|
|
throw new ServiceException(400, "错误:优惠条件为空");
|
...
|
...
|
|