终端bug

This commit is contained in:
2023-04-19 13:41:35 +08:00
parent c1aae1cfbc
commit 04be4a5607

View File

@@ -489,8 +489,8 @@ public class TerminalBaseServiceImpl extends ServiceImpl<LineMapper, Line> imple
throw new BusinessException(DeviceResponseEnum.PROVINCE_EMPTY);
}
Line province = new Line();
province.setId(updateTerminalParam.getProjectUpdateParam().getProjectIndex());
province.setSort(updateTerminalParam.getProjectUpdateParam().getSort());
province.setId(updateTerminalParam.getProvinceUpdateParam().getProvinceIndex());
province.setSort(updateTerminalParam.getProvinceUpdateParam().getSort());
this.updateById(province);
}
@@ -517,6 +517,7 @@ public class TerminalBaseServiceImpl extends ServiceImpl<LineMapper, Line> imple
Line subStation = new Line();
subStation.setId(updateTerminalParam.getSubStationUpdateParam().getSubIndex());
subStation.setName(updateTerminalParam.getSubStationUpdateParam().getName());
subStation.setSort(updateTerminalParam.getSubStationUpdateParam().getSort());
checkUpdateName(updateTerminalParam, 3, subStationRes.getPid());
this.updateById(subStation);