同步AED数据
This commit is contained in:
+11
-15
@@ -1,13 +1,10 @@
|
||||
package com.renkang.anyan.model.vo;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.RoundingMode;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@@ -62,21 +59,20 @@ public class AnYanAedInfo {
|
||||
@Schema(title = "更新时间")
|
||||
private Date updateDate;
|
||||
|
||||
public String getLon() {
|
||||
//安眼提供的经纬度过长, 在这里只保留6位小数
|
||||
if(StrUtil.isNotEmpty(lon)){
|
||||
BigDecimal bigDecimal = BigDecimal.valueOf(Double.parseDouble(lon)).setScale(6, RoundingMode.HALF_UP);
|
||||
return bigDecimal.toString();
|
||||
public String getSecondOfficeName() {
|
||||
if(null != secondOfficeName){
|
||||
// 处理返数据中的空格和换行符
|
||||
return secondOfficeName.replaceAll(" ","").replaceAll("\r\n","");
|
||||
}
|
||||
return lon;
|
||||
return "";
|
||||
}
|
||||
|
||||
public String getLat() {
|
||||
//安眼提供的经纬度过长, 在这里只保留6位小数
|
||||
if(StrUtil.isNotEmpty(lat)){
|
||||
BigDecimal bigDecimal = BigDecimal.valueOf(Double.parseDouble(lat)).setScale(6, RoundingMode.HALF_UP);
|
||||
return bigDecimal.toString();
|
||||
public String getThirdOfficeName() {
|
||||
if(null != thirdOfficeName){
|
||||
// 处理返数据中的空格和换行符
|
||||
return thirdOfficeName.replaceAll(" ","").replaceAll("\r\n","");
|
||||
}
|
||||
return lat;
|
||||
return "";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user