Commit 90e9cb38 by 向延琳

补齐缺失的字段赋值

1 parent 404669ca
......@@ -89,6 +89,10 @@ public class FspComponent {
resident.setTotalTimes(resideBaseInfo.totalTimes);
resident.setLatitude(String.valueOf(resideBaseInfo.gps.latitude));
resident.setLongitude(String.valueOf(resideBaseInfo.gps.longitude));
resident.setBlat(String.valueOf(resideBaseInfo.gps.blat));
resident.setBlng(String.valueOf(resideBaseInfo.gps.blat));
resident.setElat(String.valueOf(resideBaseInfo.gps.glat));
resident.setElng(String.valueOf(resideBaseInfo.gps.glng));
return resident;
}
}
......@@ -32,7 +32,7 @@ class ResidentServiceImplTest {
@Test
public void GetResidentList() {
ResidentRequest request = new ResidentRequest();
request.setSn("3010005996");
request.setSn("60907150063");
request.setBeginTime("2012-01-01 00:00:00");
request.setEndTime(DateUtils.getNowDateTimeFormat());
request.setTimes(4);
......
......@@ -32,9 +32,9 @@ class StayPointServiceImplTest {
@Test
public void testGetStayPointRecord() {
StayPointRequest request = new StayPointRequest();
request.setSn("1274977336");
request.setBeginTime(new Date(1648742400000L));
request.setEndTime(new Date(1651161600000L));
request.setSn("60907150063");
request.setBeginTime(new Date(1640966400000L));
request.setEndTime(new Date(1652716800000L));
request.setPeriodType(0);
List<StayPointRecordDTO> stayPointRecord = stayPointService.getStayPointRecord(request);
System.out.println(JSON.toJSONString(stayPointRecord));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!