|
|
@@ -1,8 +1,10 @@
|
|
|
package com.railway.web.controller.business.catenary;
|
|
|
|
|
|
+import com.railway.business.baseinfo.service.IBaseStationService;
|
|
|
import com.railway.business.catenary.domain.vo.JcebCountVo;
|
|
|
import com.railway.business.catenary.domain.vo.JcebQueryVo;
|
|
|
import com.railway.business.catenary.domain.vo.JcebRecordVo;
|
|
|
+import com.railway.business.catenary.domain.vo.JcebStationVo;
|
|
|
import com.railway.business.catenary.enums.JcebTypeEnum;
|
|
|
import com.railway.business.catenary.enums.SortTypeEnum;
|
|
|
import com.railway.business.catenary.service.IBusJcbBlqService;
|
|
|
@@ -58,6 +60,8 @@ public class BusJcebController extends BaseController {
|
|
|
private final IBusJcbJcxcService jcxcService;
|
|
|
private final IBusJcbWjcxcService wjcxcService;
|
|
|
|
|
|
+ private final IBaseStationService stationService;
|
|
|
+
|
|
|
private final ISysFileService fileService;
|
|
|
|
|
|
public BusJcebController(
|
|
|
@@ -72,7 +76,9 @@ public class BusJcebController extends BaseController {
|
|
|
IBusJcbFdfxjyqService fdfxjyqService,
|
|
|
IBusJcbGlkgService glkgService,
|
|
|
IBusJcbJcxcService jcxcService,
|
|
|
- IBusJcbWjcxcService wjcxcService, ISysFileService fileService) {
|
|
|
+ IBusJcbWjcxcService wjcxcService,
|
|
|
+ IBaseStationService stationService,
|
|
|
+ ISysFileService fileService) {
|
|
|
this.xsjcjlService = xsjcjlService;
|
|
|
this.qmjcjlService = qmjcjlService;
|
|
|
this.lbjghjlService = lbjghjlService;
|
|
|
@@ -85,14 +91,47 @@ public class BusJcebController extends BaseController {
|
|
|
this.glkgService = glkgService;
|
|
|
this.jcxcService = jcxcService;
|
|
|
this.wjcxcService = wjcxcService;
|
|
|
+ this.stationService = stationService;
|
|
|
this.fileService = fileService;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "筛选车间列表")
|
|
|
+ @GetMapping(value = "listStation")
|
|
|
+ public TableDataInfo listStation(JcebQueryVo query) {
|
|
|
+ JcebQueryUtil.setBusJcebQuery(query);
|
|
|
+ JcebTypeEnum jcebTypeEnum = JcebTypeEnum.ofValue(query.getJcebType());
|
|
|
+ List<JcebStationVo> list;
|
|
|
+ switch (jcebTypeEnum) {
|
|
|
+ case Blq:
|
|
|
+ list = blqService.listStation(query);
|
|
|
+ break;
|
|
|
+ case Dmcgyq:
|
|
|
+ list = dmcgyqService.listStation(query);
|
|
|
+ break;
|
|
|
+ case Fdfxjyq:
|
|
|
+ list = fdfxjyqService.listStation(query);
|
|
|
+ break;
|
|
|
+ case Glkg:
|
|
|
+ list = glkgService.listStation(query);
|
|
|
+ break;
|
|
|
+ case Jcxc:
|
|
|
+ list = jcxcService.listStation(query);
|
|
|
+ break;
|
|
|
+ case Wjcxc:
|
|
|
+ list = wjcxcService.listStation(query);
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ list = stationService.listStation(query);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
|
|
|
@ApiOperation(value = "列表")
|
|
|
@GetMapping(value = "listByType")
|
|
|
public TableDataInfo listByType(JcebQueryVo query) {
|
|
|
startPage();
|
|
|
+ JcebQueryUtil.setBusJcebQuery(query);
|
|
|
JcebTypeEnum jcebTypeEnum = JcebTypeEnum.ofValue(query.getJcebType());
|
|
|
List<JcebRecordVo> list = null;
|
|
|
switch (jcebTypeEnum) {
|