|
@@ -5,14 +5,12 @@ import com.jpsoft.bus.config.OSSConfig;
|
|
|
import com.jpsoft.bus.modules.bus.dto.RouteInfoDTO;
|
|
|
import com.jpsoft.bus.modules.bus.dto.RouteMapPathDTO;
|
|
|
import com.jpsoft.bus.modules.bus.dto.StationInfoDTO;
|
|
|
-import com.jpsoft.bus.modules.bus.entity.CompanyInfo;
|
|
|
-import com.jpsoft.bus.modules.bus.entity.StationInfo;
|
|
|
-import com.jpsoft.bus.modules.bus.entity.VehicleInfo;
|
|
|
+import com.jpsoft.bus.modules.bus.entity.*;
|
|
|
import com.jpsoft.bus.modules.bus.service.CompanyInfoService;
|
|
|
import com.jpsoft.bus.modules.bus.service.StationInfoService;
|
|
|
+import com.jpsoft.bus.modules.bus.service.StationSubInfoService;
|
|
|
import com.jpsoft.bus.modules.common.dto.MessageResult;
|
|
|
import com.jpsoft.bus.modules.common.dto.Sort;
|
|
|
-import com.jpsoft.bus.modules.bus.entity.RouteInfo;
|
|
|
import com.jpsoft.bus.modules.bus.service.RouteInfoService;
|
|
|
import com.jpsoft.bus.modules.common.utils.OSSUtil;
|
|
|
import com.jpsoft.bus.modules.common.utils.POIUtils;
|
|
@@ -68,6 +66,9 @@ public class RouteInfoController {
|
|
|
@Autowired
|
|
|
private UserService userService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private StationSubInfoService stationSubInfoService;
|
|
|
+
|
|
|
@ApiOperation(value="创建空记录")
|
|
|
@GetMapping("create")
|
|
|
public MessageResult<RouteInfoDTO> create(){
|
|
@@ -184,6 +185,9 @@ public class RouteInfoController {
|
|
|
stationInfoDTO.setSortNo(stationInfo.getSortNo());
|
|
|
stationInfoDTO.setDelFlag(stationInfo.getDelFlag());
|
|
|
|
|
|
+ List<StationSubInfo> stationSubInfoList = stationSubInfoService.findByStationId(stationInfo.getId());
|
|
|
+ stationInfoDTO.setStationSubInfoList(stationSubInfoList);
|
|
|
+
|
|
|
stationInfoDTOList.add(stationInfoDTO);
|
|
|
}
|
|
|
|