|
|
|
@@ -1,6 +1,5 @@ |
|
|
|
package com.iformall.service.invest; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.google.common.collect.ImmutableListMultimap; |
|
|
|
import com.google.common.collect.Multimaps; |
|
|
|
@@ -8,9 +7,8 @@ import com.iformall.common.ErrorCode; |
|
|
|
import com.iformall.domain.po.invest.InvestBaseEntity; |
|
|
|
import com.iformall.domain.vo.invest.InvestPageQuery; |
|
|
|
import com.iformall.exception.MallinkException; |
|
|
|
import org.apache.commons.compress.utils.Lists; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.checkerframework.checker.nullness.qual.Nullable; |
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
|
|
|
|
import java.lang.reflect.Method; |
|
|
|
import java.text.MessageFormat; |
|
|
|
@@ -32,7 +30,7 @@ public class InvestHelper { |
|
|
|
} |
|
|
|
|
|
|
|
private static void camelToUnderline(String sortColumn, String sortOrder, Page page) { |
|
|
|
if (StringUtils.isEmpty(sortColumn)) { |
|
|
|
if (StringUtils.isBlank(sortColumn)) { |
|
|
|
return; |
|
|
|
} |
|
|
|
if (Objects.equals(sortOrder, "desc")) { |
|
|
|
@@ -123,7 +121,7 @@ public class InvestHelper { |
|
|
|
|
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
public static <T extends Enum<T>> T codeOf(Class enumType, String value) { |
|
|
|
if (StringUtils.isEmpty(value)) { |
|
|
|
if (StringUtils.isBlank(value)) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
int code = Integer.parseInt(value); |
|
|
|
|