Commit 99509d94 by zhiwj

bug

parent 914aa506
......@@ -470,14 +470,20 @@ public class StoreImportController {
// 经纬度校验
if (StringUtils.isNotBlank(bean.getLongitude())) {
try {
Float.valueOf(bean.getLongitude());
Float longitude = Float.valueOf(bean.getLongitude());
if (longitude < 0 || longitude > 180) {
errorMessage.append("经度错误,");
}
} catch (NumberFormatException e) {
errorMessage.append("经度错误,");
}
}
if (StringUtils.isNotBlank(bean.getLatitude())) {
try {
Float.valueOf(bean.getLatitude());
Float latitude = Float.valueOf(bean.getLatitude());
if (latitude < 0 || latitude > 90) {
errorMessage.append("维度错误,");
}
} catch (NumberFormatException e) {
errorMessage.append("维度错误,");
}
......@@ -567,12 +573,10 @@ public class StoreImportController {
return serviceResponse.isSuccess() ? serviceResponse.getResult() : null;
}
// @RequestMapping("/test")
// public Object re() {
// List<StoreTmpDTO> storeTmpDTOS = storeImportApiService.listStoreTmp(1111, null, true);
// System.out.println(storeTmpDTOS);
// return null;
// }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment