Commit 3d9599c531eb70827d3ad692e4949151e6b7c3df
1 parent
95b71f0cc7
Exists in
master
and in
8 other branches
code update
Showing 2 changed files with 13 additions and 6 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/JdbcUtil.java
View file @
3d9599c
| ... | ... | @@ -1091,7 +1091,16 @@ |
| 1091 | 1091 | if (dueWeek != null && !"".equals(dueWeek)) |
| 1092 | 1092 | { |
| 1093 | 1093 | String sp = "\\u002B"; |
| 1094 | - model.setDueWeek(Integer.parseInt(dueWeek.split(sp)[0])); | |
| 1094 | + String str = dueWeek.split(sp)[0]; | |
| 1095 | + if (str != null && str.split(".").length > 0) | |
| 1096 | + { | |
| 1097 | + model.setDueWeek(Integer.parseInt(str.split(".")[0])); | |
| 1098 | + } | |
| 1099 | + else | |
| 1100 | + { | |
| 1101 | + model.setDueWeek(Integer.parseInt(str)); | |
| 1102 | + } | |
| 1103 | + | |
| 1095 | 1104 | } |
| 1096 | 1105 | |
| 1097 | 1106 | mongoTemplate.save(model); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
View file @
3d9599c
| ... | ... | @@ -96,10 +96,9 @@ |
| 96 | 96 | |
| 97 | 97 | |
| 98 | 98 | @RequestMapping(value = "/syncData", method = RequestMethod.GET) |
| 99 | - public void syncData( @RequestParam(required = true) final String hid) { | |
| 100 | - | |
| 99 | + @ResponseBody | |
| 100 | + public String syncData(@RequestParam(required = true) final String hid) { | |
| 101 | 101 | final MongoTemplate template = mongoTemplate; |
| 102 | - | |
| 103 | 102 | new Thread(new Runnable() { |
| 104 | 103 | @Override |
| 105 | 104 | public void run() { |
| ... | ... | @@ -108,8 +107,7 @@ |
| 108 | 107 | System.out.print("同步结束>>>>>>>>>>>>>>>>>>>>>>>>>"); |
| 109 | 108 | } |
| 110 | 109 | }).start(); |
| 111 | - | |
| 112 | - | |
| 110 | + return "starting..........."; | |
| 113 | 111 | } |
| 114 | 112 | } |