| package com.zy.asrs.wms.common.domain;  | 
|   | 
| import com.baomidou.mybatisplus.annotation.TableField;  | 
| import com.baomidou.mybatisplus.core.metadata.IPage;  | 
| import com.baomidou.mybatisplus.extension.plugins.pagination.Page;  | 
| import lombok.Data;  | 
|   | 
| import java.io.Serializable;  | 
| import java.util.Map;  | 
|   | 
| /**  | 
|  * Created by vincent on 2/13/2024  | 
|  */  | 
| @Data  | 
| public class BaseParam implements Serializable {  | 
|   | 
|     private static final long serialVersionUID = 1L;  | 
|   | 
|     @TableField(exist = false)  | 
|     private Integer current;  | 
|   | 
|     @TableField(exist = false)  | 
|     private Integer pageSize;  | 
|   | 
|     @TableField(exist = false)  | 
|     private String timeStart;  | 
|   | 
|     @TableField(exist = false)  | 
|     private String timeEnd;  | 
|   | 
|     @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);  | 
|     }  | 
|   | 
| }  |