Commit 7a8332f6212fb08205384b2dead3f42cb697bbbe
1 parent
6c0dcc1f58
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 3 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/worker/QuanWeightWorker.java
View file @
7a8332f
... | ... | @@ -78,9 +78,10 @@ |
78 | 78 | BaseObjectResponse response = trackDownService.info(patients.getId(),3,0); |
79 | 79 | if (response != null && response.getErrorcode() == 0) |
80 | 80 | { |
81 | - Map<String, Object> down = (Map<String, Object>)response.getData(); | |
82 | - if (down != null) | |
81 | + List<Map<String, Object>> downs = ( List<Map<String, Object>>)response.getData(); | |
82 | + if (CollectionUtils.isNotEmpty(downs)) | |
83 | 83 | { |
84 | + Map<String, Object> down = (Map<String, Object>)downs.get(0); | |
84 | 85 | map.put("result",down.get("result")); |
85 | 86 | map.put("trackDownDate",down.get("trackDownDate")); |
86 | 87 | } |