소스 검색

温度列表增加personId。

zhengqiang 5 년 전
부모
커밋
7a3261d146
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/src/main/java/com/jpsoft/smart/modules/mobile/controller/PersonDeviceLogApiController.java

+ 1 - 1
web/src/main/java/com/jpsoft/smart/modules/mobile/controller/PersonDeviceLogApiController.java

@@ -158,7 +158,7 @@ public class PersonDeviceLogApiController {
                         .sorted(Comparator.comparing(PersonDeviceLog::getRecordTime))
                         .map((log)->{
                             Map<String,Object> map = new HashMap<>();
-                            map.put("personId",log.getPersonId());
+                            map.put("id",log.getId());
                             map.put("temperature",log.getTemperature());
                             map.put("recordTime",sdf.format(log.getRecordTime()));