| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | /** |
| | | * 表名Map |
| | | */ |
| | | private static Map<String, String> tabMap = new HashMap<String, String>(3); |
| | | private static Map<String, String> tabMap = new HashMap<>(3); |
| | | |
| | | /** |
| | | * 添加过滤条件 |
| | |
| | | case "<=": |
| | | wrapper.le(field, val); |
| | | break; |
| | | case "in": |
| | | wrapper.in(field, Arrays.asList(val.toString().split(","))); |
| | | break; |
| | | default: |
| | | break; |
| | | } |