This commit is contained in:
马三炮 2025-04-28 15:43:43 +08:00
parent 8960fb84b3
commit a9d08575c0
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ public class TbThreeSpanServiceImpl implements TbThreeSpanService {
tbThreeSpanMapper.addTbThreeSpan(data);
//获取跨越杆塔信息
List<TbSpanTowerVo> tbSpanTowerList = data.getTbSpanTowerList();
if (tbSpanTowerList.size()>0){
if (tbSpanTowerList!=null){
tbSpanTowerService.addTbSpanTowerList(data.getId(),tbSpanTowerList);
}
return ServerResponse.createBySuccessMsg("三跨管理-新增成功");
@ -113,7 +113,7 @@ public class TbThreeSpanServiceImpl implements TbThreeSpanService {
tbThreeSpanMapper.updateTbThreeSpan(data);
List<TbSpanTowerVo> tbSpanTowerList =data.getTbSpanTowerList();
//获取跨越杆塔信息
if (!tbSpanTowerList.isEmpty()){
if (tbSpanTowerList!=null){
tbSpanTowerService.updateTbSpanTower(tbSpanTowerList,data.getId());
}
return ServerResponse.createBySuccessMsg("三跨管理-修改成功");