| | |
| | | package com.zy.common.web; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | |
| | | wrapper.like(columns.get(i), condition); |
| | | } |
| | | } |
| | | |
| | | public static boolean isJSON(String str) { |
| | | if (Cools.isEmpty(str)) { |
| | | return false; |
| | | } else { |
| | | str = str.trim(); |
| | | if (str.startsWith("{") && str.endsWith("}")) { |
| | | return true; |
| | | } else if (str.startsWith("[") && str.endsWith("]")) { |
| | | return true; |
| | | } else { |
| | | return false; |
| | | } |
| | | } |
| | | } |
| | | } |