|
|
@ -26,11 +26,9 @@ import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.util.Comparator; |
|
|
|
import java.util.*; |
|
|
|
import java.util.Date; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
import java.util.stream.IntStream; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Service("highMerchantStoreService") |
|
|
|
@Service("highMerchantStoreService") |
|
|
@ -207,8 +205,11 @@ public class HighMerchantStoreServiceImpl implements HighMerchantStoreService { |
|
|
|
criteria.andTypeEqualTo(MapUtils.getInteger(map, "type")); |
|
|
|
criteria.andTypeEqualTo(MapUtils.getInteger(map, "type")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (MapUtils.getInteger(map, "sourceType") != null) { |
|
|
|
if (StringUtils.isNotBlank(MapUtils.getString(map, "sourceType"))) { |
|
|
|
criteria.andSourceTypeEqualTo(MapUtils.getInteger(map, "sourceType")); |
|
|
|
List<Integer> sourceType = Arrays.stream(MapUtils.getString(map, "sourceType").split(",")) |
|
|
|
|
|
|
|
.flatMapToInt(num -> IntStream.of(Integer.parseInt(num))).boxed() |
|
|
|
|
|
|
|
.collect(Collectors.toList()); |
|
|
|
|
|
|
|
criteria.andSourceTypeIn(sourceType); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (MapUtils.getLong(map, "companyId") != null) { |
|
|
|
if (MapUtils.getLong(map, "companyId") != null) { |
|
|
|