北斗定位
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2KB

  1. package com.telpo.dipperposition.controller;
  2. import com.telpo.dipperposition.service.IDipperDataAsyncTaskService;
  3. import lombok.extern.slf4j.Slf4j;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.beans.factory.annotation.Value;
  6. import org.springframework.web.bind.annotation.RequestMapping;
  7. import org.springframework.web.bind.annotation.RestController;
  8. /**
  9. * @program: DipperPositionController
  10. * @description: 北斗定位
  11. * @author: linwl
  12. * @create: 2020-07-10 14:01
  13. */
  14. @RestController
  15. @Slf4j
  16. public class DipperDataAsyncTaskController {
  17. @Value(value = "${position-server.serverAddr}")
  18. private String serverAddr;
  19. //RzlAccount rzlAccount;
  20. @Autowired
  21. IDipperDataAsyncTaskService dipperDataAsyncTaskService;
  22. /*
  23. * 拉取星历数据
  24. */
  25. public void pullAstEPH() {
  26. dipperDataAsyncTaskService.pullAstEPH();
  27. }
  28. /*
  29. * 获取星历数据
  30. */
  31. public String getAstEPH() {
  32. log.info("DipperDataAsyncTaskController serverAddr = " + serverAddr);
  33. return dipperDataAsyncTaskService.getAstEPH();
  34. }
  35. @RequestMapping("/getPos")
  36. public String getPos() {
  37. return "return serverAddr = " + serverAddr;
  38. }
  39. }