转换计算经纬度时,如果是w或s结尾计算结果需要乘-1
台站/核设施查询结果返回内容,海拔去掉单位信息 分页查询自动处理结果,分页查询人工交互结果接口增加注解 查询台站树形结构接口增加注解
This commit is contained in:
parent
61ee437052
commit
6447eaa207
|
@ -25,6 +25,9 @@ public class PointUtil {
|
|||
}
|
||||
if (Objects.nonNull(Degrees) || Objects.nonNull(minutes) || Objects.nonNull(seconds)){
|
||||
Double result = Degrees + minutes/60+seconds/3600;
|
||||
if (pointValue.indexOf("W")>0 || pointValue.indexOf("S")>0){
|
||||
result = -1 * result;
|
||||
}
|
||||
pointValue = String.valueOf(result);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ import org.jeecg.modules.system.entity.GardsNuclearfacility;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
|
@ -38,6 +39,7 @@ public class StationOperationController {
|
|||
}
|
||||
|
||||
@GetMapping("findTree")
|
||||
@ApiOperation(value = "查询台站树形结构", notes = "查询台站树形结构")
|
||||
public Result findTree(){
|
||||
Result result = stationOperationService.findTree();
|
||||
return result;
|
||||
|
|
|
@ -50,7 +50,7 @@ public class StationOperationServiceImpl extends ServiceImpl<StationOperationMap
|
|||
stationOperation.setStationId(gardsStation.getStationId());
|
||||
stationOperation.setStationName(gardsStation.getStationCode());
|
||||
stationOperation.setStationType("IMS STATION");
|
||||
stationOperation.setAltitude(Objects.isNull(gardsStation.getElevation())?"":gardsStation.getElevation()+"米");
|
||||
stationOperation.setAltitude(Objects.isNull(gardsStation.getElevation())?"":String.valueOf(gardsStation.getElevation()));
|
||||
stationOperation.setLon(String.valueOf(gardsStation.getLon()));
|
||||
stationOperation.setLat(String.valueOf(gardsStation.getLat()));
|
||||
stationOperation.setStatus(gardsStation.getStatus());
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package org.jeecg.modules.controller;
|
||||
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.api.QueryRequest;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.modules.service.IAutoService;
|
||||
|
@ -22,12 +23,14 @@ public class RadionuclideController {
|
|||
private IReviewedService reviewedService;
|
||||
|
||||
@GetMapping("findAutoPage")
|
||||
@ApiOperation(value = "分页查询自动处理结果", notes = "分页查询自动处理结果")
|
||||
public Result findAutoPage(QueryRequest queryRequest, Integer[] stationIds,
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")Date startTime, @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime){
|
||||
return autoService.findAutoPage(queryRequest, stationIds, startTime, endTime);
|
||||
}
|
||||
|
||||
@GetMapping("findReviewedPage")
|
||||
@ApiOperation(value = "分页查询人工交互结果", notes = "分页查询人工交互结果")
|
||||
public Result findReviewedPage(QueryRequest queryRequest, Integer[] stationIds,
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")Date startTime, @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime){
|
||||
return reviewedService.findReviewedPage(queryRequest, stationIds, startTime, endTime);
|
||||
|
|
Loading…
Reference in New Issue
Block a user