Pārlūkot izejas kodu

202410150945 #comment 仓库初始化

HongJoLong 8 mēneši atpakaļ
revīzija
986dfbe3c7
100 mainītis faili ar 4345 papildinājumiem un 0 dzēšanām
  1. 50 0
      .gitignore
  2. 0 0
      README.md
  3. 46 0
      orbit-base-biz/base-biz-api/pom.xml
  4. 49 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/AntennaRpcService.java
  5. 27 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/FzTaskRpcService.java
  6. 26 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/InstanceRpcService.java
  7. 16 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/LinkCountRpcService.java
  8. 22 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/PayloadRpcService.java
  9. 30 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/PointRpcService.java
  10. 24 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/SatelliteAppendixRpcService.java
  11. 42 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/SatelliteRpcService.java
  12. 17 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/SatelliteStationMatchRpcService.java
  13. 20 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/SceneBasisTargetRpcService.java
  14. 25 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/SceneTargetPointRpcService.java
  15. 27 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/StationRpcService.java
  16. 21 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/TragetDemandRpcService.java
  17. 54 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/AntennaRpcDTO.java
  18. 34 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/BizTaskStepEnum.java
  19. 63 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/FzTaskRpcDTO.java
  20. 36 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/InstanceRpcDTO.java
  21. 48 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/PayloadRpcDTO.java
  22. 12 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/PayloadWorkModeRpcDTO.java
  23. 28 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/PointRpcDTO.java
  24. 7 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/PointTypeEnums.java
  25. 62 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/SatelliteAppendixRpcDTO.java
  26. 85 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/SatelliteRpcDTO.java
  27. 57 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/SatelliteStationMatchRpcDTO.java
  28. 183 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/SceneBasisTargetRpcDTO.java
  29. 77 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/SceneTargetPointRpcDTO.java
  30. 53 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/StationRpcDTO.java
  31. 17 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/SystemIndicatorRpcDTO.java
  32. 43 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/TargetDemandRpcDTO.java
  33. 26 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/TargetRpcDTO.java
  34. 23 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/FzTaskInfoRpcReqDTO.java
  35. 14 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/FzTaskInfoUpdateRpcDTO.java
  36. 15 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/PayloadRpcReqDTO.java
  37. 18 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/PointListRpcReqDTO.java
  38. 35 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/QueryLinkCountDTO.java
  39. 42 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/QueryPayloadAddRpcDTO.java
  40. 157 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/QuerySatelliteAddRpcDTO.java
  41. 46 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/QueryStationAddRpcDTO.java
  42. 18 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/TaskStateNotice.java
  43. 70 0
      orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/UpdateSatelliteRpcDTO.java
  44. 155 0
      orbit-base-biz/base-biz-service/pom.xml
  45. 23 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/BizApplication.java
  46. 14 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/aop/PageDTO.java
  47. 115 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/aop/PageInfo.java
  48. 22 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/config/CorsConfig.java
  49. 61 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/config/DataSourceConfig.java
  50. 170 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/config/IdGenerator.java
  51. 63 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/config/Swagger2Config.java
  52. 46 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/AntennaController.java
  53. 28 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/CheckController.java
  54. 143 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/DemandManagerController.java
  55. 20 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/EmulationTaskController.java
  56. 35 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/FzTaskController.java
  57. 33 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/InstanceController.java
  58. 31 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/LinkCountController.java
  59. 26 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/LogRecordController.java
  60. 28 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/PayloadController.java
  61. 57 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/SatelliteController.java
  62. 62 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/StationController.java
  63. 39 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/TargetController.java
  64. 57 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/TargetDemandController.java
  65. 81 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/AntennaRpcController.java
  66. 60 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/FzTaskRpcController.java
  67. 41 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/InstanceRpcController.java
  68. 32 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/LinkCountRpcController.java
  69. 38 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/PayloadRpcController.java
  70. 46 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/PointRpcController.java
  71. 38 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/SatelliteAppendixRpcController.java
  72. 66 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/SatelliteRpcController.java
  73. 29 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/SatelliteStationMatchRpcController.java
  74. 43 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/SceneBasisTargetRpcController.java
  75. 39 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/SceneTargetPointRpcController.java
  76. 59 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/StationRpcController.java
  77. 40 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/TragetDemandRpcController.java
  78. 35 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/AntennaInfoMapper.java
  79. 7 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/BasePlatformDispatchTaskInfoMapper.java
  80. 15 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/CheckMapper.java
  81. 25 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/FzTaskInfoMapper.java
  82. 22 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/InstanceInfoMapper.java
  83. 27 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/LogRecordMapper.java
  84. 47 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/PayloadInfoMapper.java
  85. 14 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/PointInfoMapper.java
  86. 39 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/SatelliteAppendixMapper.java
  87. 44 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/SatelliteInfoMapper.java
  88. 20 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/SatelliteStationMatchMapper.java
  89. 20 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/SceneBasisSceneMapper.java
  90. 29 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/SceneBasisTargetMapper.java
  91. 20 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/SceneSceneTargetMapper.java
  92. 56 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/SceneTargetPointMapper.java
  93. 26 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/StationInfoMapper.java
  94. 46 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/TargetDemandMapper.java
  95. 11 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/model/KeyValueDTO.java
  96. 18 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/model/PointDTO.java
  97. 82 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/model/dto/BasePlatformDispatchTaskDTO.java
  98. 66 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/model/dto/FzTaskDTO.java
  99. 36 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/model/dto/InstanceInfoDTO.java
  100. 35 0
      orbit-base-biz/base-biz-service/src/main/java/com/base/biz/model/dto/LinkMarginParamDTO.java

+ 50 - 0
.gitignore

@@ -0,0 +1,50 @@
+######################################################################
+# Build Tools
+
+.gradle
+/build/
+!gradle/wrapper/gradle-wrapper.jar
+
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+######################################################################
+# IDE
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### JRebel ###
+rebel.xml
+### NetBeans ###
+nbproject/private/
+build/*
+nbbuild/
+dist/
+nbdist/
+.nb-gradle/
+
+######################################################################
+# Others
+*.log
+*.xml.versionsBackup
+*.swp
+
+!*/build/*.java
+!*/build/*.html
+!*/build/*.xml
+/train-base-plan/train-plan-service/target/
+/train-base-gateway/target/

+ 0 - 0
README.md


+ 46 - 0
orbit-base-biz/base-biz-api/pom.xml

@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+	<parent>
+		<artifactId>orbit-base-biz</artifactId>
+		<groupId>orbit.base.server</groupId>
+		<version>0.0.1</version>
+	</parent>
+	<modelVersion>4.0.0</modelVersion>
+
+	<artifactId>base-biz-api</artifactId>
+
+	<properties>
+		<maven.compiler.source>8</maven.compiler.source>
+		<maven.compiler.target>8</maven.compiler.target>
+		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+	</properties>
+
+	<dependencies>
+		<dependency>
+			<groupId>org.projectlombok</groupId>
+			<artifactId>lombok</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.springframework.cloud</groupId>
+			<artifactId>spring-cloud-openfeign-core</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.springframework.cloud</groupId>
+			<artifactId>spring-cloud-starter-openfeign</artifactId>
+		</dependency>
+	<!--	<dependency>
+			<groupId>orbit.base.server</groupId>
+			<artifactId>framework-task</artifactId>
+			<version>0.0.1</version>
+		</dependency>-->
+
+		<!--data source-->
+		<dependency>
+			<groupId>com.baomidou</groupId>
+			<artifactId>mybatis-plus-boot-starter</artifactId>
+		</dependency>
+	</dependencies>
+
+</project>

+ 49 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/AntennaRpcService.java

@@ -0,0 +1,49 @@
+package com.base.api.client;
+
+
+import com.base.api.model.AntennaRpcDTO;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.PostMapping;
+
+import java.util.List;
+
+@FeignClient(name = "orbit-base-biz", contextId = "antenna")
+public interface AntennaRpcService {
+
+
+    /**
+     * 根据地面站Code查询天线信息
+     */
+    @PostMapping(value = "/rpc/antena/getInfoList")
+    public List<AntennaRpcDTO> getInfoList(AntennaRpcDTO antennaRpcDTO);
+
+    /**
+     * 新增或修改天线信息
+     *
+     * @param antennaInfo
+     * @return
+     */
+    @PostMapping(value = "/rpc/antena/upOrSaveAntena")
+    public Boolean upOrSaveAntena(AntennaRpcDTO antennaInfo);
+
+    /**
+     * 根据地面站id删除天线信息
+     */
+    @PostMapping(value = "/rpc/antena/delAntenaInfoByIds")
+    public Boolean delAntenaInfoByIds(List<String> ids);
+
+    /**
+     * 根据地面站id查询天线信息
+     */
+    @PostMapping(value = "/rpc/antena/selAntenaInfoByIds")
+    public List<AntennaRpcDTO> selAntenaInfoByIds(List<String> ids);
+
+    /**
+     * 查询所有天线信息
+     */
+    @PostMapping(value = "/rpc/antena/selAllAntenaInfos")
+    public List<AntennaRpcDTO> selAllAntenaInfos();
+
+
+
+}

+ 27 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/FzTaskRpcService.java

@@ -0,0 +1,27 @@
+package com.base.api.client;
+
+import com.base.api.model.FzTaskRpcDTO;
+import com.base.api.model.request.FzTaskInfoRpcReqDTO;
+import com.base.api.model.request.FzTaskInfoUpdateRpcDTO;
+import com.base.api.model.request.TaskStateNotice;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@FeignClient(name = "orbit-base-biz", contextId = "fzTask")
+public interface FzTaskRpcService {
+
+    @RequestMapping(value = "/rpc/fz/list",method = RequestMethod.POST)
+    public List<FzTaskRpcDTO> getFzTaskDTOList(@RequestBody FzTaskInfoRpcReqDTO req);
+
+    @PostMapping("/rpc/fz/update")
+    public void updateTaskDTO(@RequestBody FzTaskInfoUpdateRpcDTO req);
+
+    @PostMapping("/rpc/fz/step/notice")
+    public void taskStepStateUpdate(@RequestBody TaskStateNotice taskStateNotice);
+
+    @PostMapping("/rpc/fz/step/delete")
+    public void taskStepStateDelete(@RequestBody TaskStateNotice taskStateNotice);
+
+}

+ 26 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/InstanceRpcService.java

@@ -0,0 +1,26 @@
+package com.base.api.client;
+
+import com.base.api.model.InstanceRpcDTO;
+import com.base.api.model.request.UpdateSatelliteRpcDTO;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@FeignClient(name = "orbit-base-biz",contextId = "instance")
+public interface InstanceRpcService {
+
+    @RequestMapping(value = "/rpc/instance/list", method = RequestMethod.GET)
+    public List<InstanceRpcDTO> queryNewestInstance();
+
+
+    @RequestMapping(value = "/rpc/instance/getListBySatelliteCode", method = RequestMethod.GET)
+    public List<InstanceRpcDTO> getListBySatelliteCode(List<String> satelliteCodes);
+
+    @RequestMapping(value = "/rpc/instance/deleteBySatelliteCode", method = RequestMethod.GET)
+    public void deleteBySatelliteCode(String satelliteCode);
+
+
+    @PostMapping("/rpc/instance/save")
+    public void save(@RequestBody InstanceRpcDTO req);
+}

+ 16 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/LinkCountRpcService.java

@@ -0,0 +1,16 @@
+package com.base.api.client;
+
+
+import com.base.api.model.request.QueryLinkCountDTO;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+
+@FeignClient(name = "orbit-base-biz",contextId = "linkCount")
+public interface LinkCountRpcService {
+
+    // 根据地面站代号集合查询地面站信息
+    @PostMapping(value = "/rpc/linkCount/count")
+    Double linkCount(@RequestBody QueryLinkCountDTO req);
+
+}

+ 22 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/PayloadRpcService.java

@@ -0,0 +1,22 @@
+package com.base.api.client;
+
+import com.base.api.model.request.PayloadRpcReqDTO;
+import com.base.api.model.PayloadRpcDTO;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+import java.util.List;
+
+@FeignClient(name = "orbit-base-biz",contextId = "payload")
+public interface PayloadRpcService {
+
+    @RequestMapping(value = "/rpc/payload/list",method = RequestMethod.POST)
+    public List<PayloadRpcDTO> getPayloadRpcDTOList(@RequestBody PayloadRpcReqDTO req);
+
+    @RequestMapping(value = "/rpc/payload/getAllList",method = RequestMethod.POST)
+    public List<PayloadRpcDTO> getAllList();
+
+}

+ 30 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/PointRpcService.java

@@ -0,0 +1,30 @@
+package com.base.api.client;
+
+import com.base.api.model.PointRpcDTO;
+import com.base.api.model.request.PointListRpcReqDTO;
+import com.base.api.model.request.TaskStateNotice;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+import java.util.List;
+
+@FeignClient(name = "orbit-base-biz", contextId = "point")
+public interface PointRpcService {
+
+    @RequestMapping(value = "/point/list", method = RequestMethod.POST)
+    List<PointRpcDTO> getPointDTOList(@RequestBody PointListRpcReqDTO req);
+
+    @RequestMapping(value = "/point/add", method = RequestMethod.POST)
+    void addPointList(@RequestBody List<PointRpcDTO> sortPointInfos);
+
+    @PostMapping("/point/delete")
+    public void deletePointDTO(@RequestBody PointListRpcReqDTO pointListRpcReqDTO);
+
+    @PostMapping("/point/deleteByIds")
+    public Boolean deleteByIds(@RequestBody List<String> ids);
+
+
+}

+ 24 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/SatelliteAppendixRpcService.java

@@ -0,0 +1,24 @@
+package com.base.api.client;
+
+import com.base.api.model.SatelliteAppendixRpcDTO;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+
+import java.util.List;
+
+@FeignClient(name = "orbit-base-biz", contextId = "appendix")
+public interface SatelliteAppendixRpcService {
+
+    @PostMapping("/rpc/appendix/getList")
+    List<SatelliteAppendixRpcDTO> getList(@RequestBody List<String> satelliteCode);
+
+    @PostMapping("/rpc/appendix/update/add")
+    void updateAdd();
+
+    @PostMapping("/rpc/appendix/save")
+    void save();
+
+    @PostMapping("/rpc/appendix/remove")
+    void remove(String id);
+}

+ 42 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/SatelliteRpcService.java

@@ -0,0 +1,42 @@
+package com.base.api.client;
+
+
+import com.base.api.model.SatelliteRpcDTO;
+import com.base.api.model.request.FzTaskInfoRpcReqDTO;
+import com.base.api.model.request.UpdateSatelliteRpcDTO;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@FeignClient(name = "orbit-base-biz",contextId = "satellite")
+public interface SatelliteRpcService {
+    /**
+     * 查询卫星信息
+     *
+     */
+    @RequestMapping(value = "/rpc/satellite/listall", method = RequestMethod.GET)
+    public List<SatelliteRpcDTO> list();
+
+    /**
+     * 查询卫星信息
+     *@param
+     */
+    @PostMapping("/rpc/satellite/listbyids")
+    public List<SatelliteRpcDTO> listByIds(List<String> satelliteCodes);
+
+    /**
+     * 查询卫星信息
+     *@param
+     */
+    @PostMapping("/rpc/satellite/queryAllSatelliteByIds")
+    public List<SatelliteRpcDTO> queryAllSatelliteByIds(List<String> satelliteids);
+
+    /**
+     * 更新卫星固存占用信息
+     *@param
+     */
+    @PostMapping("/rpc/satellite/update")
+    public void update(@RequestBody UpdateSatelliteRpcDTO req);
+
+}

+ 17 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/SatelliteStationMatchRpcService.java

@@ -0,0 +1,17 @@
+package com.base.api.client;
+
+import com.base.api.model.SatelliteStationMatchRpcDTO;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+
+import java.util.List;
+
+@FeignClient(name = "orbit-base-biz", contextId = "stationmatch")
+public interface SatelliteStationMatchRpcService {
+
+    @RequestMapping(value = "/rpc/stationmatch/list", method = RequestMethod.GET)
+    public List<SatelliteStationMatchRpcDTO> getBySatelliteCodeAndStationCode(@RequestParam("satelliteCodeList") List<String> satelliteCodeList, @RequestParam("stationCodeList")List<String> stationCodeList);
+}

+ 20 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/SceneBasisTargetRpcService.java

@@ -0,0 +1,20 @@
+package com.base.api.client;
+
+
+import com.base.api.model.SceneBasisTargetRpcDTO;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+
+import java.util.List;
+
+@FeignClient(name = "orbit-base-biz", contextId = "target")
+public interface SceneBasisTargetRpcService {
+
+    @GetMapping("/target/detail")
+    public SceneBasisTargetRpcDTO getTargetByCode(@RequestParam("code") String code);
+    @PostMapping("/target/list")
+    public List<SceneBasisTargetRpcDTO> getTargetByCodes(List<String> targetCodes);
+
+}

+ 25 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/SceneTargetPointRpcService.java

@@ -0,0 +1,25 @@
+package com.base.api.client;
+
+
+import com.base.api.model.SceneTargetPointRpcDTO;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+
+import java.util.List;
+import java.util.Set;
+
+@FeignClient(name = "orbit-base-biz", contextId = "targetPoint")
+public interface SceneTargetPointRpcService {
+
+    /**
+     * 根据目标id,查询点列表
+     * @param targetId 目标id
+     * @return 点列表
+     */
+    @GetMapping("/targetPoint/list/by/targetId")
+    public List<SceneTargetPointRpcDTO> getPointListByTargetId(@RequestParam("targetId") String targetId);
+
+
+}

+ 27 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/StationRpcService.java

@@ -0,0 +1,27 @@
+package com.base.api.client;
+
+
+import com.base.api.model.StationRpcDTO;
+import com.base.api.model.request.QueryStationAddRpcDTO;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+import java.util.List;
+import java.util.Set;
+
+@FeignClient(name = "orbit-base-biz",contextId = "station")
+public interface StationRpcService {
+
+     // 根据地面站代号集合查询地面站信息
+     @RequestMapping(value = "/rpc/station/listbystationids", method = RequestMethod.POST)
+     List<QueryStationAddRpcDTO> getStationListByStationIdList(List<String> stationIdList);
+     // 根据地面站代号集合查询地面站信息
+     @RequestMapping(value = "/rpc/station/setbystationids", method = RequestMethod.POST)
+     List<QueryStationAddRpcDTO> getStationListByStationIdSet(Set<String> stationIdList);
+
+     @RequestMapping(value = "/rpc/station/getAllList",method = RequestMethod.POST)
+     public List<StationRpcDTO> getAllList();
+
+
+}

+ 21 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/client/TragetDemandRpcService.java

@@ -0,0 +1,21 @@
+package com.base.api.client;
+
+
+import com.base.api.model.TargetDemandRpcDTO;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+
+import java.util.List;
+import java.util.Set;
+
+@FeignClient(name = "orbit-base-biz", contextId = "tragetDemand")
+public interface TragetDemandRpcService {
+
+    @PostMapping({"/rpc/tragetDemand/selTargetDemandByParentId"})
+    List<TargetDemandRpcDTO> selTargetDemandByParentId(Set<String> parents);
+
+
+    @PostMapping({"/rpc/tragetDemand/demand/commit"})
+    void batchStatus(@RequestBody List<TargetDemandRpcDTO> list);
+}

+ 54 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/AntennaRpcDTO.java

@@ -0,0 +1,54 @@
+package com.base.api.model;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import java.time.LocalDateTime;
+
+
+@Data
+public class AntennaRpcDTO {
+
+    private String id;
+
+    @ApiModelProperty("载波频率")
+    private String zbpl;
+
+    @ApiModelProperty("码速率")
+    private String msl;
+
+    @ApiModelProperty("接收极化方式")
+    private String jsjhfs;
+
+    @ApiModelProperty("接收频段")
+    private String jspd;
+
+    @ApiModelProperty("接收速率")
+    private String jssl;
+
+    @ApiModelProperty("任务最短切换时间")
+    private String rwzdqhsj;
+
+    @ApiModelProperty("最小接收仰角(计算使用)")
+    private String zxjsyj;
+
+    @ApiModelProperty("最小跟踪仰角")
+    private String zxgzyj;
+
+    @ApiModelProperty("地面站GT")
+    @TableField(value = "dmzGT")
+    private String dmzGT;
+
+    @ApiModelProperty("天线口径")
+    private String txkj;
+
+    @ApiModelProperty("地面站代号")
+    private String dmzdh;
+
+    @ApiModelProperty("创建时间")
+    private LocalDateTime createTime;
+
+    @ApiModelProperty("修改时间")
+    private LocalDateTime updateTime;
+
+}

+ 34 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/BizTaskStepEnum.java

@@ -0,0 +1,34 @@
+package com.base.api.model;
+
+public enum BizTaskStepEnum  {
+
+    /**
+     * 任务获取
+     */
+    TASK_GET,
+    /**
+     * 仿真
+     */
+    TASK_ACCESS_COMPUTE,
+    /**
+     * 区域优选
+     */
+    AREA_OPTIMIZATION,
+    /**
+     * 地面站优选
+     */
+    TASK_PLANNING,
+    /**
+     * 任务下发
+     */
+    TASK_MAKE_PUBLISH,
+    /**
+     * 任务执行
+     */
+    TASK_EXECUTE,
+    /**
+     * 任务完成
+     */
+    TASK_FINISH;
+
+}

+ 63 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/FzTaskRpcDTO.java

@@ -0,0 +1,63 @@
+package com.base.api.model;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Date;
+import java.util.List;
+import java.util.Objects;
+
+@Data
+public class FzTaskRpcDTO {
+
+    private String id;
+    @ApiModelProperty("仿真任务编号")
+    private String reqId;
+    @ApiModelProperty("目标名称")
+    private String targetName;
+    @ApiModelProperty("目标编号")
+    private String targetCode;
+    @ApiModelProperty("目标编号")
+    private List<String> targetCodes;
+    @ApiModelProperty("仿真任务开始时间")
+    private Date startTime;
+    @ApiModelProperty("仿真任务结束时间")
+    private Date endTime;
+    @ApiModelProperty("优先级")
+    private String priority;
+    @ApiModelProperty("任务提出时间")
+    private Date emulationMakeTime;
+    @ApiModelProperty("需求有效期开始时间")
+    private Date reqStartTime;
+    @ApiModelProperty("需求有效期结束时间")
+    private Date reqEndTime;
+    @ApiModelProperty("目标范围")
+    private List<PointRpcDTO> pointDTOList;
+    @ApiModelProperty("绑定载荷")
+    private List<String> payloadIdList;
+    @ApiModelProperty("当前任务状态 0待执行 1执行中 2成功 3失败")
+    private String fzTaskState;
+    @ApiModelProperty("错误信息")
+    private String errorInfo;
+    @ApiModelProperty("当前步骤 TASK_GET,TASK_ACCESS_COMPUTE,TASK_PLANNING,TASK_MAKE_PUBLISH")
+    private String fzTaskStep;
+    @ApiModelProperty("覆盖率")
+    private String coverageResult;
+    @ApiModelProperty("任务Id")
+    private String taskId;
+    @ApiModelProperty("工作模式")
+    private String workMode;
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (o == null || getClass() != o.getClass()) return false;
+        FzTaskRpcDTO fzTaskDTO = (FzTaskRpcDTO) o;
+        return Objects.equals(reqId, fzTaskDTO.reqId);
+    }
+
+    @Override
+    public int hashCode() {
+        return Objects.hash(reqId);
+    }
+}

+ 36 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/InstanceRpcDTO.java

@@ -0,0 +1,36 @@
+package com.base.api.model;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.util.Date;
+
+@Data
+public class InstanceRpcDTO {
+
+    private String Id;
+    @ApiModelProperty("卫星代号")
+    private String satelliteCode;
+    @ApiModelProperty("圈号")
+    private String orbitNum;
+    @ApiModelProperty("历元时刻(北京时间)")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date epochTime;
+    @ApiModelProperty("轨道半径长 米")
+    private String semiMajorAxis;
+    @ApiModelProperty("偏心率")
+    private String eccentricity;
+    @ApiModelProperty("轨道倾角")
+    private String inclination;
+    @ApiModelProperty("近地点俯角")
+    private String argumentOfPerigee;
+    @ApiModelProperty("平近点角")
+    private String meanAnoMaly;
+    @ApiModelProperty("升交点赤经")
+    private String raan;
+
+
+}

+ 48 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/PayloadRpcDTO.java

@@ -0,0 +1,48 @@
+package com.base.api.model;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+public class PayloadRpcDTO {
+
+    private String id;
+    @ApiModelProperty("卫星id")
+    private String satelliteId;
+    @ApiModelProperty("卫星编号")
+    private String satelliteCode;
+    @ApiModelProperty("载荷类型 1可见光/微光 2红外 3微波 4SAR 5掩星")
+    private String payloadType;
+    @ApiModelProperty("载荷系列")
+    private String payloadSeries;
+    @ApiModelProperty("分辨率 单位米")
+    private Double groundResolution;
+    @ApiModelProperty("幅宽,单位米")
+    private Double swathWidth;
+    @ApiModelProperty("地面站录放比")
+    private Double dmPlaybackRatio;
+    @ApiModelProperty("中继星录放比")
+    private Double zjPlaybackRatio;
+    @ApiModelProperty("最小太阳高度角")
+    private String minSunElevation;
+    @ApiModelProperty("最大太阳高度角")
+    private String maxSunElevation;
+
+    private Double overLap;
+    private String payloadWorkModes;
+    private List<PayloadWorkModeRpcDTO> payloadWorkModeRpcDTOS;
+
+    @ApiModelProperty("载荷速率")
+    private String dataPassSpeed;
+
+    @ApiModelProperty("视场角")
+    private String fox;
+
+    /**
+     * 类型,0光学,1红外,2电子,3雷达,4通信,5导航
+     */
+    private String type;
+
+}

+ 12 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/PayloadWorkModeRpcDTO.java

@@ -0,0 +1,12 @@
+package com.base.api.model;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+@Data
+public class PayloadWorkModeRpcDTO {
+    @ApiModelProperty("载荷工作模式")
+    private String WorkMode;
+    @ApiModelProperty("幅宽,单位米")
+    private Double swathWidth;
+}

+ 28 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/PointRpcDTO.java

@@ -0,0 +1,28 @@
+package com.base.api.model;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+public class PointRpcDTO {
+
+    @ApiModelProperty("主键")
+    private String id;
+    @ApiModelProperty("方向 1 顺时针 2 逆时针")
+    private String sort;
+    @ApiModelProperty("当前点编号")
+    private String serial;
+    @ApiModelProperty("经度")
+    private String longitude;
+    @ApiModelProperty("纬度")
+    private String latitude;
+    @ApiModelProperty("点类型")
+    private String pointType;
+    @ApiModelProperty("点类型")
+    private String parentId;
+    private Date createTime;
+
+    private String parentName;
+}

+ 7 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/PointTypeEnums.java

@@ -0,0 +1,7 @@
+package com.base.api.model;
+
+public enum PointTypeEnums {
+
+    STRIP,TARGET,STATION;
+
+}

+ 62 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/SatelliteAppendixRpcDTO.java

@@ -0,0 +1,62 @@
+package com.base.api.model;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * <p>
+ *
+ * </p>
+ *
+ * @author yc
+ * @since 2023-02-24
+ */
+@Data
+public class SatelliteAppendixRpcDTO implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    private String id;
+
+    private String satelliteCode;
+
+    private String satelliteId;
+
+    private String satelliteLaunchEirp;
+
+    private String carrierFrequency;
+
+    private String satelliteOrbitalHeight;
+
+    private String elevationGroundAntenna;
+
+    private String satelliteGroundDistance;
+
+    private String freeSpaceLoss;
+
+    private String lonosphericLoss;
+
+    private String polarizationErroeLoss;
+
+    private String rainDecay;
+
+    private String otherLosses;
+
+    private String groundStationGt;
+
+    private String boltzmannConstantK;
+
+    private String cno;
+
+    private String informationRate;
+
+    private String ebno;
+
+    private String codingGain;
+
+    private String demodulationThreshold;
+
+    private String linkMargin;
+}

+ 85 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/SatelliteRpcDTO.java

@@ -0,0 +1,85 @@
+package com.base.api.model;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author yulin
+ * @since 2022-01-24
+ */
+@Data
+public class SatelliteRpcDTO implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    private String Id;
+    @ApiModelProperty("wx代号")
+    private String satelliteCode;
+    @ApiModelProperty("wx中文名称")
+    private String satelliteName;
+    @ApiModelProperty("卫星类型,载荷类型,1可见光/微光,2红外,3微波,4SAR,5掩星")
+    private String loadType;
+    @ApiModelProperty("轨道高度,单位KM")
+    private String altitude;
+    @ApiModelProperty("WX质量 kg")
+    private String mass;
+    @ApiModelProperty("分辨率 m")
+    private String groundResolution;
+    @ApiModelProperty("载荷幅宽 m")
+    private String swathWidth;
+    @ApiModelProperty("迎风面积 平方米")
+    private String windArea;
+    @ApiModelProperty("光压面积,平方米")
+    private String shineArea;
+    @ApiModelProperty("中继类型,0不支持,1一代中继,2二代中继")
+    private String receiveRelayType;
+    @ApiModelProperty("固存容量")
+    private String fixedVolume;
+    @ApiModelProperty("地球重力场模型阶数1,默认32.0")
+    private String earthGravityFieldModeOrde1;
+    @ApiModelProperty("地球重力场模型阶数2,默认32.0")
+    private String earthGravityFieldModeOrde2;
+    @ApiModelProperty("总内存")
+    private String totalMemory;
+
+    @ApiModelProperty("数传速率")
+    private String dataPassSpeed;
+
+    @ApiModelProperty("最大侧摆角")
+    private String maxRollAngle;
+
+
+    @ApiModelProperty("最小侧摆角")
+    private String minRollAngle;
+
+    @ApiModelProperty("最大俯仰角")
+    private String maxPitchAngle;
+
+    @ApiModelProperty("最小俯仰角")
+    private String minPitchAngle;
+
+    @ApiModelProperty("最大偏航角")
+    private String maxYawAngle;
+
+    @ApiModelProperty("固存占用")
+    private String baseMemory;
+
+    @ApiModelProperty("eirp")
+    private String eirp;
+
+    @ApiModelProperty("信息速率")
+    private String xxsl;
+
+    @ApiModelProperty("载波频率")
+    private String carrier;
+
+}

+ 57 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/SatelliteStationMatchRpcDTO.java

@@ -0,0 +1,57 @@
+package com.base.api.model;
+
+import lombok.Data;
+
+@Data
+public class SatelliteStationMatchRpcDTO {
+
+    private static final long serialVersionUID = 1L;
+
+    private String id;
+
+    /**
+     * 卫星代号
+     */
+    private String satelliteCode;
+
+    /**
+     * 地面站代号
+     */
+    private String stationCode;
+
+    /**
+     * 设备代号
+     */
+    private String equipmentCode;
+
+    /**
+     * 功能标识;1:一体(可测控可接收),2:测控,3:接收
+     */
+    private String func;
+
+    /**
+     * 创建人
+     */
+    private String createdBy;
+
+    /**
+     * 创建时间
+     */
+    private String createdDate;
+
+    /**
+     * 最后修改人
+     */
+    private String lastModifiedBy;
+
+    /**
+     * 最后修改时间
+     */
+    private String lastModifiedDate;
+
+    /**
+     * 版本号
+     */
+    private String version;
+
+}

+ 183 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/SceneBasisTargetRpcDTO.java

@@ -0,0 +1,183 @@
+package com.base.api.model;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+@Data
+public class SceneBasisTargetRpcDTO implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键id
+     */
+    @ApiModelProperty("id")
+    private String id;
+
+    /**
+     * 目标编码
+     */
+    @ApiModelProperty("目标编码")
+    private String targetCode;
+
+    /**
+     * 目标级别,0保留,1关键,2重要,3一般(民用),4临时,5其他
+     */
+    @ApiModelProperty("目标级别")
+    private Integer targetLevel;
+
+    /**
+     * 目标状态,0启动,1禁用
+     */
+    @ApiModelProperty("目标状态")
+    private Integer targetState;
+
+    /**
+     * 目标名称
+     */
+    @ApiModelProperty("目标名称")
+    private String targetName;
+
+    /**
+     * 国家/地区
+     */
+    @ApiModelProperty("国家/地区")
+    private String countryName;
+
+    /**
+     * 目标类型,0固定目标,1移动目标,2区域目标
+     */
+    @ApiModelProperty("目标类型")
+    private Integer type;
+
+    /**
+     * 区域点顺序走向,0顺时针,1逆时针
+     */
+    @ApiModelProperty("区域点顺序走向")
+    private Integer pointDirection;
+
+    /**
+     * 区域点数量,不包括中心点
+     */
+    @ApiModelProperty("区域点数量")
+    private Integer pointCount;
+
+    /**
+     * 运动状态,0固定,1移动,2较低速移动(0-20),3低速移动(20-40),4正常速度(40-60),5高速运动(60-80),单位lm/h
+     */
+    @ApiModelProperty("运动状态")
+    private BigDecimal movingStatus;
+
+    /**
+     * 动目标平均航速,单位节,1节=1海里/小时=1.852km/h
+     */
+    @ApiModelProperty("动目标平均航速")
+    private BigDecimal movingEvgSpeed;
+
+    /**
+     * 动目标最大航速,单位节,1节=1海里/小时=1.852km/h
+     */
+    @ApiModelProperty("动目标最大航速")
+    private BigDecimal movingMaxSpeed;
+
+    /**
+     * 偏好卫星,外键satellite_id,多个用逗号分隔
+     */
+    @ApiModelProperty("偏好卫星")
+    private String satelliteSelected;
+
+    /**
+     * 偏好接收站,外键station_id,多个逗号分隔
+     */
+    @ApiModelProperty("偏好接收站")
+    private String stationSelected;
+
+    /**
+     * 是否存在几何特性
+     */
+    @ApiModelProperty("是否存在几何特性")
+    private BigDecimal hasCustomFeature;
+
+    /**
+     * 是否存在电子特性
+     */
+    @ApiModelProperty("是否存在电子特性")
+    private BigDecimal hasElectronicFeature;
+
+    /**
+     * 是否存在光学特性
+     */
+    @ApiModelProperty("是否存在光学特性")
+    private BigDecimal hasOpticsFeature;
+
+    /**
+     * 是否存在雷达特性
+     */
+    @ApiModelProperty("是否存在雷达特性")
+    private BigDecimal hasRadarFeature;
+
+    /**
+     * 是否存在运动特性
+     */
+    @ApiModelProperty("是否存在运动特性")
+    private BigDecimal hasMotionFeature;
+
+    /**
+     * 历史拍摄次数
+     */
+    @ApiModelProperty("历史拍摄次数")
+    private BigDecimal times;
+
+    /**
+     * 优先级,1-100为高优先,101及以上为普通优先
+     */
+    @ApiModelProperty("优先级")
+    private Integer priority;
+
+    /**
+     * 地表属性,0海洋,1沙漠,2森林,3冰雪
+     */
+    @ApiModelProperty("地表属性")
+    private Integer targetType;
+
+    /**
+     * 优选策略,0时间优先,1质量优先
+     */
+    @ApiModelProperty("优选策略")
+    private BigDecimal firstProperty;
+
+    @ApiModelProperty("unit")
+    private String unit;
+
+    /**
+     * 创建时间
+     */
+    @ApiModelProperty("创建时间")
+    private Date createdDate;
+
+    /**
+     * 创建人
+     */
+    @ApiModelProperty("创建人")
+    private String createdBy;
+
+    /**
+     * 最后修改人
+     */
+    @ApiModelProperty("最后修改人")
+    private String lastModifiedBy;
+
+    /**
+     * 最后修改时间
+     */
+    @ApiModelProperty("最后修改时间")
+    private Date lastModifiedDate;
+
+    @ApiModelProperty("数据来源0,初始导入;1,页面新增")
+    private Integer source;
+
+}

+ 77 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/SceneTargetPointRpcDTO.java

@@ -0,0 +1,77 @@
+package com.base.api.model;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+@Data
+public class SceneTargetPointRpcDTO {
+
+    /**
+     * 所属目标,外键target_id
+     */
+    private String targetId;
+
+    /**
+     * 顶点编码
+     */
+    private String pointCode;
+
+    /**
+     * 维度
+     */
+    private BigDecimal latitude;
+
+    /**
+     * 经度
+     */
+    private BigDecimal longitude;
+
+    /**
+     * 顶点连接顺序,从0开始,不包括中心点(中心点为-1)
+     */
+    private Integer sequence;
+
+    /**
+     * 创建时间
+     */
+    private Date createdDate;
+
+    /**
+     * 创建人
+     */
+    private String createdBy;
+
+    /**
+     * 最后修改人
+     */
+    private String lastModifiedBy;
+
+    /**
+     * 最后修改时间
+     */
+    private Date lastModifiedDate;
+
+    /**
+     * 版本号
+     */
+    private BigDecimal version;
+
+    /**
+     * 状态
+     */
+    private BigDecimal status;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private String id;
+
+    /**
+     * 数据来源0,初始导入;1,页面新增
+     */
+    private Integer source;
+
+
+}

+ 53 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/StationRpcDTO.java

@@ -0,0 +1,53 @@
+package com.base.api.model;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Date;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author yulin
+ * @since 2022-01-24
+ */
+@Data
+public class StationRpcDTO {
+
+    private String Id;
+    @ApiModelProperty("地面站代号")
+    private String stationCode;
+    @ApiModelProperty("名称")
+    private String stationName;
+    @ApiModelProperty("资源类型 0地面站 1中继星")
+    private Integer resourceType;
+    @ApiModelProperty("任务类型")
+    private String missionType;
+    @ApiModelProperty("经度")
+    private String longitude;
+    @ApiModelProperty("纬度")
+    private String latitude;
+    @ApiModelProperty("高度")
+    private String altitude;
+    @ApiModelProperty("最小跟踪仰角,默认3度")
+    private String minTraceElevation;
+    @ApiModelProperty("最小接收仰角,默认5度")
+    private String minWorkElevation;
+    @ApiModelProperty("基带类型")
+    private String basebandType;
+    @ApiModelProperty("数传速率")
+    private String receivedRate;
+    @ApiModelProperty("日凌角")
+    private String sundialCorer;
+
+    private Integer antMinRecvElevation;
+
+    private Integer sundialCorner;
+
+    @ApiModelProperty("中继星能里,0无,1一代,2二代")
+    private Integer relayType;
+
+
+}

+ 17 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/SystemIndicatorRpcDTO.java

@@ -0,0 +1,17 @@
+package com.base.api.model;
+
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+public class SystemIndicatorRpcDTO {
+
+    private String id;
+    private String satelliteStorageUtilization;
+    private String datePassResourceUtilization;
+    private Date createTime;
+
+}

+ 43 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/TargetDemandRpcDTO.java

@@ -0,0 +1,43 @@
+package com.base.api.model;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Date;
+import java.util.List;
+
+
+@Data
+public class TargetDemandRpcDTO {
+
+    @ApiModelProperty("id")
+    private String id;
+    @ApiModelProperty("目标id")
+    private String targetId;
+    @ApiModelProperty("目标编号")
+    private String targetCode;
+    @ApiModelProperty("目标名称")
+    private String targetName;
+    @ApiModelProperty("观测目的:1,应急侦察")
+    private Integer observationPurpose;
+    @ApiModelProperty("状态,0:未提交;1:已提交")
+    private Integer status;
+    @ApiModelProperty("目标类型,0固定目标,1移动目标,2区域目标")
+    private Integer type;
+    @ApiModelProperty("开始时间")
+    private Date startTime;
+    @ApiModelProperty("截至时间")
+    private Date endTime;
+    @ApiModelProperty("优先级")
+    private Integer priority;
+    @ApiModelProperty("频次")
+    private Integer rate;
+    @ApiModelProperty("侦察手段")
+    private String InvestigativeMeans;
+    @ApiModelProperty("卫星ID")
+    private String satelliteSelected;
+    @ApiModelProperty("唯一标识")
+    private String parentId;
+    @ApiModelProperty
+    List<PointRpcDTO> pointDTOList;
+}

+ 26 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/TargetRpcDTO.java

@@ -0,0 +1,26 @@
+package com.base.api.model;
+
+import com.base.api.model.PointRpcDTO;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Date;
+import java.util.List;
+
+@Data
+public class TargetRpcDTO {
+
+    @ApiModelProperty("需求id")
+    private String reqId;
+    @ApiModelProperty("目标编号")
+    private String targetCode;
+    @ApiModelProperty("任务开始时间")
+    private Date taskStartTime;
+    @ApiModelProperty("任务开始时间")
+    private Date taskEndTime;
+    @ApiModelProperty("目标名称")
+    private String targetName;
+    @ApiModelProperty("目标点信息")
+    private List<PointRpcDTO> pointRpcDTOList;
+
+}

+ 23 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/FzTaskInfoRpcReqDTO.java

@@ -0,0 +1,23 @@
+package com.base.api.model.request;
+
+import lombok.Data;
+
+import java.util.Date;
+import java.util.List;
+
+@Data
+public class FzTaskInfoRpcReqDTO {
+
+    private List<String> steps;
+
+    private String priorityStart;
+
+    private String priorityEnd;
+
+    private Date startTime;
+
+    private Date endTime;
+
+    private List<String> reqIds;
+
+}

+ 14 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/FzTaskInfoUpdateRpcDTO.java

@@ -0,0 +1,14 @@
+package com.base.api.model.request;
+
+import lombok.Data;
+
+@Data
+public class FzTaskInfoUpdateRpcDTO {
+
+    private String id;
+
+    private String fzTaskState;
+
+    private String payloadIds;
+
+}

+ 15 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/PayloadRpcReqDTO.java

@@ -0,0 +1,15 @@
+package com.base.api.model.request;
+
+import lombok.Data;
+import java.util.List;
+
+@Data
+public class PayloadRpcReqDTO {
+
+    private List<String> payloadIds;
+
+    private List<String> satelliteIds;
+
+    private List<String> satelliteCodes;
+
+}

+ 18 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/PointListRpcReqDTO.java

@@ -0,0 +1,18 @@
+package com.base.api.model.request;
+
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+public class PointListRpcReqDTO {
+
+    private String id;
+
+    private String pointType;
+
+    private List<String> parentIds;
+
+    private String parentId;
+
+}

+ 35 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/QueryLinkCountDTO.java

@@ -0,0 +1,35 @@
+package com.base.api.model.request;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+@Data
+public class QueryLinkCountDTO {
+
+    @ApiModelProperty("卫星代号")
+    private String satelliteCode;
+
+    @ApiModelProperty("地面站ID")
+    private String stationId;
+
+    @ApiModelProperty("载波频率")
+    private String carrier;
+
+    @ApiModelProperty("电离层损耗 默认1.0dB")
+    private double l1=1.0;
+
+    @ApiModelProperty("极化误差损耗 默认0.5dB")
+    private double l2=0.5;
+
+    @ApiModelProperty("雨衰 默认0.5dB")
+    private double l3=0.5;
+
+    @ApiModelProperty("其他损耗 默认2.0dB")
+    private double l4=2.0;
+
+    @ApiModelProperty("地面站天线仰角")
+    private double elevation;
+
+    @ApiModelProperty("天线口径 12 或者 5.2 ")
+    private String antenna;
+}

+ 42 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/QueryPayloadAddRpcDTO.java

@@ -0,0 +1,42 @@
+package com.base.api.model.request;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+@Data
+public class QueryPayloadAddRpcDTO {
+
+    @ApiModelProperty("名称,0光学,1红外,2电子,3雷达,4通信,5导航")
+    private String name;
+
+     @ApiModelProperty("类型,0光学,1红外,2电子,3雷达,4通信,5导航")
+    private String type;
+
+     @ApiModelProperty("载荷系列")
+    private String payloadSeries;
+
+     @ApiModelProperty("分辨率,单位米")
+    private Integer groundResolution;
+
+     @ApiModelProperty("载荷幅宽,单位m")
+    private Integer swathWidth;
+
+     @ApiModelProperty("幅宽重叠区域,单位km,双载荷有意义")
+    private Integer overLap;
+
+     @ApiModelProperty("最小太阳高度角")
+    private Integer minSunElevation;
+
+     @ApiModelProperty("最大太阳高度角")
+    private Integer maxSunElevation;
+
+     @ApiModelProperty("视场角")
+    private Integer fov;
+
+     @ApiModelProperty("模式")
+    private String model;
+
+     @ApiModelProperty("载荷状态,0不可用,1可用")
+    private Integer payloadStatus;
+
+}

+ 157 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/QuerySatelliteAddRpcDTO.java

@@ -0,0 +1,157 @@
+package com.base.api.model.request;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.util.Date;
+import java.util.List;
+
+@Data
+public class QuerySatelliteAddRpcDTO {
+
+    @ApiModelProperty("卫星id,只有修改的时候才会用到,新增不传值")
+    private String id;
+
+    @ApiModelProperty("卫星编码")
+    private String code;
+
+    @ApiModelProperty("卫星中文名称")
+    private String name;
+
+    @ApiModelProperty("1 军 2 民 3 商 4 其他")
+    private Integer satelliteUserType;
+
+    @ApiModelProperty("卫星系列")
+    private String series;
+
+    @ApiModelProperty("功能用途,0遥感,1通信,2导航")
+    private Integer function;
+
+
+    @ApiModelProperty("发射时间")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date launchTime;
+
+    @ApiModelProperty("国别")
+    private String country;
+
+    @ApiModelProperty("卫星优先级")
+    private Integer priority;
+
+    @ApiModelProperty("卫星综合状态,0异常,1正常,2失效")
+    private Integer state;
+
+    @ApiModelProperty("卫星重访周期,单位天")
+    private String revisitPeriod;
+
+    @ApiModelProperty("轨道周期,单位毫秒")
+    private Integer orbitPeriod;
+
+    @ApiModelProperty("轨道高度,单位千米")
+    private String altitude;
+
+    @ApiModelProperty("轨道类型,0低轨,1中轨,2高轨,3太阳同步轨道")
+    private Integer orbitType;
+
+    @ApiModelProperty("赤道面经度位置,仅适用于高轨")
+    private String lontitude;
+
+    @ApiModelProperty("平台类型,0普通,1敏捷")
+    private Integer satelliteType;
+
+    @ApiModelProperty("最大侧摆角")
+    private String maxRollAngle;
+
+    @ApiModelProperty("最小侧摆角")
+    private String minRollAngle;
+
+    @ApiModelProperty("最大俯仰角")
+    private String maxPitchAngle;
+
+    @ApiModelProperty("最小俯仰角")
+    private String minPitchAngle;
+
+    @ApiModelProperty("最大偏航角")
+    private String maxYawAngle;
+
+    @ApiModelProperty("卫星质量,单位kg")
+    private String mass;
+
+    @ApiModelProperty("卫星对地传输速率,单位Mbps")
+    private String groundFrequency;
+
+    @ApiModelProperty("卫星状态,0不可用,1可用")
+    private Integer status;
+
+    @ApiModelProperty("卫星侧摆重访周期,单位天")
+    private String revisitRollPeriod;
+
+    @ApiModelProperty("迎风面积,单位平方米")
+    private String windArea;
+
+    @ApiModelProperty("光压面积,单位平方米")
+    private String shineArea;
+
+    @ApiModelProperty("地球重力场模型阶数1")
+    private String earthGravityFieldModeOrde1;
+
+    @ApiModelProperty("地球重力场模型阶数2")
+    private String earthGravityFieldModeOrde2;
+
+    @ApiModelProperty("载荷类型,0CCD,1红外,2电子,3SAR,4通信,5导航")
+    private String loadType;
+
+    @ApiModelProperty("测控支持的中继类型,0不支持,1一代中继,2二代中继")
+    private Integer controlRelayType;
+
+    @ApiModelProperty("测控灵敏度")
+    private Integer controlSensitivity;
+
+    @ApiModelProperty("测控频段")
+    private String controlPass;
+
+    @ApiModelProperty("测控频点")
+    private String controlFreq;
+
+    @ApiModelProperty("测控码速率")
+    private String controlCodeSpeed;
+
+    @ApiModelProperty("测控极化方式,0左旋,1右旋,2极化")
+    private Integer controlPolarityMethod;
+
+    @ApiModelProperty("扩频模式,0非扩频,1标准TTC,2非相干TTC,3相干扩频,4非相干扩频,5测控数传一体化,6FM,7BPSK")
+    private Integer kpmode;
+
+    @ApiModelProperty("测控波束需求数")
+    private String controlBeamNeed;
+
+    @ApiModelProperty("接收支持的中继类型,0不支持,1一代中继,2二代中继")
+    private Integer receiveRelayType;
+
+    @ApiModelProperty(" 接收频段")
+    private String receivePass;
+
+    @ApiModelProperty("接收频点")
+    private String receiveFreq;
+
+    @ApiModelProperty("接收带宽")
+    private String receiveBnadwidth;
+
+    @ApiModelProperty("接收码速率")
+    private String receiveCodespeed;
+
+    @ApiModelProperty("接收的极化方式")
+    private Integer receivePolarityMethod;
+
+    @ApiModelProperty("数传通道数")
+    private String sctdQuantitl;
+
+    @ApiModelProperty("发射功率")
+    private String sendPower;
+
+    @ApiModelProperty("载荷列表")
+    private List<QueryPayloadAddRpcDTO>  payloadAddDTOList;
+}

+ 46 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/QueryStationAddRpcDTO.java

@@ -0,0 +1,46 @@
+package com.base.api.model.request;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.util.Date;
+
+@Data
+public class QueryStationAddRpcDTO {
+
+    private String Id;
+    @ApiModelProperty("地面站代号")
+    private String stationCode;
+    @ApiModelProperty("名称")
+    private String stationName;
+    @ApiModelProperty("资源类型 0地面站 1中继星")
+    private String resourceType;
+    @ApiModelProperty("任务类型")
+    private String missionType;
+    @ApiModelProperty("经度")
+    private String longitude;
+    @ApiModelProperty("纬度")
+    private String latitude;
+    @ApiModelProperty("高度")
+    private String altitude;
+    @ApiModelProperty("最小跟踪仰角,默认3度")
+    private String minTraceElevation;
+    @ApiModelProperty("最小接收仰角,默认5度")
+    private String minWorkElevation;
+    @ApiModelProperty("基带类型")
+    private String basebandType;
+    @ApiModelProperty("数传速率")
+    private String receivedRate;
+    @ApiModelProperty("日凌角")
+    private String sundialCorer;
+
+    private Integer antMinRecvElevation;
+
+    private Integer sundialCorner;
+
+    @ApiModelProperty("中继星能里,0无,1一代,2二代")
+    private Integer relayType;
+
+}

+ 18 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/TaskStateNotice.java

@@ -0,0 +1,18 @@
+package com.base.api.model.request;
+
+import com.base.api.model.BizTaskStepEnum;
+import lombok.Data;
+
+@Data
+public class TaskStateNotice {
+
+    private String bizTaskId;
+
+    private BizTaskStepEnum step;
+
+    /**
+     * 0执行中 1 完成 2 异常
+     */
+    private Integer state;
+
+}

+ 70 - 0
orbit-base-biz/base-biz-api/src/main/java/com/base/api/model/request/UpdateSatelliteRpcDTO.java

@@ -0,0 +1,70 @@
+package com.base.api.model.request;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+@Data
+public class UpdateSatelliteRpcDTO {
+    private String id;
+    @ApiModelProperty("wx代号")
+    private String satelliteCode;
+    @ApiModelProperty("wx中文名称")
+    private String satelliteName;
+    @ApiModelProperty("卫星类型,载荷类型,1可见光/微光,2红外,3微波,4SAR,5掩星")
+    private String loadType;
+    @ApiModelProperty("轨道高度,单位KM")
+    private String altitude;
+    @ApiModelProperty("WX质量 kg")
+    private String mass;
+    @ApiModelProperty("分辨率 m")
+    private String groundResolution;
+    @ApiModelProperty("载荷幅宽 m")
+    private String swathWidth;
+    @ApiModelProperty("迎风面积 平方米")
+    private String windArea;
+    @ApiModelProperty("光压面积,平方米")
+    private String shineArea;
+    @ApiModelProperty("中继类型,0不支持,1一代中继,2二代中继")
+    private String receiveRelayType;
+    @ApiModelProperty("固存容量")
+    private String fixedVolume;
+    @ApiModelProperty("地球重力场模型阶数1,默认32.0")
+    private String earthGravityFieldModeOrde1;
+    @ApiModelProperty("地球重力场模型阶数2,默认32.0")
+    private String earthGravityFieldModeOrde2;
+    /**
+     * 总内存
+     */
+    private String totalMemory;
+    /**
+     * 数传速率
+     */
+    private String dataPassSpeed;
+    /**
+     * 最大侧摆角
+     */
+    private String maxRollAngle;
+
+    /**
+     * 最小侧摆角
+     */
+    private String minRollAngle;
+
+    /**
+     * 最大俯仰角
+     */
+    private String maxPitchAngle;
+
+    /**
+     * 最小俯仰角
+     */
+    private String minPitchAngle;
+
+    /**
+     * 最大偏航角
+     */
+    private String maxYawAngle;
+
+    @ApiModelProperty("固存占用")
+    private String baseMemory;
+}

+ 155 - 0
orbit-base-biz/base-biz-service/pom.xml

@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>orbit-base-biz</artifactId>
+        <groupId>orbit.base.server</groupId>
+        <version>0.0.1</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>base-biz-service</artifactId>
+
+
+    <properties>
+        <maven.compiler.source>8</maven.compiler.source>
+        <maven.compiler.target>8</maven.compiler.target>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <!-- web控制依赖 -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter</artifactId>
+        </dependency>
+
+        <!-- 连接池 -->
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>druid-spring-boot-starter</artifactId>
+        </dependency>
+
+        <!-- nacos注册 -->
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
+        </dependency>
+
+        <!-- nacos配置-->
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
+        </dependency>
+
+        <!--客户端负载均衡loadbalancer-->
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-loadbalancer</artifactId>
+        </dependency>
+        <!-- spring-cloud-dependencies 2020.0.1 版本不在默认加载bootstrap 文件
+     引入该依赖读取bootstrap文件 -->
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-bootstrap</artifactId>
+        </dependency>
+
+<!--        <dependency>-->
+<!--            <groupId>orbit.base.server</groupId>-->
+<!--            <artifactId>framework-mq</artifactId>-->
+<!--            <version>0.0.1</version>-->
+<!--        </dependency>-->
+        <dependency>
+            <groupId>orbit.base.server</groupId>
+            <artifactId>framework-common</artifactId>
+            <version>0.0.1</version>
+        </dependency>
+        <dependency>
+            <groupId>orbit.base.server</groupId>
+            <artifactId>framework-log</artifactId>
+            <version>0.0.1</version>
+        </dependency>
+        <dependency>
+            <groupId>orbit.base.server</groupId>
+            <artifactId>base-biz-api</artifactId>
+            <version>0.0.1</version>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <scope>test</scope>
+        </dependency>
+<!--        <dependency>-->
+<!--            <groupId>orbit.base.server</groupId>-->
+<!--            <artifactId>framework-step</artifactId>-->
+<!--            <version>0.0.1</version>-->
+<!--            <scope>compile</scope>-->
+<!--        </dependency>-->
+        <dependency>
+            <groupId>orbit.base.server</groupId>
+            <artifactId>base-track-api</artifactId>
+            <version>0.0.1</version>
+            <scope>compile</scope>
+        </dependency>
+        <!--data source-->
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus-boot-starter</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.github.xiaoymin</groupId>
+            <artifactId>knife4j-spring-boot-starter</artifactId>
+            <version>2.0.4</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.mybatis.spring.boot</groupId>
+            <artifactId>mybatis-spring-boot-autoconfigure</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>com.github.liaochong</groupId>
+            <artifactId>myexcel</artifactId>
+            <version>3.11.2</version>
+        </dependency>
+        <dependency>
+            <groupId>orbit.base.server</groupId>
+            <artifactId>base-plan-api</artifactId>
+            <version>0.0.1</version>
+            <scope>compile</scope>
+        </dependency>
+    </dependencies>
+
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>repackage</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

+ 23 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/BizApplication.java

@@ -0,0 +1,23 @@
+package com.base.biz;
+
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
+import org.springframework.cloud.openfeign.EnableFeignClients;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+
+
+@ComponentScan(basePackages = {"com.base"})
+@MapperScan("com.base.biz.mapper")
+@EnableDiscoveryClient
+@EnableTransactionManagement
+@SpringBootApplication
+@EnableFeignClients(basePackages = {"com.base.api.client","com.plan.api.client"})
+public class BizApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(BizApplication.class, args);
+    }
+}

+ 14 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/aop/PageDTO.java

@@ -0,0 +1,14 @@
+package com.base.biz.aop;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+@Data
+public class PageDTO {
+
+    @ApiModelProperty("页码")
+    private Integer page;
+    @ApiModelProperty("页面条数")
+    private Integer pageSize;
+
+}

+ 115 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/aop/PageInfo.java

@@ -0,0 +1,115 @@
+package com.base.biz.aop;
+
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import org.springframework.util.CollectionUtils;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * 分页查询
+ *
+ * @author lx
+ * @date 2019/11/5 0005 10:58
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class PageInfo<T> extends Page<T> implements Serializable {
+
+    private static final long serialVersionUID = 13333123L;
+
+    @SuppressWarnings("rawtypes")
+    public static final PageInfo EMPTY = new PageInfo();
+
+    @SuppressWarnings("unchecked")
+    public static <T> PageInfo<T> empty() {
+        return (PageInfo<T>) EMPTY;
+    }
+
+    /**
+     * 当前页码
+     */
+    private int page;
+    /**
+     * 页容
+     */
+    private int pageSize;
+
+    /**
+     * 结果集数据用这里,不用管records和没有注释的字段
+     */
+    private List<T> list = new ArrayList<>();
+
+    public PageInfo(int pageSize, int page){
+        super(page,pageSize);
+        this.pageSize = pageSize;
+        this.page = page;
+    }
+
+    public PageInfo(){}
+
+    public static <T> PageInfo<T> of(Object t){
+        PageInfo<T> pageInfo = new PageInfo<>();
+        if (t instanceof com.github.pagehelper.PageInfo) {
+            com.github.pagehelper.PageInfo page = (com.github.pagehelper.PageInfo) t;
+            pageInfo.setPage(page.getPages());
+            pageInfo.setTotal(page.getTotal());
+            pageInfo.setPageSize(page.getPageSize());
+
+            List<T> list = page.getList();
+            pageInfo.setList(list);
+        } else if(t instanceof PageInfo) {
+            pageInfo = (PageInfo)t;
+            List<T> list = CollectionUtils.isEmpty(pageInfo.getRecords()) ? pageInfo.getList() : pageInfo.getRecords();
+            pageInfo.setRecords(null);
+            if(!CollectionUtils.isEmpty(list)) {
+                pageInfo.setList(list);
+            }
+            return pageInfo;
+        } else if (t instanceof com.github.pagehelper.Page) {
+            com.github.pagehelper.Page page = (com.github.pagehelper.Page) t;
+            pageInfo.setPage(page.getPages());
+            pageInfo.setTotal(page.getTotal());
+            pageInfo.setPageSize(page.getPageSize());
+            pageInfo.setList(page);
+        } else if (t instanceof Page){
+            Page page = (Page) t;
+            pageInfo.setPage((int) page.getPages());
+            pageInfo.setTotal(page.getTotal());
+            pageInfo.setPageSize((int) page.getSize());
+            List<T> list = page.getRecords();
+            pageInfo.setList(list);
+        }
+        return pageInfo;
+    }
+
+    public static <T> PageInfo<T> listOf(List<T> t){
+        PageInfo<T> pageInfo = new PageInfo<>();
+        if(!CollectionUtils.isEmpty(t)){
+            pageInfo.setTotal(t.size());
+            pageInfo.setList(t);
+        }
+        return pageInfo;
+    }
+
+    public static <R> PageInfo<R> newOf(com.github.pagehelper.PageInfo page) {
+        PageInfo<R> pageInfo = new PageInfo<R>();
+        pageInfo.setPage(page.getPages());
+        pageInfo.setTotal(page.getTotal());
+        pageInfo.setPageSize(page.getPageSize());
+        return pageInfo;
+    }
+
+    
+    public static <R> PageInfo<R> newOf(com.github.pagehelper.Page page,List<R> list) {
+        PageInfo<R> pageInfo = new PageInfo<R>();
+        pageInfo.setPage(page.getPages());
+        pageInfo.setTotal(page.getTotal());
+        pageInfo.setPageSize(page.getPageSize());
+        pageInfo.setList(list);
+        return pageInfo;
+    }
+}

+ 22 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/config/CorsConfig.java

@@ -0,0 +1,22 @@
+/*
+package com.base.biz.config;
+
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.web.servlet.config.annotation.CorsRegistry;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
+
+@Configuration
+public class CorsConfig implements WebMvcConfigurer {
+
+    @Override
+    public void addCorsMappings(CorsRegistry registry){
+        registry.addMapping("/**")
+                .allowedOrigins("*")
+                .allowCredentials(true)
+                .allowedMethods("GET","POST","PUT","DELETE","OPTIONS")
+                .maxAge(3600);
+    }
+
+}
+*/

+ 61 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/config/DataSourceConfig.java

@@ -0,0 +1,61 @@
+
+package com.base.biz.config;
+
+import com.alibaba.druid.pool.DruidDataSource;
+import org.apache.ibatis.session.SqlSessionFactory;
+import org.mybatis.spring.SqlSessionTemplate;
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Primary;
+import org.springframework.jdbc.datasource.DataSourceTransactionManager;
+
+import javax.sql.DataSource;
+
+
+/**
+ * 数据库配置类
+ */
+
+@Configuration
+@MapperScan(basePackages = {"com.base.biz.mapper"}, sqlSessionTemplateRef = "sqlSessionTemplate")
+public class DataSourceConfig {
+    @Value("${spring.datasource.initial-size}")
+    private Integer initialSize;
+
+    @Value("${spring.datasource.min-idle}")
+    private Integer minIdle;
+
+    @Value("${spring.datasource.max-active}")
+    private Integer maxActive;
+
+    @Value("${spring.datasource.max-wait}")
+    private Integer maxWait;
+
+
+    @Bean(name = {"dataSource"})
+    @ConfigurationProperties(prefix = "spring.datasource")
+    @Primary
+    public DataSource dataSource() {
+        DruidDataSource datasource = new DruidDataSource();
+        datasource.setInitialSize(this.initialSize);
+        datasource.setMinIdle(this.minIdle);
+        datasource.setMaxActive(this.maxActive);
+        datasource.setMaxWait(this.maxWait);
+        return datasource;
+    }
+
+
+    @Bean(name = {"transactionManager"})
+    public DataSourceTransactionManager transactionManager(@Qualifier("dataSource") DataSource dataSource) {
+        return new DataSourceTransactionManager(dataSource);
+    }
+
+    @Bean(name = {"sqlSessionTemplate"})
+    public SqlSessionTemplate sqlSessionTemplate(@Qualifier("sqlSessionFactory") SqlSessionFactory sqlSessionFactory) throws Exception {
+        return new SqlSessionTemplate(sqlSessionFactory);
+    }
+}

+ 170 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/config/IdGenerator.java

@@ -0,0 +1,170 @@
+package com.base.biz.config;
+
+
+import java.math.BigInteger;
+import java.net.InetAddress;
+import java.net.UnknownHostException;
+
+
+public class IdGenerator {
+
+    /**
+     * 初始时间戳,一经定义,不可修改
+     */
+    private final long twepoch = 1534435200000L;
+
+    /**
+     * 机器码长度
+     */
+    private final long workerIdBits = 8L;
+
+    /**
+     * 最大机器数量
+     */
+    private final long maxWorkerId = -1L ^ (-1L << workerIdBits);
+
+    /**
+     * 机器数量左移偏量
+     */
+    private final long workerIdShift;
+
+    /**
+     * 时间戳量左移偏量
+     */
+    private final long timestampLeftShift;
+
+    private final long sequenceMask;
+
+    private static IdGenerator idGenerator;
+
+    /**
+     * 二进制转义对应字符
+     */
+    private final String[] charMappingConstant = {
+            "1", "2", "3", "4", "5", "6", "7", "8", "9", "0",
+            "a", "b", "c", "d", "e", "f", "g", "h", "i", "j",
+            "k", "l", "m", "n", "o", "p", "q", "r", "s", "t",
+            "u", "v", "w", "x", "y", "z"};
+
+    private long workerId;
+    private long sequence;
+    private long lastTimestamp = -1L;
+
+    /**
+     * 每毫秒最大产生31条数据,默认(2^6-1),若并发量不大可选带参构造函数
+     */
+    public IdGenerator(){
+        
+        String hostAddress;
+        try {
+            hostAddress = InetAddress.getLocalHost().getHostAddress();
+        } catch (UnknownHostException e) {
+            throw new RuntimeException(e);
+        }
+        Long workerId = Long.parseLong(hostAddress.substring(hostAddress.lastIndexOf(".") + 1, hostAddress.length()));
+        if (workerId > maxWorkerId || workerId < 0) {
+            throw new IllegalArgumentException(String.format("worker Id can't be greater than %d or less than 0", workerId));
+        }
+
+        long sequenceBits = 6L;
+        this.workerId = workerId;
+        this.workerIdShift = sequenceBits;
+        this.timestampLeftShift = sequenceBits + workerIdBits;
+        this.sequenceMask = -1L ^ (-1L << sequenceBits);
+    }
+
+    /**
+     * @param sequenceBits
+     * @description 每毫秒最大产生2的(sequenceBits - 1)次方条数据,若超出须等待至下一毫秒
+     */
+    public IdGenerator(long sequenceBits) throws UnknownHostException {
+        String hostAddress = InetAddress.getLocalHost().getHostAddress();
+        Long workerId = Long.parseLong(hostAddress.substring(hostAddress.lastIndexOf(".") + 1, hostAddress.length()));
+        if (workerId > maxWorkerId || workerId < 0) {
+            throw new IllegalArgumentException(String.format("worker Id can't be greater than %d or less than 0", workerId));
+        }
+
+        if (sequenceBits > 6L) {
+            sequenceBits = 6L;
+        }
+        this.workerId = workerId;
+        this.workerIdShift = sequenceBits;
+        this.timestampLeftShift = sequenceBits + workerIdBits;
+        this.sequenceMask = -1L ^ (-1L << sequenceBits);
+    }
+
+    public synchronized String nextId() {
+        return convert(Long.toBinaryString(nextLong()));
+    }
+
+    public static synchronized long getId(){
+        if(idGenerator == null){
+            idGenerator = new IdGenerator();
+        }
+        return idGenerator.nextLong();
+    }
+
+    public static synchronized String getStrId(){
+        return String.valueOf(IdGenerator.getId());
+    }
+
+    public synchronized long nextLong() {
+        long timestamp = timeGen();
+        if (timestamp < lastTimestamp) {
+            throw new RuntimeException(String.format("Clock moved backwards.  Refusing to generate id for %d milliseconds", lastTimestamp - timestamp));
+        }
+        if (lastTimestamp == timestamp) {
+            sequence = (sequence + 1) & sequenceMask;
+            if (sequence == 0) {
+                timestamp = tilNextMillis(lastTimestamp);
+            }
+        } else {
+            sequence = 0L;
+        }
+
+        lastTimestamp = timestamp;
+
+        //二进制ID,通过拼接时间,机器码,时序码生成
+        long id = ((timestamp - twepoch) << timestampLeftShift) | (workerId << workerIdShift) | sequence;
+        return id;
+    }
+
+    protected long tilNextMillis(long lastTimestamp) {
+        long timestamp = timeGen();
+        while (timestamp <= lastTimestamp) {
+            timestamp = timeGen();
+        }
+        return timestamp;
+    }
+
+    protected long timeGen() {
+        return System.currentTimeMillis();
+    }
+
+    /**
+     * 二进制ID转义
+     * @param str
+     * @return
+     */
+    private String convert(final String str) {
+        StringBuffer sb = new StringBuffer();
+
+        int times = (int) Math.ceil((double) str.length() / 5);
+
+        for (int i = 0; i < times; i++) {
+            int end;
+            if (str.length() / 5 > i) {
+                end = (i + 1) * 5;
+            } else {
+                end = str.length();
+            }
+            String binarySource = str.substring(i * 5, end);
+            BigInteger bi = new BigInteger(binarySource, 2);
+            sb.append(charMappingConstant[Integer.parseInt(bi.toString())]);
+        }
+
+        return sb.toString();
+    }
+
+}
+

+ 63 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/config/Swagger2Config.java

@@ -0,0 +1,63 @@
+package com.base.biz.config;
+
+import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.web.context.request.async.DeferredResult;
+import springfox.documentation.builders.ApiInfoBuilder;
+import springfox.documentation.service.Contact;
+import springfox.documentation.spi.DocumentationType;
+import springfox.documentation.spring.web.paths.RelativePathProvider;
+import springfox.documentation.spring.web.plugins.Docket;
+import springfox.documentation.swagger2.annotations.EnableSwagger2;
+
+import javax.servlet.ServletContext;
+
+/**
+ * @description: swagger配置文件
+ **/
+@Configuration
+@EnableSwagger2
+@EnableKnife4j
+public class Swagger2Config
+{
+    @Value("${spring.profiles.active}")
+    private String env;
+    @Value("${spring.application.name}")
+    private String serviceName;
+//    @Value("${gateway.service.name}")
+//    private String serviceNameForGateway;
+
+    @Bean
+    public Docket createDocket(ServletContext servletContext)
+    {
+        Docket docket = new Docket(DocumentationType.SWAGGER_2)
+                .genericModelSubstitutes(DeferredResult.class)
+                .forCodeGeneration(true)
+                .pathMapping("/")
+                .select()
+                .build()
+                .apiInfo(new ApiInfoBuilder()
+                        .title(serviceName + "接口文档")
+                        .version("1.0")
+                        .contact(new Contact("xxx","",""))
+                        .license("XXX有限公司")
+                        .build())
+                // 如果为生产环境,则不创建swagger
+                .enable(!"real".equals(env));
+//        .enable(true);
+
+        // 在knife4j前端页面的地址路径中添加gateway网关的项目名,解决在调试接口、发送请求出现404的问题
+        docket.pathProvider(new RelativePathProvider(servletContext)
+        {
+            @Override
+            public String getApplicationBasePath()
+            {
+                return "/" + "serviceNameForGateway" + super.getApplicationBasePath();
+            }
+        });
+
+        return docket;
+    }
+}

+ 46 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/AntennaController.java

@@ -0,0 +1,46 @@
+package com.base.biz.controller;
+
+
+import com.base.api.model.AntennaRpcDTO;
+import com.base.biz.service.AntennaService;
+import com.base.orbit.web.Result;
+import io.swagger.annotations.*;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+@RestController
+@RequestMapping("/api/antenna")
+@Slf4j
+@Api(tags = "天线模块")
+public class AntennaController {
+
+    @Resource
+    private AntennaService antennaService;
+
+    @PostMapping(value = "/selAntenaInfoByIds")
+    @ApiOperation(value = "根据地面站代号查询天线信息")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "ids", value = "地面站代号")
+    })
+    @ApiResponses({
+            @ApiResponse(code = 200, message = "OK", response = AntennaRpcDTO.class)
+    })
+    public Object selAntenaInfoByIds(@RequestBody List<String> stationIds) {
+        return Result.success(antennaService.selAntenaInfoByIds(stationIds));
+    }
+
+    @PostMapping(value = "/selAllAntenaInfos")
+    @ApiOperation(value = "查询所有天线信息")
+    @ApiResponses({
+            @ApiResponse(code = 200, message = "OK", response = AntennaRpcDTO.class)
+    })
+    public Object selAllAntenaInfos() {
+        return Result.success(antennaService.selAllAntenaInfos());
+    }
+}

+ 28 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/CheckController.java

@@ -0,0 +1,28 @@
+package com.base.biz.controller;
+
+import com.base.biz.service.CheckService;
+import com.base.orbit.web.Result;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+
+@Api(tags = "验重接口")
+@RestController
+@RequestMapping("/api/v1/check")
+public class CheckController {
+
+    @Resource
+    CheckService checkService;
+
+    @ApiOperation("字段验重")
+    @GetMapping
+    public Result<Boolean> check(@ApiParam(name = "tableName", value = "表名")String tableName, @ApiParam(name = "field", value = "字段名") String field, @ApiParam(name = "value", value = "字段值") String value){
+        return Result.success(checkService.check(tableName,field,value));
+    }
+
+}

+ 143 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/DemandManagerController.java

@@ -0,0 +1,143 @@
+package com.base.biz.controller;
+
+import com.base.biz.mapper.TargetDemandMapper;
+import com.base.biz.model.PointDTO;
+import com.base.biz.model.dto.QueryBatchDeleteDTO;
+import com.base.biz.model.dto.QueryImportDemandDTO;
+import com.base.biz.model.dto.request.QueryTargetRelationAddDTO;
+import com.base.biz.model.dto.request.QueryTargetRelationListDTO;
+import com.base.biz.model.dto.request.QueryTargetRelationPointAddDTO;
+import com.base.biz.model.dto.request.QueryTargetRelationUpdateDTO;
+import com.base.biz.model.dto.response.QueryBatchUpdateRelationDTO;
+import com.base.biz.model.dto.response.TargetDemandDTO;
+import com.base.biz.service.TargetDemandService;
+import com.base.orbit.web.Code;
+import com.base.orbit.web.Result;
+import com.github.liaochong.myexcel.core.DefaultExcelReader;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.util.StringUtils;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+
+import javax.annotation.Resource;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+
+@Api(tags = "需求管理")
+@RestController
+@RequestMapping("/api/v1/demand/manager")
+public class DemandManagerController {
+
+    @Resource
+    TargetDemandService relationTargetService;
+
+    @Resource
+    TargetDemandMapper targetDemandMapper;
+
+    @ApiOperation(value = "目标关系列表添加")
+    @PostMapping("/relation/add")
+    public Result<Boolean> addTargetRelationList(@RequestBody List<QueryTargetRelationAddDTO> request) {
+        Boolean res = relationTargetService.addList(request);
+        if (res) {
+            return Result.success(true);
+        } else {
+            return Result.error(Code.ERROR_PARAM_ERROR, "输入数据为空");
+        }
+    }
+
+    @ApiOperation(value = "目标关系列表修改")
+    @PostMapping("/relation/update")
+    public Result updateTargetRelation(@RequestBody QueryTargetRelationUpdateDTO request) {
+        relationTargetService.update(request);
+        return Result.success();
+    }
+
+    @ApiOperation(value = "根据parentId修改需求")
+    @PostMapping("/relation/batch/update")
+    public Result updateTargetRelationByParentId(@RequestBody QueryBatchUpdateRelationDTO request) {
+        relationTargetService.updateByParentId(request);
+        return Result.success();
+    }
+
+    @ApiOperation(value = "根据Ids删除列表")
+    @PostMapping("/relation/delete")
+    public Result delete(String ids) {
+        relationTargetService.deleteByIds(ids);
+        return Result.success();
+    }
+
+    @ApiOperation(value = "根据parentId删除列表")
+    @PostMapping("/relation/delete/parent/id")
+    public Result deleteByParentId(@RequestBody QueryBatchDeleteDTO request) {
+        relationTargetService.deleteByParentId(request.getParentId());
+        return Result.success();
+    }
+
+    @ApiOperation(value = "目标关系列表查詢")
+    @GetMapping("/relation/list")
+    public Result<List<TargetDemandDTO>> getTargetRelationByParentId(QueryTargetRelationListDTO request) {
+        return Result.success(relationTargetService.getTargetRelationDTOList(request));
+    }
+
+    @ApiOperation(value = "目标关系parentId查詢")
+    @GetMapping("/relation/parentId")
+    public Result<String> getParentId() {
+        return Result.success(relationTargetService.getParentId());
+    }
+
+    @ApiOperation(value = "新增关系,目标,点集合")
+    @PostMapping("/relation/target/point/add")
+    public Result addTargetRelationPoint(@RequestBody QueryTargetRelationPointAddDTO request) {
+        List<QueryTargetRelationPointAddDTO> list = new ArrayList<>();
+        list.add(request);
+        relationTargetService.addTargetRelationPoint(list);
+        return Result.success();
+    }
+
+    @ApiOperation(value = "需求导入")
+    @PostMapping("/import")
+    public Result<String> importData(@RequestParam(value = "file", required = false) MultipartFile file, String parentId) throws IOException {
+        DefaultExcelReader<QueryImportDemandDTO> filter = DefaultExcelReader.of(QueryImportDemandDTO.class)
+                .sheet(0)
+                .rowFilter(row -> row.getRowNum() > 0);
+        List<QueryImportDemandDTO> list = filter
+                .read(file.getInputStream());
+        List<QueryTargetRelationPointAddDTO> req = new ArrayList<>();
+
+
+        String parentIdOld = targetDemandMapper.getParentIdByParentId(parentId+"_E");
+
+        Integer index = parentIdOld==null?1:Integer.parseInt(parentIdOld.split("_")[3].replace("E",""))+1;
+
+        for (QueryImportDemandDTO queryImportDemandDTO : list) {
+            QueryTargetRelationPointAddDTO queryTargetRelationPointAddDTO = new QueryTargetRelationPointAddDTO();
+            List<PointDTO> pointDTOList = new ArrayList<>();
+            PointDTO pointDTO = new PointDTO();
+            pointDTO.setSequence(0);
+            pointDTO.setLat(queryImportDemandDTO.getLat());
+            pointDTO.setLng(queryImportDemandDTO.getLng());
+            pointDTOList.add(pointDTO);
+            queryTargetRelationPointAddDTO.setPointDTOList(pointDTOList);
+            queryTargetRelationPointAddDTO.setTargetName(queryImportDemandDTO.getTargetName());
+            queryTargetRelationPointAddDTO.setType(0);
+            queryTargetRelationPointAddDTO.setTargetLevel(0);
+            queryTargetRelationPointAddDTO.setCountryName("未知");
+            queryTargetRelationPointAddDTO.setPointDirection(0);
+            queryTargetRelationPointAddDTO.setPriority(queryImportDemandDTO.getPriority());
+            queryTargetRelationPointAddDTO.setParentId(parentId + "_E" + String.format("%04d", index));
+            queryTargetRelationPointAddDTO.setRate(1);
+            queryTargetRelationPointAddDTO.setStartTime(queryImportDemandDTO.getStartTime());
+            queryTargetRelationPointAddDTO.setEndTime(queryImportDemandDTO.getEndTime());
+            req.add(queryTargetRelationPointAddDTO);
+            ++index;
+        }
+        if (StringUtils.isEmpty(parentId) || req.size() == 0) {
+            return Result.error(202);
+        }
+        relationTargetService.addTargetRelationPoint(req);
+        return Result.success();
+    }
+
+}

+ 20 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/EmulationTaskController.java

@@ -0,0 +1,20 @@
+package com.base.biz.controller;
+
+import com.base.biz.model.dto.request.EmulationTaskInfoDTOReq;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+
+@RestController
+@RequestMapping("/api/emulation")
+public class EmulationTaskController {
+
+
+    @GetMapping("/list")
+    public Object getEmulationTaskDTOList(EmulationTaskInfoDTOReq req){
+        return null;
+    }
+
+}

+ 35 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/FzTaskController.java

@@ -0,0 +1,35 @@
+package com.base.biz.controller;
+
+import com.base.biz.model.dto.FzTaskDTO;
+import com.base.biz.model.dto.InstanceInfoDTO;
+import com.base.biz.model.dto.request.FzTaskInfoReqDTO;
+import com.base.biz.model.dto.request.FzTaskInfoUpdateDTO;
+import com.base.biz.service.FzTaskService;
+import com.base.orbit.web.Result;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+
+@RestController
+
+@RequestMapping("/api/fz")
+public class FzTaskController {
+
+    @Resource
+    FzTaskService fzTaskService;
+
+    @ApiOperation(value = "查询任务列表",response = FzTaskDTO.class)
+    @GetMapping("/list")
+    public Object getFzTaskDTOList(FzTaskInfoReqDTO req){
+        return Result.success(fzTaskService.getFzTaskDTOList(req));
+    }
+
+    @ApiOperation(value = "更新任务")
+    @PostMapping("/update")
+    public Object updateTaskDTO(@RequestBody FzTaskInfoUpdateDTO req){
+        fzTaskService.updateFzTask(req);
+        return Result.success();
+    }
+
+}

+ 33 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/InstanceController.java

@@ -0,0 +1,33 @@
+package com.base.biz.controller;
+
+import com.base.biz.model.dto.InstanceInfoDTO;
+import com.base.biz.model.dto.request.InstanceInfoDTOListReq;
+import com.base.biz.service.InstanceService;
+import com.base.orbit.web.Result;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiResponse;
+import io.swagger.annotations.ApiResponses;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+
+@Api(tags ="轨道")
+@RestController
+@RequestMapping("/api/instance")
+public class InstanceController {
+
+    @Resource
+    InstanceService instanceService;
+
+    @ApiOperation(value = "根据卫星代号查询轨道六根数",response = InstanceInfoDTO.class)
+    @GetMapping("/list")
+    public Object getInstanceInfoDTOList(InstanceInfoDTOListReq req){
+        return Result.success(instanceService.getInstanceInfoDTOList(req));
+    }
+
+}

+ 31 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/LinkCountController.java

@@ -0,0 +1,31 @@
+package com.base.biz.controller;
+
+import com.base.biz.model.dto.request.LinkCountDTO;
+import com.base.biz.service.LinkCountService;
+import com.base.orbit.web.Result;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+@RestController
+@RequestMapping("/api/link")
+@Api(value = "余量计算")
+public class LinkCountController {
+
+    @Autowired
+    private LinkCountService linkCountService;
+
+
+    @ApiOperation(value = "余量计算")
+    @PostMapping("/count")
+    public Object linkCount(@RequestBody LinkCountDTO req){
+        Double Margin= linkCountService.linkCount(req);
+        return Result.success(Margin);
+    }
+}

+ 26 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/LogRecordController.java

@@ -0,0 +1,26 @@
+package com.base.biz.controller;
+
+
+import com.base.biz.model.dto.request.LogRecordDTO;
+import com.base.biz.service.LogRecordService;
+import com.base.orbit.web.Result;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+
+@RestController
+@RequestMapping("/api/log")
+@Api(tags = "日志模块")
+public class LogRecordController {
+
+    @Resource
+    private LogRecordService logRecordService;
+
+    @ApiOperation(value = "日志信息查询")
+    @PostMapping("/list")
+    public Object getSatelliteInfoDTOList(@RequestBody LogRecordDTO req){
+        return Result.success(logRecordService.getLogInfos(req));
+    }
+}

+ 28 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/PayloadController.java

@@ -0,0 +1,28 @@
+package com.base.biz.controller;
+
+import com.base.biz.model.dto.PayloadInfoDTO;
+import com.base.biz.model.dto.request.PayloadInfoDTOListReq;
+import com.base.biz.service.PayloadService;
+import com.base.orbit.web.Result;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RestController;
+import javax.annotation.Resource;
+
+@RestController
+@RequestMapping("/api/payload")
+@Api(tags = "载荷管理")
+public class PayloadController {
+
+    @Resource
+    PayloadService payloadService;
+
+    @ApiOperation(value = "载荷信息查询",response = PayloadInfoDTO.class)
+    @GetMapping("/list")
+    public Object getPayloadInfoList(PayloadInfoDTOListReq req){
+       return Result.success(payloadService.getPayloadInfoList(req));
+    }
+}

+ 57 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/SatelliteController.java

@@ -0,0 +1,57 @@
+package com.base.biz.controller;
+
+import com.base.biz.model.dto.SatelliteInfoDTO;
+import com.base.biz.model.dto.request.QuerySatelliteAddDTO;
+import com.base.biz.model.dto.request.SatelliteInfoDTOListReq;
+import com.base.biz.model.dto.response.SatelliteTypeListDTO;
+import com.base.biz.service.SatelliteService;
+import com.base.orbit.web.Result;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+@Api(tags = "卫星")
+@RestController
+@RequestMapping("/api/satellite")
+public class SatelliteController {
+
+    @Resource
+    SatelliteService satelliteService;
+
+    @ApiOperation(value = "WX信息查询", response = SatelliteInfoDTO.class)
+    @GetMapping("/list")
+    public Object getSatelliteInfoDTOList(SatelliteInfoDTOListReq req){
+        return Result.success(satelliteService.getSatelliteInfoDTOList(req));
+    }
+
+    @ApiOperation(value = "卫星Type类型字段查询", response = SatelliteTypeListDTO.class)
+    @GetMapping("/type")
+    public Result<SatelliteTypeListDTO> querySatelliteTypeListDTO() {
+        ;
+        return Result.success(satelliteService.querySatelliteTypeListDTO());
+    }
+
+    @ApiOperation(value = "新增卫星")
+    @PostMapping("/add")
+    public Result addSatellite(@RequestBody QuerySatelliteAddDTO querySatelliteAddDTO) throws Exception {
+        satelliteService.addSatellite(querySatelliteAddDTO);
+        return Result.success();
+    }
+
+    @ApiOperation(value = "修改卫星信息")
+    @PostMapping("/update")
+    public Result updateSatellite(@RequestBody SatelliteInfoDTO param) {
+        satelliteService.updateSatellite(param);
+        return Result.success();
+    }
+
+    @ApiOperation(value = "根据ID删除卫星和载荷")
+    @PostMapping("/delete")
+    public Result deleteSatellite(@RequestBody List<String> ids) {
+        satelliteService.deleteSatellite(ids);
+        return Result.success();
+    }
+}

+ 62 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/StationController.java

@@ -0,0 +1,62 @@
+package com.base.biz.controller;
+
+import com.base.biz.model.dto.StationInfoDTO;
+import com.base.biz.model.dto.request.QueryStationAddDTO;
+import com.base.biz.model.dto.request.StationInfoDTOListReq;
+import com.base.biz.model.dto.response.StationTypeListDTO;
+import com.base.biz.model.entity.StationInfo;
+import com.base.biz.service.StationService;
+import com.base.orbit.web.Result;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+@Api(tags = "地面站")
+@RestController
+@RequestMapping("/api/station")
+public class StationController {
+
+    @Resource
+    StationService stationService;
+
+    @ApiOperation(value = "地面站信息查询" ,response = StationInfoDTO.class)
+    @GetMapping("/list")
+    public Object getStationInfoDTOList(StationInfoDTOListReq req){
+        return Result.success(stationService.getStationInfoDTOList(req));
+    }
+
+    @ApiOperation(value = "站Type类型字段查询")
+    @GetMapping("/station/type")
+    public Result<StationTypeListDTO> queryStationTypeListDTO() throws Exception {
+        return Result.success(stationService.queryStationTypeListDTO());
+    }
+
+    @ApiOperation(value = "根据资源类型查询地面站")
+    @GetMapping("/station/list/resource/type")
+    public Result<List<StationInfo>> selListByResourceType(String resourceType){
+        return Result.success(stationService.selListByResourceType(resourceType));
+    }
+
+    @ApiOperation(value = "新增站信息")
+    @PostMapping("/add")
+    public Result addStation(@RequestBody QueryStationAddDTO queryStationAddDTO) {
+        stationService.addStation(queryStationAddDTO);
+        return Result.success();
+    }
+
+    @ApiOperation(value = "修改站信息")
+    @PostMapping("/update")
+    public Result updateStation(@RequestBody QueryStationAddDTO queryStationUpdateDTO) {
+        stationService.updateStation(queryStationUpdateDTO);
+        return Result.success();
+    }
+
+    @ApiOperation(value = "根据ID删除地面站")
+    @PostMapping("/delete")
+    public Result deleteStation(@RequestBody List<String> ids) {
+        return stationService.deleteStation(ids);
+    }
+}

+ 39 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/TargetController.java

@@ -0,0 +1,39 @@
+package com.base.biz.controller;
+
+import com.base.biz.aop.PageInfo;
+import com.base.biz.model.dto.request.QueryTargetListDTO;
+import com.base.biz.model.dto.response.SceneBasisTargetDTO;
+import com.base.biz.model.dto.response.TargetPointDTO;
+import com.base.biz.service.SceneBasisTargetService;
+import com.base.orbit.web.Result;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+
+@Api(tags = "目标控制类")
+@RestController
+@RequestMapping("/api/target/v1")
+public class TargetController {
+
+    @Resource
+    SceneBasisTargetService sceneBasisTargetService;
+
+    @ApiOperation(value = "目标列表查询")
+    @GetMapping("/getTargetList")
+    public Result<PageInfo<SceneBasisTargetDTO>> getTargetList(
+            @ApiParam(name = "page", value = "页码", required = true) int page,
+            @ApiParam(name = "size", value = "每页条数", required = true) int size) {
+        return Result.success(sceneBasisTargetService.getAllTargetList(page, size));
+    }
+
+    @ApiOperation(value = "点目标列表查询")
+    @GetMapping("/list/point")
+    public Result<PageInfo<TargetPointDTO>> getTargetPointList(QueryTargetListDTO reqDTO){
+        return Result.success(sceneBasisTargetService.getTargetPointPage(reqDTO));
+    }
+}

+ 57 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/TargetDemandController.java

@@ -0,0 +1,57 @@
+package com.base.biz.controller;
+
+
+import com.base.biz.model.dto.request.QueryTargetDemandDTO;
+import com.base.biz.model.dto.request.SatelliteTaskReqDTO;
+import com.base.biz.service.TargetDemandService;
+import com.base.orbit.domain.AjaxResult;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+
+@Api(tags = "任务监视相关")
+@RestController
+@RequestMapping("/api/target/demand/v1")
+public class TargetDemandController {
+
+    @Resource
+    private TargetDemandService targetDemandService;
+
+    @ApiOperation(value = "目标列表查询")
+    @PostMapping("/selAllTargetList")
+    public AjaxResult selAllTargetList(@RequestBody QueryTargetDemandDTO queryTargetDemandDTO) {
+        return targetDemandService.selAllTargetList(queryTargetDemandDTO);
+    }
+
+    @ApiOperation(value = "卫星观测信息")
+    @PostMapping("/selStripByParentId")
+    public AjaxResult selStripByParentId(@RequestBody QueryTargetDemandDTO queryTargetDemandDTO) {
+        return targetDemandService.selStripByParentId(queryTargetDemandDTO);
+    }
+
+    @ApiOperation(value = "根据载荷类型卫星分组")
+    @PostMapping("/selSatellieByPayload")
+    public AjaxResult selSatellieByPayload() {
+        return targetDemandService.selSatellieByPayload();
+    }
+
+    @ApiOperation(value = "卫星运行状态中任务信息")
+    @PostMapping("/selSatellieTaskInfo")
+    public AjaxResult selSatellieTaskInfo(@RequestBody SatelliteTaskReqDTO satelliteTaskReqDTO) {
+        return targetDemandService.selSatellieTaskInfo(satelliteTaskReqDTO);
+    }
+
+    @ApiOperation(value = "地面站资源信息")
+    @PostMapping("/selStationTaskInfo")
+    public AjaxResult selStationTaskInfo() {
+        return targetDemandService.selStationTaskInfo();
+    }
+
+
+
+}

+ 81 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/AntennaRpcController.java

@@ -0,0 +1,81 @@
+package com.base.biz.controller.rpc;
+
+
+import com.base.api.model.AntennaRpcDTO;
+import com.base.biz.model.entity.AntennaInfo;
+import com.base.biz.service.AntennaService;
+import com.base.orbit.log.ServerNameEnum;
+import com.base.orbit.utils.DateUtils;
+import com.base.orbit.utils.IdGenerator;
+import com.base.orbit.web.Result;
+import io.swagger.annotations.*;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.beans.BeanUtils;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.time.LocalDateTime;
+import java.util.List;
+
+@RequestMapping("/rpc/antena")
+@RestController
+@Slf4j
+public class AntennaRpcController {
+
+    @Resource
+    private AntennaService antennaService;
+
+    @RequestMapping(value = "/getInfoList", method = RequestMethod.POST)
+    public Object getInfoList(@RequestBody AntennaRpcDTO antennaRpcDTO) {
+        return Result.success(antennaService.getInfoList(antennaRpcDTO));
+    }
+
+
+    @PostMapping(value = "/upOrSaveAntena")
+    public Boolean upOrSaveAntena(@RequestBody AntennaRpcDTO antennaRpcDTO) {
+        try {
+            AntennaInfo antennaInfo = new AntennaInfo();
+            BeanUtils.copyProperties(antennaRpcDTO, antennaInfo);
+            if (StringUtils.isEmpty(antennaInfo.getId())) {
+                antennaInfo.setId(IdGenerator.getStrId());
+                antennaInfo.setCreateTime(DateUtils.getNowDate());
+                antennaService.save(antennaInfo);
+            } else {
+                antennaInfo.setUpdateTime(DateUtils.getNowDate());
+                antennaService.updateById(antennaInfo);
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            log.error("save or update antenna info is error,msg is " + e.getMessage() + "!", ServerNameEnum.BASE_SERVER);
+            return Boolean.FALSE;
+        }
+        return Boolean.TRUE;
+    }
+
+
+    @PostMapping(value = "/delAntenaInfoByIds")
+    public Boolean delAntenaInfoByIds(@RequestBody List<String> ids) {
+        try {
+            ids.stream().forEach(id -> {
+                        antennaService.removeById(id);
+                    }
+            );
+        } catch (Exception e) {
+            e.printStackTrace();
+            log.error("del antenna info is error,msg is " + e.getMessage() + "!", ServerNameEnum.BASE_SERVER);
+            return Boolean.FALSE;
+        }
+        return Boolean.TRUE;
+    }
+
+    @PostMapping(value = "/selAntenaInfoByIds")
+    public Object selAntenaInfoByIds(@RequestBody List<String> stationIds) {
+        return antennaService.selAntenaInfoByIds(stationIds);
+    }
+
+    @PostMapping(value = "/selAllAntenaInfos")
+    public Object selAllAntenaInfos() {
+        return antennaService.selAllAntenaInfos();
+    }
+}

+ 60 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/FzTaskRpcController.java

@@ -0,0 +1,60 @@
+package com.base.biz.controller.rpc;
+
+import com.base.api.model.FzTaskRpcDTO;
+import com.base.api.model.request.FzTaskInfoRpcReqDTO;
+import com.base.api.model.request.FzTaskInfoUpdateRpcDTO;
+import com.base.api.model.request.TaskStateNotice;
+import com.base.biz.model.dto.request.FzTaskInfoReqDTO;
+import com.base.biz.model.dto.request.FzTaskInfoUpdateDTO;
+import com.base.biz.service.FzTaskService;
+import com.base.orbit.utils.BizUtils;
+import com.base.orbit.web.Result;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.BeanUtils;
+import org.springframework.util.CollectionUtils;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+@RestController
+@RequestMapping("/rpc/fz")
+@Slf4j
+public class FzTaskRpcController {
+
+    @Resource
+    FzTaskService fzTaskService;
+
+    @RequestMapping(value = "/list", method = RequestMethod.POST)
+    public List<FzTaskRpcDTO> getFzTaskDTOList(@RequestBody FzTaskInfoRpcReqDTO req) {
+        FzTaskInfoReqDTO fzTaskInfoReqDTO = new FzTaskInfoReqDTO();
+        BeanUtils.copyProperties(req, fzTaskInfoReqDTO);
+
+        List<FzTaskRpcDTO> fzTaskDTOS = BizUtils.copyEntityToDto(FzTaskRpcDTO.class, fzTaskService.getFzTaskDTOList(fzTaskInfoReqDTO));
+       if (!CollectionUtils.isEmpty(fzTaskDTOS)){
+           log.info("星下点查询开始时间:{}",fzTaskDTOS.get(0).getStartTime());
+           log.info("星下点查询结束时间:{}",fzTaskDTOS.get(0).getEndTime());
+       }
+        return fzTaskDTOS;
+    }
+
+    @PostMapping("/update")
+    public Object updateTaskDTO(@RequestBody FzTaskInfoUpdateRpcDTO req) {
+        FzTaskInfoUpdateDTO fzTaskInfoUpdateDTO = new FzTaskInfoUpdateDTO();
+        BeanUtils.copyProperties(req, fzTaskInfoUpdateDTO);
+        fzTaskService.updateFzTask(fzTaskInfoUpdateDTO);
+        return Result.success();
+    }
+
+    @PostMapping("/step/notice")
+    public Object taskStepStateUpdate(@RequestBody TaskStateNotice taskStateNotice) {
+        fzTaskService.updateTaskStepState(taskStateNotice);
+        return Result.success();
+    }
+
+    @PostMapping("/step/delete")
+    public Object taskStepStateDelete(@RequestBody TaskStateNotice taskStateNotice) {
+        fzTaskService.deleteTaskStepState(taskStateNotice);
+        return Result.success();
+    }
+}

+ 41 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/InstanceRpcController.java

@@ -0,0 +1,41 @@
+package com.base.biz.controller.rpc;
+
+import com.base.biz.model.dto.InstanceInfoDTO;
+import com.base.biz.service.InstanceService;
+import com.base.api.model.InstanceRpcDTO;
+import com.base.orbit.utils.BizUtils;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+@RestController
+@RequestMapping("/rpc/instance")
+
+public class InstanceRpcController {
+
+    @Resource
+    private InstanceService instanceService;
+
+
+    @GetMapping("/list")
+    public List<InstanceRpcDTO> queryNewestInstance(){
+        List<InstanceInfoDTO> list = instanceService.queryNewestInstance();
+        return BizUtils.copyEntityToDto(InstanceRpcDTO.class,list);
+    }
+
+    @RequestMapping(value = "/getListBySatelliteCode", method = RequestMethod.POST)
+    public List<InstanceRpcDTO> getListBySatelliteCode(@RequestBody List<String> stringList){
+        List<InstanceInfoDTO> list = instanceService.getInstanceListBySatellite(stringList);
+        return BizUtils.copyEntityToDto(InstanceRpcDTO.class,list);
+    }
+
+    @RequestMapping(value = "/deleteBySatelliteCode", method = RequestMethod.POST)
+    public void   deleteBySatelliteCode(@RequestBody String satelliteCode){
+        instanceService.deleteBySatelliteCode(satelliteCode);
+    }
+    @RequestMapping(value = "/save", method = RequestMethod.POST)
+    public void   save(@RequestBody InstanceRpcDTO instanceRpcDTO){
+        instanceService.save(instanceRpcDTO);
+    }
+}

+ 32 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/LinkCountRpcController.java

@@ -0,0 +1,32 @@
+package com.base.biz.controller.rpc;
+
+
+import com.base.api.model.request.QueryLinkCountDTO;
+import com.base.biz.model.dto.request.LinkCountDTO;
+import com.base.biz.service.LinkCountService;
+import com.base.orbit.web.Result;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.BeanUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+
+@RequestMapping("/rpc/linkCount")
+public class LinkCountRpcController {
+
+    @Autowired
+    private LinkCountService linkCountService;
+
+    @ApiOperation(value = "余量计算")
+    @PostMapping("/count")
+    public Object linkCount(@RequestBody QueryLinkCountDTO req) {
+        LinkCountDTO linkCountDTO = new LinkCountDTO();
+        BeanUtils.copyProperties(req, linkCountDTO);
+        Double Margin = linkCountService.linkCount(linkCountDTO);
+        return Margin;
+    }
+}

+ 38 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/PayloadRpcController.java

@@ -0,0 +1,38 @@
+package com.base.biz.controller.rpc;
+
+import com.base.biz.model.dto.PayloadInfoDTO;
+import com.base.biz.model.dto.request.PayloadInfoDTOListReq;
+import com.base.biz.service.PayloadService;
+import com.base.api.model.PayloadRpcDTO;
+import com.base.api.model.request.PayloadRpcReqDTO;
+import com.base.orbit.utils.BizUtils;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+@RestController
+
+@RequestMapping("/rpc/payload")
+public class PayloadRpcController {
+
+    @Resource
+    PayloadService payloadService;
+
+    @RequestMapping(value = "/list", method = RequestMethod.POST)
+    public List<PayloadRpcDTO> getPayloadRpcDTOList(@RequestBody PayloadRpcReqDTO payloadRpcReqDTO){
+        PayloadInfoDTOListReq payloadInfoDTOListQReq = new PayloadInfoDTOListReq();
+        payloadInfoDTOListQReq.setSatelliteIds(payloadRpcReqDTO.getSatelliteIds());
+        payloadInfoDTOListQReq.setSatelliteCodes(payloadRpcReqDTO.getSatelliteCodes());
+        payloadInfoDTOListQReq.setIds(payloadRpcReqDTO.getPayloadIds());
+        List<PayloadInfoDTO> payloadInfoDTOList = payloadService.getPayloadInfoList(payloadInfoDTOListQReq);
+        return BizUtils.copyEntityToDto(PayloadRpcDTO.class,payloadInfoDTOList);
+    }
+
+    @RequestMapping(value = "/getAllList", method = RequestMethod.POST)
+    public List<PayloadRpcDTO> getAllList() {
+        List<PayloadInfoDTO> payloadInfoDTOList = payloadService.getAllList();
+        return BizUtils.copyEntityToDto(PayloadRpcDTO.class, payloadInfoDTOList);
+    }
+
+}

+ 46 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/PointRpcController.java

@@ -0,0 +1,46 @@
+package com.base.biz.controller.rpc;
+
+import com.base.api.model.PointRpcDTO;
+import com.base.api.model.request.PointListRpcReqDTO;
+import com.base.api.model.request.TaskStateNotice;
+import com.base.biz.model.dto.PointDTO;
+import com.base.biz.model.dto.request.PointListReqDTO;
+import com.base.biz.model.entity.PointInfo;
+import com.base.biz.service.PointService;
+import com.base.orbit.utils.BizUtils;
+import com.base.orbit.web.Result;
+import org.springframework.beans.BeanUtils;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.*;
+import java.util.stream.Collectors;
+
+@RestController
+public class PointRpcController {
+    @Resource
+    PointService pointService;
+
+    @RequestMapping(value = "/point/list", method = RequestMethod.POST)
+    public List<PointRpcDTO> getPointRpcList(@RequestBody PointListRpcReqDTO req) {
+        PointListReqDTO pointListReqDTO = new PointListReqDTO();
+        BeanUtils.copyProperties(req, pointListReqDTO);
+        return BizUtils.copyEntityToDto(PointRpcDTO.class, pointService.getPointDTOList(pointListReqDTO));
+    }
+
+    @RequestMapping(value = "/point/add", method = RequestMethod.POST)
+    public void addPointList(@RequestBody List<PointRpcDTO> pointRpcDTOS) {
+        List<PointInfo> pointDTOS = BizUtils.copyEntityToDto(PointInfo.class, pointRpcDTOS);
+        pointService.saveBatch(pointDTOS);
+    }
+    @PostMapping("/point/delete")
+    public Object deletePointDTO(@RequestBody PointListRpcReqDTO pointListRpcReqDTO) {
+        pointService.deletePointDTO(pointListRpcReqDTO);
+        return Result.success();
+    }
+
+    @PostMapping("/point/deleteByIds")
+    public boolean deleteByIds(@RequestBody List<String> ids) {
+        return pointService.deleteByIds(ids);
+    }
+}

+ 38 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/SatelliteAppendixRpcController.java

@@ -0,0 +1,38 @@
+package com.base.biz.controller.rpc;
+
+import com.base.api.model.SatelliteAppendixRpcDTO;
+import com.base.biz.model.entity.SatelliteAppendix;
+import com.base.biz.service.SatelliteAppendixService;
+import com.base.orbit.utils.BizUtils;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+@RestController
+@RequestMapping("/rpc/appendix")
+public class SatelliteAppendixRpcController {
+
+    @Resource
+    SatelliteAppendixService satelliteAppendixService;
+
+    @PostMapping("/getList")
+    public List<SatelliteAppendixRpcDTO> getList(@RequestBody List<String> satelliteCode) {
+        return BizUtils.copyEntityToDto(SatelliteAppendixRpcDTO.class, satelliteAppendixService.getList(satelliteCode));
+    }
+
+    @PostMapping("/update/add")
+    public void update(@RequestBody SatelliteAppendix satelliteAppendix) {
+        satelliteAppendixService.updateAddById(satelliteAppendix);
+    }
+
+    @PostMapping("/save")
+    public void save(@RequestBody SatelliteAppendix satelliteAppendix) {
+        satelliteAppendixService.saveSatelliteAppendix(satelliteAppendix);
+    }
+
+    @PostMapping("/remove")
+    public void remove(String id) {
+        satelliteAppendixService.removeById(id);
+    }
+}

+ 66 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/SatelliteRpcController.java

@@ -0,0 +1,66 @@
+package com.base.biz.controller.rpc;
+
+
+import com.base.api.model.request.FzTaskInfoUpdateRpcDTO;
+import com.base.api.model.request.UpdateSatelliteRpcDTO;
+import com.base.biz.model.dto.SatelliteInfoDTO;
+import com.base.biz.model.dto.request.FzTaskInfoUpdateDTO;
+import com.base.biz.model.dto.request.SatelliteInfoDTOListReq;
+import com.base.biz.model.dto.request.UpdateSatelliteDTOReq;
+import com.base.biz.service.SatelliteService;
+import com.base.api.model.SatelliteRpcDTO;
+import com.base.orbit.utils.BizUtils;
+import com.base.orbit.web.Result;
+import org.springframework.beans.BeanUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@RestController
+
+@RequestMapping("/rpc/satellite")
+public class SatelliteRpcController {
+
+    @Autowired
+    private SatelliteService SatelliteService;
+
+    /**
+     * 查询卫星信息
+     *
+     */
+    @RequestMapping(value = "/listall", method = RequestMethod.GET)
+    public List<SatelliteRpcDTO> list(){
+        SatelliteInfoDTOListReq req=new SatelliteInfoDTOListReq();
+        List<SatelliteInfoDTO> list = SatelliteService.getSatelliteInfoDTOList(req);
+        return BizUtils.copyEntityToDto(SatelliteRpcDTO.class,list);
+    }
+
+    /**
+     * 查询卫星信息
+     *@param ids
+     */
+    @PostMapping("/listbyids")
+    public List<SatelliteRpcDTO> listByIds(@RequestBody List<String> satelliteCodes){
+        List<SatelliteInfoDTO> list = SatelliteService.listByIds(satelliteCodes);
+        return BizUtils.copyEntityToDto(SatelliteRpcDTO.class,list);
+    }
+
+    /**
+     * 查询卫星信息
+     *@param ids
+     */
+    @PostMapping("/queryAllSatelliteByIds")
+    public List<SatelliteRpcDTO> queryAllSatelliteByIds(@RequestBody List<String> satelliteids){
+        List<SatelliteInfoDTO> list = SatelliteService.queryAllSatelliteByIds(satelliteids);
+        return BizUtils.copyEntityToDto(SatelliteRpcDTO.class,list);
+    }
+
+    @PostMapping("/update")
+    public Object update(@RequestBody UpdateSatelliteRpcDTO req) {
+        UpdateSatelliteDTOReq updateSatelliteDTOReq = new UpdateSatelliteDTOReq();
+        BeanUtils.copyProperties(req, updateSatelliteDTOReq);
+        SatelliteService.update(updateSatelliteDTOReq);
+        return Result.success();
+    }
+}

+ 29 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/SatelliteStationMatchRpcController.java

@@ -0,0 +1,29 @@
+package com.base.biz.controller.rpc;
+
+import com.base.biz.model.dto.response.SatelliteStationMatchDTO;
+import com.base.biz.service.SatelliteStationMatchService;
+import com.base.api.model.SatelliteStationMatchRpcDTO;
+import com.base.orbit.utils.BizUtils;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+@RestController
+
+@RequestMapping("/rpc/stationmatch")
+public class SatelliteStationMatchRpcController {
+    @Resource
+    SatelliteStationMatchService satelliteStationMatchService;
+
+
+    @GetMapping("/list")
+    public List<SatelliteStationMatchRpcDTO> getBySatelliteCodeAndStationCode(@RequestParam("satelliteCodeList") List<String> satelliteCodeList, @RequestParam("stationCodeList")List<String> stationCodeList){
+        List<SatelliteStationMatchDTO> satelliteStationMatchDTOList= satelliteStationMatchService.getBySatelliteCodeAndStationCode(satelliteCodeList,stationCodeList);
+        return BizUtils.copyEntityToDto(SatelliteStationMatchRpcDTO.class,satelliteStationMatchDTOList);
+    }
+}

+ 43 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/SceneBasisTargetRpcController.java

@@ -0,0 +1,43 @@
+package com.base.biz.controller.rpc;
+
+
+import com.base.api.model.SceneBasisTargetRpcDTO;
+import com.base.biz.model.dto.response.SceneBasisTargetDTO;
+import com.base.biz.model.entity.SceneBasisTarget;
+import com.base.biz.service.SceneBasisTargetService;
+import org.springframework.beans.BeanUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.ArrayList;
+import java.util.List;
+
+@RestController
+@RequestMapping("/target")
+public class SceneBasisTargetRpcController {
+
+    @Resource
+    private SceneBasisTargetService sceneBasisTargetService;
+
+
+    @GetMapping("/detail")
+    public SceneBasisTargetRpcDTO getTargetByCode(String code){
+        SceneBasisTargetDTO sceneBasisTargetDTO=sceneBasisTargetService.getTargetByCode(code);
+        SceneBasisTargetRpcDTO sceneBasisTargetRpcDTO=new SceneBasisTargetRpcDTO();
+        BeanUtils.copyProperties(sceneBasisTargetDTO, sceneBasisTargetRpcDTO);
+        return sceneBasisTargetRpcDTO;
+    }
+    @PostMapping("/list")
+    public List<SceneBasisTargetRpcDTO> getTargetByCodes(@RequestBody List<String> targetCodes){
+        List<SceneBasisTargetDTO> list=sceneBasisTargetService.getTargetByCodes(targetCodes);
+        List<SceneBasisTargetRpcDTO> res = new ArrayList<>();
+        list.forEach(e -> {
+            SceneBasisTargetRpcDTO sceneBasisTargetRpcDTO = new SceneBasisTargetRpcDTO();
+            BeanUtils.copyProperties(e, sceneBasisTargetRpcDTO);
+            res.add(sceneBasisTargetRpcDTO);
+        });
+        return res;
+    }
+
+}

+ 39 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/SceneTargetPointRpcController.java

@@ -0,0 +1,39 @@
+package com.base.biz.controller.rpc;
+
+
+import com.base.api.model.SceneTargetPointRpcDTO;
+import com.base.biz.model.dto.response.SceneTargetPointDTO;
+import com.base.biz.model.entity.SceneTargetPoint;
+import com.base.biz.service.SceneTargetPointService;
+import org.springframework.beans.BeanUtils;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Set;
+
+@RestController
+@RequestMapping("/targetPoint")
+public class SceneTargetPointRpcController {
+
+    @Resource
+    private SceneTargetPointService sceneTargetPointService;
+    /**
+     * 根据目标id,查询点列表
+     * @param targetId 目标id
+     * @return 点列表
+     */
+    @GetMapping("/list/by/targetId")
+    public List<SceneTargetPointRpcDTO> getPointListByTargetId(String targetId){
+        List<SceneTargetPointDTO> list=sceneTargetPointService.getPointListByTargetId(targetId);
+        List<SceneTargetPointRpcDTO> res = new ArrayList<>();
+        for (SceneTargetPointDTO s : list) {
+            SceneTargetPointRpcDTO sceneTargetPointRpcDTO = new SceneTargetPointRpcDTO();
+            BeanUtils.copyProperties(s, sceneTargetPointRpcDTO);
+            res.add(sceneTargetPointRpcDTO);
+        }
+        return res;
+    }
+
+}

+ 59 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/StationRpcController.java

@@ -0,0 +1,59 @@
+package com.base.biz.controller.rpc;
+
+
+import com.base.api.model.PayloadRpcDTO;
+import com.base.api.model.StationRpcDTO;
+import com.base.biz.model.dto.PayloadInfoDTO;
+import com.base.biz.model.dto.StationInfoDTO;
+import com.base.biz.model.dto.request.StationInfoDTOListReq;
+import com.base.biz.model.dto.request.StationInfoDTOSetReq;
+import com.base.biz.service.StationService;
+import com.base.api.model.request.QueryStationAddRpcDTO;
+import com.base.orbit.utils.BizUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.util.CollectionUtils;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+import java.util.Set;
+
+@RestController
+
+@RequestMapping("/rpc/station")
+public class StationRpcController {
+
+    @Autowired
+    private StationService yxInfoBasisStationService;
+
+
+    // 根据地面站代号集合查询地面站信息
+    @PostMapping("/listbystationids")
+    public List<QueryStationAddRpcDTO> getStationListByStationIdList(@RequestBody List<String> stationIdList) {
+        StationInfoDTOListReq req = new StationInfoDTOListReq();
+        if (CollectionUtils.isEmpty(stationIdList)) {
+        } else {
+            req.setIds(stationIdList);
+        }
+        List<StationInfoDTO> list = yxInfoBasisStationService.getStationInfoDTOList(req);
+        return BizUtils.copyEntityToDto(QueryStationAddRpcDTO.class, list);
+    }
+
+    // 根据地面站代号集合查询地面站信息
+    @PostMapping("/setbystationids")
+    public List<QueryStationAddRpcDTO> getStationListByStationIdSet(@RequestBody Set<String> stationIdList) {
+        StationInfoDTOSetReq req = new StationInfoDTOSetReq();
+        if (CollectionUtils.isEmpty(stationIdList)) {
+        } else {
+            req.setIds(stationIdList);
+        }
+        List<StationInfoDTO> list = yxInfoBasisStationService.getStationListByStationIdSet(req);
+        return BizUtils.copyEntityToDto(QueryStationAddRpcDTO.class, list);
+    }
+
+
+    @RequestMapping(value = "/getAllList", method = RequestMethod.POST)
+    public List<StationRpcDTO> getAllList() {
+        List<StationInfoDTO> stationInfoDTOS = yxInfoBasisStationService.getAllList();
+        return BizUtils.copyEntityToDto(StationRpcDTO.class, stationInfoDTOS);
+    }
+}

+ 40 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/controller/rpc/TragetDemandRpcController.java

@@ -0,0 +1,40 @@
+package com.base.biz.controller.rpc;
+
+
+import com.base.api.model.TargetDemandRpcDTO;
+import com.base.api.model.request.QueryStationAddRpcDTO;
+import com.base.biz.model.dto.response.TargetDemandDTO;
+import com.base.biz.model.entity.TargetDemand;
+import com.base.biz.service.TargetDemandService;
+import com.base.orbit.utils.BizUtils;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import javax.annotation.Resource;
+import java.util.List;
+import java.util.Set;
+
+@RestController
+
+@RequestMapping("/rpc/tragetDemand")
+public class TragetDemandRpcController {
+
+    @Resource
+    private TargetDemandService targetDemandService;
+
+    // 根据parentIds查询目标信息
+    @PostMapping("/selTargetDemandByParentId")
+    public List<TargetDemandRpcDTO> selTargetDemandByParentId(@RequestBody Set<String> parents) {
+        List<TargetDemandRpcDTO> targetDemands = targetDemandService.selTargetDemandByParentId(parents);
+        return targetDemands;
+    }
+
+    // 根据parentIds查询目标信息
+    @PostMapping("//demand/commit")
+    public void batchStatus(@RequestBody List<TargetDemandRpcDTO> list) {
+        List<TargetDemandDTO> targetDemandDTOS = BizUtils.copyEntityToDto(TargetDemandDTO.class, list);
+        targetDemandService.batchStatus(targetDemandDTOS);
+    }
+
+}

+ 35 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/AntennaInfoMapper.java

@@ -0,0 +1,35 @@
+package com.base.biz.mapper;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.base.api.model.AntennaRpcDTO;
+import com.base.biz.model.entity.AntennaInfo;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Mapper
+@Repository
+public interface AntennaInfoMapper extends BaseMapper<AntennaInfo> {
+
+    default List<AntennaInfo> getInfoList(AntennaRpcDTO antennaRpcDTO) {
+        QueryWrapper<AntennaInfo> queryWrapper = new QueryWrapper();
+        if (!StringUtils.isEmpty(antennaRpcDTO.getDmzdh())){
+            queryWrapper.eq("dmzdh", antennaRpcDTO.getDmzdh());
+        }
+        if (!StringUtils.isEmpty(antennaRpcDTO.getTxkj())){
+            queryWrapper.eq("txkj", antennaRpcDTO.getTxkj());
+        }
+        return this.selectList(queryWrapper);
+    }
+
+
+    default List<AntennaInfo> selAntenaInfoByIds(List<String> ids){
+        QueryWrapper queryWrapper = new QueryWrapper();
+        queryWrapper.in("dmzdh",ids);
+        return this.selectList(queryWrapper);
+    }
+}

+ 7 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/BasePlatformDispatchTaskInfoMapper.java

@@ -0,0 +1,7 @@
+package com.base.biz.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.base.biz.model.entity.BasePlatformDispatchTaskInfo;
+
+public interface BasePlatformDispatchTaskInfoMapper extends BaseMapper<BasePlatformDispatchTaskInfo> {
+}

+ 15 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/CheckMapper.java

@@ -0,0 +1,15 @@
+package com.base.biz.mapper;
+
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.springframework.stereotype.Repository;
+
+@Repository
+@Mapper
+public interface CheckMapper {
+
+
+    @Select("select id from ${tableName} where ${field} = #{value} limit 1")
+    String checkBySelectId(@Param("tableName") String tableName, @Param("field") String field, @Param("value") String value);
+}

+ 25 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/FzTaskInfoMapper.java

@@ -0,0 +1,25 @@
+package com.base.biz.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.base.api.model.request.TaskStateNotice;
+import com.base.biz.model.dto.request.FzTaskInfoReqDTO;
+import com.base.biz.model.dto.request.FzTaskInfoUpdateDTO;
+import com.base.biz.model.entity.FzTaskInfo;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Update;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Mapper
+@Repository
+public interface FzTaskInfoMapper extends BaseMapper<FzTaskInfo> {
+
+    List<FzTaskInfo> getFzTaskInfoList(@Param("req") FzTaskInfoReqDTO req);
+
+    void updateTaskInfo(@Param("req") FzTaskInfoUpdateDTO fzTaskInfoUpdateDTO);
+
+
+    void updateTaskStepState(@Param("req") TaskStateNotice taskStateNotice);
+}

+ 22 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/InstanceInfoMapper.java

@@ -0,0 +1,22 @@
+package com.base.biz.mapper;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.base.biz.model.dto.request.InstanceInfoDTOListReq;
+import com.base.biz.model.entity.InstanceInfo;
+import com.base.biz.model.entity.SatelliteInfo;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Mapper
+@Repository
+public interface InstanceInfoMapper extends BaseMapper<InstanceInfo> {
+
+    List<InstanceInfo> getInstanceInfoDTOList(@Param("req") InstanceInfoDTOListReq req);
+    default List<InstanceInfo> selectBySatellite(List<String> satelliteCode){
+        return selectList(new QueryWrapper<InstanceInfo>().in("satellite_code",satelliteCode));
+    }
+}

+ 27 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/LogRecordMapper.java

@@ -0,0 +1,27 @@
+package com.base.biz.mapper;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.base.biz.model.dto.request.LogRecordDTO;
+import com.base.biz.model.entity.LogRecordInfo;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Repository;
+import java.util.List;
+import java.util.Objects;
+
+
+@Mapper
+@Repository
+public interface LogRecordMapper extends BaseMapper<LogRecordInfo> {
+
+    default List<LogRecordInfo> getLogInfos(LogRecordDTO req) {
+        QueryWrapper<LogRecordInfo> queryWrapper = new QueryWrapper<>();
+        queryWrapper
+                .eq(StringUtils.isNotEmpty(req.getServerName()), "server_name", req.getServerName())
+                .eq(StringUtils.isNotEmpty(req.getLoggerName()), "logger_name", req.getLoggerName())
+                .ge(Objects.nonNull(req.getStartTime()), "time", req.getStartTime())
+                .le(Objects.nonNull(req.getEndTime()), "time", req.getEndTime());
+        return this.selectList(queryWrapper);
+    }
+}

+ 47 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/PayloadInfoMapper.java

@@ -0,0 +1,47 @@
+package com.base.biz.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.base.biz.model.dto.request.PayloadInfoDTOListReq;
+import com.base.biz.model.dto.request.PayloadInfoDTOListReq2;
+import com.base.biz.model.entity.PayloadInfo;
+import org.apache.ibatis.annotations.Delete;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Mapper
+@Repository
+public interface PayloadInfoMapper extends BaseMapper<PayloadInfo> {
+
+    public List<PayloadInfo> getPayloadInfoList(@Param("req") PayloadInfoDTOListReq2 req);
+
+    @Select("<script> " +
+            "        select * from payload_info\n" +
+            "        <where>\n" +
+            "            <if test=\"satelliteIdList != null\">\n" +
+            "                satellite_id in\n" +
+            "                <foreach collection=\"satelliteIdList\" index=\"index\" item=\"item\" open=\"(\" separator=\",\" close=\")\">\n" +
+            "                    #{item}\n" +
+            "                </foreach>\n" +
+            "            </if>\n" +
+            "        </where>" +
+            "</script>")
+    List<PayloadInfo> selectByStaelliteIdList(@Param("satelliteIdList") List<String> asList);
+
+    void batch(List<PayloadInfo> list);
+
+    @Delete("<script>delete from payload_info" +
+            "        <where>\n" +
+            "            <if test=\"satelliteIdList != null\">\n" +
+            "                type in\n" +
+            "                <foreach collection=\"satelliteIdList\" index=\"index\" item=\"item\" open=\"(\" separator=\",\" close=\")\">\n" +
+            "                    #{item}\n" +
+            "                </foreach>\n" +
+            "            </if>\n" +
+            "        </where>" +
+            "</script>")
+    void deleteBySatelliteId(@Param("satelliteIdList") List<String> satelliteIdList);
+}

+ 14 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/PointInfoMapper.java

@@ -0,0 +1,14 @@
+package com.base.biz.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.base.biz.model.dto.request.PointListReqDTO;
+import com.base.biz.model.entity.PointInfo;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface PointInfoMapper extends BaseMapper<PointInfo> {
+
+    List<PointInfo> getPointInfoList(@Param("req") PointListReqDTO req);
+
+}

+ 39 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/SatelliteAppendixMapper.java

@@ -0,0 +1,39 @@
+package com.base.biz.mapper;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.base.biz.model.entity.SatelliteAppendix;
+import com.base.orbit.utils.IdGenerator;
+import org.springframework.util.CollectionUtils;
+
+import java.util.List;
+import java.util.UUID;
+
+/**
+ * @author yc
+ * @date 2023-02-24
+ */
+public interface SatelliteAppendixMapper extends BaseMapper<SatelliteAppendix> {
+
+    default void save(SatelliteAppendix obj) {
+        obj.setId(IdGenerator.getStrId());
+        this.insert(obj);
+    }
+
+    default void update(SatelliteAppendix obj) {
+        this.updateById(obj);
+    }
+
+    default void removeById(String id) {
+        this.deleteById(id);
+    }
+
+    default List<SatelliteAppendix> getList(List<String> satelliteCode) {
+        QueryWrapper<SatelliteAppendix> queryWrapper = new QueryWrapper<>();
+        if (!CollectionUtils.isEmpty(satelliteCode)){
+            queryWrapper.in("satellite_code",satelliteCode);
+        }
+        return this.selectList(new QueryWrapper<>());
+    }
+
+}

+ 44 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/SatelliteInfoMapper.java

@@ -0,0 +1,44 @@
+package com.base.biz.mapper;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.base.biz.model.dto.request.SatelliteInfoDTOListReq;
+import com.base.biz.model.dto.response.SatellitePayloadDTO;
+import com.base.biz.model.entity.SatelliteInfo;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+import org.springframework.util.CollectionUtils;
+
+import java.util.List;
+
+@Mapper
+@Repository
+public interface SatelliteInfoMapper extends BaseMapper<SatelliteInfo> {
+
+    List<SatelliteInfo> getSatelliteInfoDTOList(@Param("req") SatelliteInfoDTOListReq req);
+
+    default List<SatelliteInfo> listByIds(List<String> satelliteCodes){
+        QueryWrapper<SatelliteInfo> queryWrapper=new QueryWrapper<>();
+        if (!CollectionUtils.isEmpty(satelliteCodes)){
+            queryWrapper.in("satellite_code",satelliteCodes);
+        }
+        return this.selectList(queryWrapper);
+    }
+    default List<SatelliteInfo> queryAllSatelliteByIds(List<String> satelliteids){
+        QueryWrapper<SatelliteInfo> queryWrapper=new QueryWrapper<>();
+        if (!CollectionUtils.isEmpty(satelliteids)){
+            queryWrapper.in("id",satelliteids);
+        }
+        return this.selectList(queryWrapper);
+    }
+    default SatelliteInfo getSatelliteInfoByCode(String satelliteCode){
+        QueryWrapper<SatelliteInfo> queryWrapper=new QueryWrapper<>();
+        if (satelliteCode!=null){
+            queryWrapper.eq("satellite_code",satelliteCode);
+        }
+        return this.selectOne(queryWrapper);
+    }
+
+    List<SatellitePayloadDTO> selectSatellitePayloadDTOList(@Param("type") List<String> list);
+}

+ 20 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/SatelliteStationMatchMapper.java

@@ -0,0 +1,20 @@
+package com.base.biz.mapper;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.base.biz.model.entity.SatelliteStationMatch;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Repository;
+import org.springframework.util.CollectionUtils;
+
+import java.util.List;
+
+@Mapper
+@Repository
+public interface SatelliteStationMatchMapper extends BaseMapper<SatelliteStationMatch> {
+
+   default List<SatelliteStationMatch> getBySatelliteCodeAndStationCode(List<String> satelliteCodeList, List<String> stationCodeList){
+       return this.selectList(new QueryWrapper<SatelliteStationMatch>().in("satellite_code",satelliteCodeList).in(!CollectionUtils.isEmpty(stationCodeList),"station_code",stationCodeList));
+   }
+
+}

+ 20 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/SceneBasisSceneMapper.java

@@ -0,0 +1,20 @@
+package com.base.biz.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.base.biz.model.entity.SceneBasisScene;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Repository;
+
+/**
+ * <p>
+ * Mapper 接口
+ * </p>
+ *
+ * @author cxl
+ * @since 2022-02-24
+ */
+@Mapper
+@Repository
+public interface SceneBasisSceneMapper extends BaseMapper<SceneBasisScene> {
+
+}

+ 29 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/SceneBasisTargetMapper.java

@@ -0,0 +1,29 @@
+package com.base.biz.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.base.biz.model.entity.SceneBasisTarget;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+/**
+ * <p>
+ * 目标信息表 Mapper 接口
+ * </p>
+ *
+ * @author cxl
+ * @since 2022-02-24
+ */
+@Mapper
+@Repository
+public interface SceneBasisTargetMapper extends BaseMapper<SceneBasisTarget> {
+
+    void batch(@Param("list") List<SceneBasisTarget> list);
+
+    SceneBasisTarget getTargetByCode(@Param("code") String code);
+
+    List<SceneBasisTarget> getTargetByCodes(List<String> targetCodes);
+
+}

+ 20 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/SceneSceneTargetMapper.java

@@ -0,0 +1,20 @@
+package com.base.biz.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.base.biz.model.entity.SceneSceneTarget;
+import org.apache.ibatis.annotations.Mapper;
+import org.springframework.stereotype.Repository;
+
+/**
+ * <p>
+ * Mapper 接口
+ * </p>
+ *
+ * @author cxl
+ * @since 2022-02-24
+ */
+@Mapper
+@Repository
+public interface SceneSceneTargetMapper extends BaseMapper<SceneSceneTarget> {
+
+}

+ 56 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/SceneTargetPointMapper.java

@@ -0,0 +1,56 @@
+package com.base.biz.mapper;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.base.biz.model.dto.request.QueryTargetListDTO;
+import com.base.biz.model.dto.request.QueryTargetPointBatchDTO;
+import com.base.biz.model.dto.response.TargetPointDTO;
+import com.base.biz.model.entity.SceneTargetPoint;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Set;
+
+/**
+ * <p>
+ * 目标顶点信息 Mapper 接口
+ * </p>
+ *
+ * @author cxl
+ * @since 2022-02-24
+ */
+@Mapper
+@Repository
+public interface SceneTargetPointMapper extends BaseMapper<SceneTargetPoint> {
+
+    /**
+     * 批量导入
+     * @param list
+     */
+    void batch(@Param("list") List<QueryTargetPointBatchDTO> list);
+
+    /**
+     * 根据目标id,查询点列表
+     * @param targetId 目标id
+     * @return 点列表
+     */
+    default List<SceneTargetPoint> getPointListByTargetId(String targetId){
+        return this.selectList(new QueryWrapper<SceneTargetPoint>().eq("target_id",targetId));
+    };
+
+    /**
+     * 根据目标id,查询点列表
+     * @param targetIds 目标id
+     * @return 点列表
+     */
+    default List<SceneTargetPoint> getPointListByTargetIds(Set<String> targetIds){
+        return this.selectList(new QueryWrapper<SceneTargetPoint>().in("target_id",targetIds).orderByAsc("sequence"));
+    };
+
+    List<TargetPointDTO> getTargetPointDTO(@Param("req") QueryTargetListDTO queryTargetListDTO);
+
+    List<TargetPointDTO> getTargetByVo(@Param("req") QueryTargetListDTO queryTargetListDTO);
+
+}

+ 26 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/StationInfoMapper.java

@@ -0,0 +1,26 @@
+package com.base.biz.mapper;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.base.biz.model.dto.request.StationInfoDTOListReq;
+import com.base.biz.model.dto.request.StationInfoDTOSetReq;
+import com.base.biz.model.entity.StationInfo;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Objects;
+
+@Mapper
+@Repository
+public interface StationInfoMapper extends BaseMapper<StationInfo> {
+
+    List<StationInfo> getStationInfoDTOList(@Param("req") StationInfoDTOListReq req);
+
+    List<StationInfo> getStationInfoDTOSet(@Param("req") StationInfoDTOSetReq req);
+
+   default List<StationInfo> selListByResourceType(String resourceType){
+       return this.selectList(new QueryWrapper<StationInfo>().eq("resource_type",resourceType));
+   }
+}

+ 46 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/mapper/TargetDemandMapper.java

@@ -0,0 +1,46 @@
+package com.base.biz.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.base.biz.model.dto.request.QueryTargetRelationListDTO;
+import com.base.biz.model.entity.TargetDemand;
+import org.apache.ibatis.annotations.*;
+import org.springframework.stereotype.Repository;
+
+import java.util.Collection;
+import java.util.Date;
+import java.util.List;
+
+@Mapper
+@Repository
+public interface TargetDemandMapper extends BaseMapper<TargetDemand> {
+
+    void batch(@Param("list") List<TargetDemand> list);
+
+    List<TargetDemand> selectTargetRelationDTOList(@Param("req") QueryTargetRelationListDTO queryTargetRelationListDTO);
+
+    @Select("SELECT parent_id FROM `target_demand` ORDER BY created_date desc limit 1")
+    String getParentId();
+
+    @Select("SELECT parent_id FROM `target_demand` where parent_id like concat ('%','${parentId}','%') ORDER BY created_date desc limit 1")
+    String getParentIdByParentId(@Param("parentId") String parentId);
+
+    @Update("update target_demand set investigative_means = #{investigativeMeans} ,  satellite_selected = #{satelliteSelected} where parent_id like concat ('%','${parentId}','%')")
+    void updateInvestigativeMeansByParentId(@Param("parentId") String parentId, @Param("investigativeMeans")String investigativeMeans, @Param("satelliteSelected")String satelliteSelected);
+
+    @Update("update target_demand set start_time = #{startTime} , end_time = #{endTime} where parent_id like concat ('%','${parentId}','%')")
+    void updateTimeByParentId(@Param("parentId") String parentId, @Param("startTime")Date startTime, @Param("endTime")Date endTime);
+
+    @Delete("delete from target_demand where parent_id like concat ('%','${parentId}','%')")
+    void deleteByParentId(@Param("parentId") String parentId);
+
+    @Update("update target_demand set status = 1 where parent_id like concat ('%','${parentId}','%') and status=0")
+    void updateStatusByParentId(@Param("parentId") String parentId);
+
+    List<TargetDemand>  selectTargetRelationDTOListByParentIds(@Param("parentIds") Collection<String> parentIds);
+
+    int batchUpdateStatus(@Param("list")List<TargetDemand> list);
+
+
+
+
+}

+ 11 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/model/KeyValueDTO.java

@@ -0,0 +1,11 @@
+package com.base.biz.model;
+
+import lombok.Data;
+
+@Data
+public class KeyValueDTO<E,V> {
+
+    private E key;
+
+    private V value;
+}

+ 18 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/model/PointDTO.java

@@ -0,0 +1,18 @@
+package com.base.biz.model;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+@Data
+public class PointDTO {
+
+    @ApiModelProperty("点Id")
+    private String pointId;
+    @ApiModelProperty("顶点连接顺序,从0开始,不包括中心点(中心点为-1)")
+    private Integer sequence;
+    @ApiModelProperty("纬度")
+    private Double lat;
+    @ApiModelProperty("经度")
+    private Double lng;
+
+}

+ 82 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/model/dto/BasePlatformDispatchTaskDTO.java

@@ -0,0 +1,82 @@
+package com.base.biz.model.dto;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+@Data
+public class BasePlatformDispatchTaskDTO {
+
+    @ApiModelProperty("任务批次号")
+    private String messageId;
+    @ApiModelProperty("任务标识号")
+    private String reqId;
+    @ApiModelProperty("需求名称")
+    private String reqName;
+    @ApiModelProperty("需求来源描述")
+    private String reqSrc;
+    @ApiModelProperty("需求提出时间")
+    private String reqTime;
+    @ApiModelProperty("需求类型")
+    private String scoutType;
+    @ApiModelProperty("是否应急")
+    private String isEmergency;
+    @ApiModelProperty("是否星上定标")
+    private String isStarcalibration;
+    @ApiModelProperty("")
+    private String isOnboard;
+    @ApiModelProperty("是否精确需求")
+    private String isPrecise;
+    @ApiModelProperty("是否电磁静默")
+    private String isEmcon;
+    @ApiModelProperty("国家/地区")
+    private String countryName;
+    @ApiModelProperty("目标编号")
+    private String targetId;
+    @ApiModelProperty("目标名称")
+    private String targetName;
+    @ApiModelProperty("需求有效期开始时间")
+    private String reqStartTime;
+    @ApiModelProperty("需求有效期结束时间")
+    private String reqEndTime;
+    @ApiModelProperty("应急需求ID")
+    private String emergencyReqId;
+    @ApiModelProperty("目标观测时长要求")
+    private String targetPreprocess;
+    @ApiModelProperty("需求有效期内的最大观测频次要求")
+    private String reqTimes;
+    @ApiModelProperty("最小观测间隔时间(小时)")
+    private String reqInterval;
+    @ApiModelProperty("需求优先级(必填)")
+    private String priority;
+    @ApiModelProperty("卫星要求,英文逗号隔开")
+    private String satellite;
+    @ApiModelProperty("接收站名")
+    private String receivingStation;
+    @ApiModelProperty("接收开始时间")
+    private String receivingStartTime;
+    @ApiModelProperty("接收结束时间")
+    private String receivingEndTime;
+    @ApiModelProperty("分辨率要求")
+    private String resolution;
+    @ApiModelProperty("工作模式")
+    private String workMode;
+    @ApiModelProperty("传感器代号")
+    private String sensorID;
+    @ApiModelProperty("传感器模式")
+    private String sensorMode;
+    @ApiModelProperty("保留字段")
+    private String sensorBand;
+    @ApiModelProperty("侧摆角度要求 (-XX,XX)英文符号")
+    private String pitchAngle;
+    @ApiModelProperty("区域对应的范围")
+    private String centerLocation;
+    @ApiModelProperty("目标运动先验信息")
+    private String priorInfo;
+    @ApiModelProperty("产品等级")
+    private String productLevel;
+    @ApiModelProperty("指定区域切片中心点经纬度")
+    private String centerLocationSlice;
+    @ApiModelProperty("产品目的地")
+    private String productDest;
+
+}

+ 66 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/model/dto/FzTaskDTO.java

@@ -0,0 +1,66 @@
+package com.base.biz.model.dto;
+
+import com.base.api.model.PointRpcDTO;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Date;
+import java.util.List;
+import java.util.Objects;
+
+@Data
+public class FzTaskDTO {
+
+    private String id;
+    @ApiModelProperty("仿真任务编号")
+    private String reqId;
+    @ApiModelProperty("目标名称")
+    private String targetName;
+    @ApiModelProperty("目标编号")
+    private String targetCode;
+    @ApiModelProperty("目标个数")
+    private Integer targetNum;
+    @ApiModelProperty("目标编号")
+    private List<String> targetCodes;
+    @ApiModelProperty("仿真任务开始时间")
+    private Date startTime;
+    @ApiModelProperty("仿真任务结束时间")
+    private Date endTime;
+    @ApiModelProperty("优先级")
+    private String priority;
+    @ApiModelProperty("任务提出时间")
+    private Date emulationMakeTime;
+    @ApiModelProperty("需求有效期开始时间")
+    private Date reqStartTime;
+    @ApiModelProperty("需求有效期结束时间")
+    private Date reqEndTime;
+    @ApiModelProperty("目标范围")
+    private List<PointRpcDTO> pointDTOList;
+    @ApiModelProperty("目标范围多区域目标")
+    private List<List<PointRpcDTO>> pointDTOLists;
+    @ApiModelProperty("绑定载荷")
+    private List<String> payloadIdList;
+    @ApiModelProperty("当前任务状态 0待执行 1执行中 2成功 3失败")
+    private String fzTaskState;
+    @ApiModelProperty("错误信息")
+    private String errorInfo;
+    @ApiModelProperty("当前步骤 TASK_GET,TASK_ACCESS_COMPUTE,TASK_PLANNING,TASK_MAKE_PUBLISH")
+    private String fzTaskStep;
+    @ApiModelProperty("任务Id")
+    private String taskId;
+    @ApiModelProperty("工作模式")
+    private String workMode;
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (o == null || getClass() != o.getClass()) return false;
+        FzTaskDTO fzTaskDTO = (FzTaskDTO) o;
+        return Objects.equals(reqId, fzTaskDTO.reqId);
+    }
+
+    @Override
+    public int hashCode() {
+        return Objects.hash(reqId);
+    }
+}

+ 36 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/model/dto/InstanceInfoDTO.java

@@ -0,0 +1,36 @@
+package com.base.biz.model.dto;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.util.Date;
+
+
+@Data
+public class InstanceInfoDTO {
+
+    private String id;
+    @ApiModelProperty("卫星代号")
+    private String satelliteCode;
+    @ApiModelProperty("圈号")
+    private String orbitNum;
+    @ApiModelProperty("历元时刻(北京时间)")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date epochTime;
+    @ApiModelProperty("轨道半径长 米")
+    private String semiMajorAxis;
+    @ApiModelProperty("偏心率")
+    private String eccentricity;
+    @ApiModelProperty("轨道倾角")
+    private String inclination;
+    @ApiModelProperty("近地点俯角")
+    private String argumentOfPerigee;
+    @ApiModelProperty("平近点角")
+    private String meanAnoMaly;
+    @ApiModelProperty("升交点赤经")
+    private String raan;
+}
+

+ 35 - 0
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/model/dto/LinkMarginParamDTO.java

@@ -0,0 +1,35 @@
+package com.base.biz.model.dto;
+
+import io.swagger.models.auth.In;
+import lombok.Data;
+
+@Data
+public class LinkMarginParamDTO {
+    //卫星发射Elrp
+    private Double eirp;
+    //载波频率
+    private Double f;
+    //卫星轨道高度
+    private Double h;
+    //地面天线仰角
+    private Double elevation;
+    //电离层损耗
+    private Double l1;
+    //极化误差损耗
+    private Double l2;
+    //雨衰
+    private Double l3;
+    //其他损耗
+    private Double l4;
+    //地面站G/T
+    private Double gt;
+    //玻尔兹曼常熟K
+    private Double k;
+    //信息速率
+    private Double fb;
+    //编码增值
+    private Double gCodfing;
+    //解调门限
+    private Double snr;
+
+}

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels