| | |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | String val = String.valueOf(entry.getValue()); |
| | | String val = normalizeFilterText(entry.getValue()); |
| | | if (Cools.isEmpty(val)) { |
| | | continue; |
| | | } |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0].trim())); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1].trim())); |
| | | } else { |
| | | wrapper.eq(entry.getKey(), val); |
| | | wrapper.eq(entry.getKey(), resolveFilterValue(WrkMast.class, entry.getKey(), val)); |
| | | } |
| | | } |
| | | } |