Commit 194f810fae6df3b98e77df318c1e943adc23bd18
1 parent
bc11dd6964
Exists in
dev
小程序血糖历史报告查询
Showing 1 changed file with 6 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodSugarServiceImpl.java
View file @
194f810
| ... | ... | @@ -1191,7 +1191,8 @@ |
| 1191 | 1191 | List list = new ArrayList(); |
| 1192 | 1192 | |
| 1193 | 1193 | BloodSugarQuery bloodSugarQuery = new BloodSugarQuery(); |
| 1194 | - bloodSugarQuery.setIsExistReportDate(true); | |
| 1194 | + // 大同表里没有ReportDate 在这里赋值 | |
| 1195 | +// bloodSugarQuery.setIsExistReportDate(true); | |
| 1195 | 1196 | bloodSugarQuery.setParentId(parentId); |
| 1196 | 1197 | List<BloodSugar> bloodSugars = bloodSugarService.queryBloodSugarList(bloodSugarQuery, Sort.Direction.DESC, "reportDate"); |
| 1197 | 1198 | if (CollectionUtils.isNotEmpty(bloodSugars)) { |
| ... | ... | @@ -1200,6 +1201,10 @@ |
| 1200 | 1201 | Map<String, Object> reusltMap = new HashMap<>(); |
| 1201 | 1202 | reusltMap.put("id", bloodSugar.getId()); |
| 1202 | 1203 | |
| 1204 | + // 大同表里没有ReportDate 在这里赋值 | |
| 1205 | + if("2100002419".equals(bloodSugar.getHospitalId())){ | |
| 1206 | + bloodSugar.setReportDate(bloodSugar.getCreated()); | |
| 1207 | + } | |
| 1203 | 1208 | |
| 1204 | 1209 | int week = DateUtil.getWeek2(patients.getLastMenses(), bloodSugar.getReportDate()); |
| 1205 | 1210 |