Commit 55ef590a by 杨林龙

优化定位接口

1 parent 220ce731
...@@ -98,10 +98,12 @@ public interface GpsBsFeignService { ...@@ -98,10 +98,12 @@ public interface GpsBsFeignService {
/** /**
* 根据设备号和报警时间获取报警时间的定位 * 根据设备号和报警时间获取报警时间的定位
* *
* @param sn 设备号 * @param sn 设备号
* @param alarmTime 报警时间 * @param deviceCode 设备类型
* @return 报警时间的定位数据 * @param alarmStartTime 报警开始时间
* @param alarmEndTime 报警结束时间
* @return 定位数据
*/ */
@GetMapping(value = "/getLocationOfAlarmTime") @GetMapping(value = "/getLocationOfAlarmTime")
R<GpsBsData> getLocationOfAlarmTime(@RequestParam String sn, @RequestParam String alarmTime); R<GpsBsData> getLocationOfAlarmTime(@RequestParam String sn, @RequestParam String deviceCode, @RequestParam String alarmStartTime, @RequestParam String alarmEndTime);
} }
...@@ -90,8 +90,9 @@ public class GpsBsServiceFallbackImpl implements GpsBsFeignService { ...@@ -90,8 +90,9 @@ public class GpsBsServiceFallbackImpl implements GpsBsFeignService {
} }
@Override @Override
public R<GpsBsData> getLocationOfAlarmTime(String sn, String alarmTime) { public R<GpsBsData> getLocationOfAlarmTime(String sn, String deviceCode, String alarmStartTime, String alarmEndTime) {
log.info("getLocationOfAlarmTime 熔断啦==={}", cause.getMessage()); log.info("getLocationOfAlarmTime 熔断啦==={}", cause.getMessage());
return R.error("无数据"); return R.error("无数据");
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!