Commit 2b18adec98dc4350c34b6b28d15149c73afd4bbd
1 parent
70c81cf312
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 25 additions and 9 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AreaCountFacade.java
View file @
2b18ade
... | ... | @@ -9,10 +9,7 @@ |
9 | 9 | import com.lyms.platform.common.result.BaseListResponse; |
10 | 10 | import com.lyms.platform.common.result.BaseObjectResponse; |
11 | 11 | import com.lyms.platform.common.result.BaseResponse; |
12 | -import com.lyms.platform.common.utils.DateUtil; | |
13 | -import com.lyms.platform.common.utils.ExcelUtil; | |
14 | -import com.lyms.platform.common.utils.ExceptionUtils; | |
15 | -import com.lyms.platform.common.utils.StringUtils; | |
12 | +import com.lyms.platform.common.utils.*; | |
16 | 13 | import com.lyms.platform.operate.web.result.TicketListResult; |
17 | 14 | import com.lyms.platform.operate.web.utils.JdbcUtil; |
18 | 15 | import com.lyms.platform.operate.web.utils.ResponseUtil; |
19 | 16 | |
... | ... | @@ -41,11 +38,12 @@ |
41 | 38 | @Component |
42 | 39 | public class AreaCountFacade { |
43 | 40 | |
44 | - private static final String DRIVER = "oracle.jdbc.driver.OracleDriver"; | |
45 | - private static final String JDBC = "jdbc:oracle:thin:@119.90.57.26:1522:orcl"; | |
46 | - private static final String NAME = "LYMS_ODS"; | |
47 | - private static final String PWD = "Welcome1"; | |
41 | + private static final String DRIVER; | |
42 | + private static final String JDBC; | |
43 | + private static final String NAME; | |
44 | + private static final String PWD; | |
48 | 45 | |
46 | + | |
49 | 47 | @Autowired |
50 | 48 | private AutoMatchFacade autoMatchFacade; |
51 | 49 | |
... | ... | @@ -67,7 +65,25 @@ |
67 | 65 | node_map.put(1,"16~20 孕周"); |
68 | 66 | node_map.put(2,"21~24 孕周"); |
69 | 67 | node_map.put(3,"28~36 孕周"); |
70 | - node_map.put(4,"37~ 分娩"); | |
68 | + node_map.put(4, "37~ 分娩"); | |
69 | + | |
70 | + String version = PropertiesUtils.getPropertyValue("his_version"); | |
71 | + if ("4".equals(version)) | |
72 | + { | |
73 | + //秦皇岛 | |
74 | + DRIVER = "oracle.jdbc.driver.OracleDriver"; | |
75 | + JDBC = "jdbc:oracle:thin:@127.0.0.1:1521:orcl"; | |
76 | + NAME = "LYMS_ODS"; | |
77 | + PWD = "Welcome1"; | |
78 | + } | |
79 | + else | |
80 | + { | |
81 | + //线上 | |
82 | + DRIVER = "oracle.jdbc.driver.OracleDriver"; | |
83 | + JDBC = "jdbc:oracle:thin:@119.90.57.26:1522:orcl"; | |
84 | + NAME = "LYMS_ODS"; | |
85 | + PWD = "Welcome1"; | |
86 | + } | |
71 | 87 | } |
72 | 88 | |
73 | 89 | private static String getNodeName(Integer nodeName) |