|
@@ -4,13 +4,10 @@ package com.bofeng.service;
|
|
|
import com.baomidou.mybatisplus.toolkit.IdWorker;
|
|
|
import com.bofeng.dao.MsReportMapper;
|
|
|
import com.bofeng.dao.MsSuspectedMapper;
|
|
|
-import com.bofeng.dao.MsTripMapper;
|
|
|
import com.bofeng.entity.MsReport;
|
|
|
import com.bofeng.entity.MsSuspected;
|
|
|
-import com.bofeng.entity.MsTrip;
|
|
|
import com.bofeng.entity.MsTripDet;
|
|
|
import com.yvan.platform.Conv;
|
|
|
-import io.swagger.models.auth.In;
|
|
|
import org.joda.time.DateTime;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -44,6 +41,17 @@ public class MsSuspectedService {
|
|
|
return msSuspectedMapper.selectBySuspectedId(suspectedId);
|
|
|
}
|
|
|
|
|
|
+ //获取最近的定位
|
|
|
+ @Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
|
|
|
+ public String getLatelyAutoLocal(long userId) {
|
|
|
+ MsSuspected msSuspected = msSuspectedMapper.selectLatelyAutoLocal(userId);
|
|
|
+ if (msSuspected != null) {
|
|
|
+ return msSuspected.getAutoLocal();
|
|
|
+ } else {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//查询家人
|
|
|
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
|
|
|
public List<MsTripDet> selectTripSuspected(long suspectedId) {
|