|
@@ -7,6 +7,8 @@ import java.util.Map;
|
|
|
import java.util.TreeMap;
|
|
|
|
|
|
/**
|
|
|
+ * 通用实体
|
|
|
+ *
|
|
|
* @author hanzihang
|
|
|
* @date 2023/7/19 4:05 PM
|
|
|
*/
|
|
@@ -14,19 +16,29 @@ public class CommonEntity extends BaseEntity {
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
/**
|
|
|
- * 基本参数map
|
|
|
+ * 基本参数Map(例如tableName,pagesize。。。)
|
|
|
*/
|
|
|
- private Map<String, Object> formMap;
|
|
|
+ private Map<String, Object> basicMap;
|
|
|
|
|
|
/**
|
|
|
- * 主表参数map
|
|
|
+ * 查询条件Map (查询当前表的条件字段k/v)
|
|
|
*/
|
|
|
- private Map<String, Object> condition;
|
|
|
+ private Map<String, Object> queryMap;
|
|
|
|
|
|
/**
|
|
|
- * 返回前端map
|
|
|
+ * 条件Map(例如修改时前端回传的唯一id标识,删除同理)
|
|
|
*/
|
|
|
- private Map<String, Object> retMap;
|
|
|
+ private Map<String, Object> conditionMap;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 回传Map(得到结果返回前端)
|
|
|
+ */
|
|
|
+ private Map<String, Object> resultMap;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 通用Map(新增时,修改时存放字段k/v)
|
|
|
+ */
|
|
|
+ private Map<String, Object> commMap;
|
|
|
|
|
|
/**
|
|
|
* 导入数据Map
|
|
@@ -34,67 +46,75 @@ public class CommonEntity extends BaseEntity {
|
|
|
private Map<String, Object> execlMap;
|
|
|
|
|
|
|
|
|
- private MultipartFile file;
|
|
|
-
|
|
|
public CommonEntity() {
|
|
|
}
|
|
|
|
|
|
+ public CommonEntity(Map<String, Object> basicMap, Map<String, Object> queryMap, Map<String, Object> conditionMap, Map<String, Object> resultMap, Map<String, Object> commMap, Map<String, Object> execlMap) {
|
|
|
+ this.basicMap = basicMap;
|
|
|
+ this.queryMap = queryMap;
|
|
|
+ this.conditionMap = conditionMap;
|
|
|
+ this.resultMap = resultMap;
|
|
|
+ this.commMap = commMap;
|
|
|
+ this.execlMap = execlMap;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public String toString() {
|
|
|
return "CommonEntity{" +
|
|
|
- "formMap=" + formMap +
|
|
|
- ", condition=" + condition +
|
|
|
- ", retMap=" + retMap +
|
|
|
+ "basicMap=" + basicMap +
|
|
|
+ ", queryMap=" + queryMap +
|
|
|
+ ", conditionMap=" + conditionMap +
|
|
|
+ ", resultMap=" + resultMap +
|
|
|
+ ", commMap=" + commMap +
|
|
|
", execlMap=" + execlMap +
|
|
|
- ", file=" + file +
|
|
|
'}';
|
|
|
}
|
|
|
|
|
|
- public CommonEntity(Map<String, Object> formMap, Map<String, Object> condition, Map<String, Object> retMap, Map<String, Object> execlMap, MultipartFile file) {
|
|
|
- this.formMap = formMap;
|
|
|
- this.condition = condition;
|
|
|
- this.retMap = retMap;
|
|
|
- this.execlMap = execlMap;
|
|
|
- this.file = file;
|
|
|
+ public Map<String, Object> getBasicMap() {
|
|
|
+ return basicMap;
|
|
|
}
|
|
|
|
|
|
- public Map<String, Object> getFormMap() {
|
|
|
- return formMap;
|
|
|
+ public void setBasicMap(Map<String, Object> basicMap) {
|
|
|
+ this.basicMap = basicMap;
|
|
|
}
|
|
|
|
|
|
- public void setFormMap(Map<String, Object> formMap) {
|
|
|
- this.formMap = formMap;
|
|
|
+ public Map<String, Object> getQueryMap() {
|
|
|
+ return queryMap;
|
|
|
}
|
|
|
|
|
|
- public Map<String, Object> getCondition() {
|
|
|
- return condition;
|
|
|
+ public void setQueryMap(Map<String, Object> queryMap) {
|
|
|
+ this.queryMap = queryMap;
|
|
|
}
|
|
|
|
|
|
- public void setCondition(Map<String, Object> condition) {
|
|
|
- this.condition = condition;
|
|
|
+ public Map<String, Object> getConditionMap() {
|
|
|
+ return conditionMap;
|
|
|
}
|
|
|
|
|
|
- public Map<String, Object> getRetMap() {
|
|
|
- return retMap;
|
|
|
+ public void setConditionMap(Map<String, Object> conditionMap) {
|
|
|
+ this.conditionMap = conditionMap;
|
|
|
}
|
|
|
|
|
|
- public void setRetMap(Map<String, Object> retMap) {
|
|
|
- this.retMap = retMap;
|
|
|
+ public Map<String, Object> getResultMap() {
|
|
|
+ return resultMap;
|
|
|
}
|
|
|
|
|
|
- public Map<String, Object> getExeclMap() {
|
|
|
- return execlMap;
|
|
|
+ public void setResultMap(Map<String, Object> resultMap) {
|
|
|
+ this.resultMap = resultMap;
|
|
|
}
|
|
|
|
|
|
- public void setExeclMap(Map<String, Object> execlMap) {
|
|
|
- this.execlMap = execlMap;
|
|
|
+ public Map<String, Object> getCommMap() {
|
|
|
+ return commMap;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCommMap(Map<String, Object> commMap) {
|
|
|
+ this.commMap = commMap;
|
|
|
}
|
|
|
|
|
|
- public MultipartFile getFile() {
|
|
|
- return file;
|
|
|
+ public Map<String, Object> getExeclMap() {
|
|
|
+ return execlMap;
|
|
|
}
|
|
|
|
|
|
- public void setFile(MultipartFile file) {
|
|
|
- this.file = file;
|
|
|
+ public void setExeclMap(Map<String, Object> execlMap) {
|
|
|
+ this.execlMap = execlMap;
|
|
|
}
|
|
|
}
|