feat:修改新增路线时,起点终点名字没有添加到数据库的bug

This commit is contained in:
lqy 2024-12-06 20:30:38 +08:00
parent 1ea56a2f68
commit 3531188f11

View file

@ -106,6 +106,7 @@ public class RouteServiceImpl extends SkyeyeBusinessServiceImpl<RoutesDao, Route
outputObject.settotal(page.getTotal());
}
@Transactional
@Override
public void createPostpose(Routes entity, String userId) {
String startName= teachBuildingService.selectById(entity.getStartId()).getName();
@ -116,6 +117,7 @@ public class RouteServiceImpl extends SkyeyeBusinessServiceImpl<RoutesDao, Route
for (RouteStop routeStop : routeStopList) {
routeStop.setRouteId(entity.getId());
}
updateEntity(entity,userId);
routeStopService.createEntity(routeStopList, userId);
}