|
|
|
@ -9,6 +9,7 @@ import com.logpm.report.constant.ReportConstants;
|
|
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
|
import java.util.LinkedHashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
@ -28,8 +29,13 @@ public class QueryUtil {
|
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
public static QueryWrapper buildQueryWrapper(Object vo, Class classz) { |
|
|
|
|
Map<String, Object> stringObjectMap = BeanUtil.beanToMap(vo); |
|
|
|
|
return Condition.getQueryWrapper(stringObjectMap, classz); |
|
|
|
|
Map<String, Object> stringObjectMap = BeanUtil.beanToMap(vo, new LinkedHashMap<>(), true, false); |
|
|
|
|
Map<String, Object> result = new LinkedHashMap<>(); |
|
|
|
|
for (Map.Entry<String, Object> entry : stringObjectMap.entrySet()) { |
|
|
|
|
String keyWithSuffix = entry.getKey() + "_equal"; |
|
|
|
|
result.put(keyWithSuffix, entry.getValue()); |
|
|
|
|
} |
|
|
|
|
return Condition.getQueryWrapper(result, classz); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|