|
@@ -1,6 +1,5 @@
|
|
|
package com.ym.mec.biz.dal.enums;
|
|
|
|
|
|
-import com.ym.mec.common.page.WrapperUtil;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
@@ -101,10 +100,10 @@ public enum CouponDetailTypeEnum {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static String[] getAllowType(CouponDetailTypeEnum... type){
|
|
|
+ public static String[] getAllowType(CouponDetailTypeEnum... type) {
|
|
|
List<String> resultList = new ArrayList<>();
|
|
|
resultList.add(FULLCOUPON.getCode());
|
|
|
- if(Objects.nonNull(type)){
|
|
|
+ if (Objects.nonNull(type)) {
|
|
|
List<String> collect = Arrays.stream(type)
|
|
|
.map(CouponDetailTypeEnum::getCode)
|
|
|
.distinct()
|