|
|
@ -5,6 +5,10 @@ import com.google.common.base.CaseFormat; |
|
|
|
import com.win.framework.common.pojo.CustomConditions; |
|
|
|
import com.win.framework.common.util.collection.CollectionUtils; |
|
|
|
|
|
|
|
import java.time.Instant; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.time.ZoneOffset; |
|
|
|
|
|
|
|
/** |
|
|
|
* QueryWrapper工具类 |
|
|
|
*/ |
|
|
@ -57,7 +61,9 @@ public class QueryWrapperUtils { |
|
|
|
if(strs.length != 2) { |
|
|
|
break; |
|
|
|
} |
|
|
|
queryWrapper.between(column, strs[0], strs[1]); |
|
|
|
LocalDateTime localDateTime1 = Instant.ofEpochMilli(Long.parseLong(strs[0])).atZone(ZoneOffset.ofHours(8)).toLocalDateTime(); |
|
|
|
LocalDateTime localDateTime2 = Instant.ofEpochMilli(Long.parseLong(strs[1])).atZone(ZoneOffset.ofHours(8)).toLocalDateTime(); |
|
|
|
queryWrapper.between(column, localDateTime1, localDateTime2); |
|
|
|
break; |
|
|
|
case "isNull" : |
|
|
|
queryWrapper.isNull(column); |
|
|
|