基础管理-线路工程管理
This commit is contained in:
parent
f11f22dc3f
commit
a67b36b293
|
|
@ -119,9 +119,9 @@ public class TbTowerServiceImpl implements TbTowerService {
|
|||
public ServerResponse updateTbTower(TbTowerVo data) {
|
||||
try {
|
||||
//判断经纬度是否合法
|
||||
if(!StrUtil.isValidLongitude(Double.parseDouble(data.getLon())) || !StrUtil.isValidLatitude(Double.parseDouble(data.getLat()))){
|
||||
/*if(!StrUtil.isValidLongitude(Double.parseDouble(data.getLon())) || !StrUtil.isValidLatitude(Double.parseDouble(data.getLat()))){
|
||||
return ServerResponse.createErroe("请输入正确经纬度");
|
||||
}
|
||||
}*/
|
||||
TbTowerVo tbTower = tbTowerMapper.getTbTowerBySort(data);
|
||||
if (StringUtils.isNotNull(tbTower) && !data.getId().equals(tbTower.getId())){
|
||||
return ServerResponse.createErroe("排序已存在");
|
||||
|
|
|
|||
Loading…
Reference in New Issue