|
|
@@ -1,16 +1,17 @@
|
|
|
package com.railway.web.controller.business.catenary;
|
|
|
|
|
|
+import com.railway.business.baseinfo.domain.BaseSubstation;
|
|
|
import com.railway.business.catenary.domain.BusJlgz;
|
|
|
import com.railway.business.catenary.domain.vo.BusJlgzListByZzVo;
|
|
|
import com.railway.business.catenary.domain.vo.BusJlgzQueryVo;
|
|
|
+import com.railway.business.catenary.domain.vo.JlgzLineVo;
|
|
|
+import com.railway.business.catenary.domain.vo.JlgzSubstationVo;
|
|
|
import com.railway.business.catenary.service.IBusJlgzService;
|
|
|
import com.railway.common.core.controller.BaseController;
|
|
|
import com.railway.common.core.domain.AjaxResult;
|
|
|
import com.railway.common.core.page.TableDataInfo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import java.util.List;
|
|
|
-import javax.validation.Valid;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
@@ -21,6 +22,9 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* @author fenghao
|
|
|
*/
|
|
|
@@ -80,4 +84,20 @@ public class BusJlgzController extends BaseController {
|
|
|
return ajax;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "获取记录故障线别")
|
|
|
+ @GetMapping("/getJlgzLine")
|
|
|
+ public TableDataInfo getJlgzLine() {
|
|
|
+ startPage();
|
|
|
+ List<JlgzLineVo> list = budJlgzService.getJlgzLine();
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取记录故障所别")
|
|
|
+ @GetMapping("/getJlgzSubstation")
|
|
|
+ public TableDataInfo getJlgzSubstation(BaseSubstation baseSubstation) {
|
|
|
+ startPage();
|
|
|
+ List<JlgzSubstationVo> list = budJlgzService.getJlgzSubstation(baseSubstation.getLineId());
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+
|
|
|
}
|