mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2025-01-15 11:48:21 +08:00
feat:修改新增路线时,起点终点名字没有添加到数据库的bug
This commit is contained in:
parent
1ea56a2f68
commit
3531188f11
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue