Commit 1f320cd8ac02c58be681c6be3050b8649d529339
1 parent
ff9b31972c
Exists in
master
and in
6 other branches
基础数据配置修改为List数据结构
Showing 3 changed files with 12 additions and 12 deletions
platform-dal/src/main/java/com/lyms/platform/pojo/ModularFunctionConfigModel.java
View file @
1f320cd
... | ... | @@ -5,6 +5,7 @@ |
5 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
6 | 6 | |
7 | 7 | import java.util.Date; |
8 | +import java.util.List; | |
8 | 9 | import java.util.Map; |
9 | 10 | |
10 | 11 | /** |
... | ... | @@ -21,7 +22,7 @@ |
21 | 22 | //是否启用 0停用 1启用 |
22 | 23 | private String enable; |
23 | 24 | //功能模块的配置详情 |
24 | - private Map<String,Object> configs; | |
25 | + private List<Map<String,Object>> configs; | |
25 | 26 | private Date created; |
26 | 27 | private Date modified; |
27 | 28 | |
28 | 29 | |
... | ... | @@ -66,11 +67,11 @@ |
66 | 67 | this.enable = enable; |
67 | 68 | } |
68 | 69 | |
69 | - public Map<String, Object> getConfigs() { | |
70 | + public List<Map<String, Object>> getConfigs() { | |
70 | 71 | return configs; |
71 | 72 | } |
72 | 73 | |
73 | - public void setConfigs(Map<String, Object> configs) { | |
74 | + public void setConfigs(List<Map<String, Object>> configs) { | |
74 | 75 | this.configs = configs; |
75 | 76 | } |
76 | 77 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/ModularFunctionConfigRequest.java
View file @
1f320cd
... | ... | @@ -3,6 +3,7 @@ |
3 | 3 | import com.lyms.platform.common.base.IBasicRequestConvert; |
4 | 4 | import com.lyms.platform.pojo.ModularFunctionConfigModel; |
5 | 5 | |
6 | +import java.util.List; | |
6 | 7 | import java.util.Map; |
7 | 8 | |
8 | 9 | /** |
... | ... | @@ -14,7 +15,7 @@ |
14 | 15 | private String hospitalId; |
15 | 16 | //是否启用 0停用 1启用 |
16 | 17 | private String enable; |
17 | - private Map<String,Object> configs; | |
18 | + private List<Map<String,Object>> configs; | |
18 | 19 | |
19 | 20 | public String getId() { |
20 | 21 | return id; |
21 | 22 | |
... | ... | @@ -40,11 +41,11 @@ |
40 | 41 | this.enable = enable; |
41 | 42 | } |
42 | 43 | |
43 | - public Map<String, Object> getConfigs() { | |
44 | + public List<Map<String, Object>> getConfigs() { | |
44 | 45 | return configs; |
45 | 46 | } |
46 | 47 | |
47 | - public void setConfigs(Map<String, Object> configs) { | |
48 | + public void setConfigs(List<Map<String, Object>> configs) { | |
48 | 49 | this.configs = configs; |
49 | 50 | } |
50 | 51 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/ModularFunctionConfigResult.java
View file @
1f320cd
... | ... | @@ -3,6 +3,7 @@ |
3 | 3 | import com.lyms.platform.common.base.IBasicResultConvert; |
4 | 4 | import com.lyms.platform.pojo.ModularFunctionConfigModel; |
5 | 5 | |
6 | +import java.util.List; | |
6 | 7 | import java.util.Map; |
7 | 8 | |
8 | 9 | /** |
... | ... | @@ -14,10 +15,7 @@ |
14 | 15 | private String hospitalId; |
15 | 16 | //是否启用 0停用 1启用 |
16 | 17 | private String enable; |
17 | - private Map<String,Object> configs; | |
18 | - | |
19 | - | |
20 | - | |
18 | + private List<Map<String,Object>> configs; | |
21 | 19 | public String getId() { |
22 | 20 | return id; |
23 | 21 | } |
24 | 22 | |
... | ... | @@ -42,11 +40,11 @@ |
42 | 40 | this.enable = enable; |
43 | 41 | } |
44 | 42 | |
45 | - public Map<String, Object> getConfigs() { | |
43 | + public List<Map<String, Object>> getConfigs() { | |
46 | 44 | return configs; |
47 | 45 | } |
48 | 46 | |
49 | - public void setConfigs(Map<String, Object> configs) { | |
47 | + public void setConfigs(List<Map<String, Object>> configs) { | |
50 | 48 | this.configs = configs; |
51 | 49 | } |
52 | 50 |