| | |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * Created by vincent on 2/13/2024 |
| | |
| | | @TableField(exist = false) |
| | | private String condition; |
| | | |
| | | @TableField(exist = false) |
| | | private Map<String, Object> map; |
| | | |
| | | public void syncMap(Map<String, Object> map) { |
| | | if (null == map) { |
| | | return; |
| | | } |
| | | if (null != map.get("current")) { |
| | | this.setCurrent(Integer.parseInt(String.valueOf(map.get("current")))); |
| | | map.remove("current"); |
| | | } |
| | | if (null != map.get("pageSize")) { |
| | | this.setPageSize(Integer.parseInt(String.valueOf(map.get("pageSize")))); |
| | | map.remove("pageSize"); |
| | | } |
| | | if (null != map.get("condition")) { |
| | | this.setCondition(String.valueOf(map.get("condition"))); |
| | | map.remove("condition"); |
| | | } |
| | | this.setMap(map); |
| | | } |
| | | |
| | | } |