Commit a1ba92bee1eeb8a484a9f144a351167624aa0a1d
1 parent
3d9599c531
Exists in
master
and in
1 other branch
code update
Showing 1 changed file with 5 additions and 4 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/JdbcUtil.java
View file @
a1ba92b
| ... | ... | @@ -1090,14 +1090,15 @@ |
| 1090 | 1090 | String dueWeek = getString(map.get("PI_GESTATIONALWEEKS")); |
| 1091 | 1091 | if (dueWeek != null && !"".equals(dueWeek)) |
| 1092 | 1092 | { |
| 1093 | - String sp = "\\u002B"; | |
| 1094 | - String str = dueWeek.split(sp)[0]; | |
| 1095 | - if (str != null && str.split(".").length > 0) | |
| 1093 | + | |
| 1094 | + if (dueWeek.contains(".") && dueWeek.split(".").length > 0) | |
| 1096 | 1095 | { |
| 1097 | - model.setDueWeek(Integer.parseInt(str.split(".")[0])); | |
| 1096 | + model.setDueWeek(Integer.parseInt(dueWeek.split(".")[0])); | |
| 1098 | 1097 | } |
| 1099 | 1098 | else |
| 1100 | 1099 | { |
| 1100 | + String sp = "\\u002B"; | |
| 1101 | + String str = dueWeek.split(sp)[0]; | |
| 1101 | 1102 | model.setDueWeek(Integer.parseInt(str)); |
| 1102 | 1103 | } |
| 1103 | 1104 |