|
@@ -100,16 +100,19 @@ public class ApplicationController {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
@GetMapping(value = "/shutdowngs")
|
|
|
@ApiOperation(value = "故障次数公司", notes = "故障次数公司")
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "type", value = "场站编号", required = true, dataType = "string", paramType = "query")
|
|
|
+ @ApiImplicitParam(name = "type", value = "编号", required = true, dataType = "string", paramType = "query")
|
|
|
})
|
|
|
- public AjaxResult getshutdown(String type) throws Exception {
|
|
|
+ public AjaxResult getshutdowngs(String type) throws Exception {
|
|
|
|
|
|
List<Map<String, Object>> list = new ArrayList<>();
|
|
|
|
|
|
- list = applicationService.shutdown(type);
|
|
|
+ list = applicationService.shutdown(type);
|
|
|
|
|
|
if (null != list) {
|
|
|
return AjaxResult.successData(200, list);
|
|
@@ -119,11 +122,10 @@ public class ApplicationController {
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
@GetMapping(value = "/shutdowncz")
|
|
|
@ApiOperation(value = "故障次数场站", notes = "故障次数场站")
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "type", value = "场站编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "type", value = "编号", required = true, dataType = "string", paramType = "query"),
|
|
|
@ApiImplicitParam(name = "wpId", value = "场站编号", required = false, dataType = "string", paramType = "query")
|
|
|
})
|
|
|
public AjaxResult getshutdowncz(String type,String wpId) throws Exception {
|
|
@@ -140,4 +142,47 @@ public class ApplicationController {
|
|
|
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @GetMapping(value = "/shutdowngsjx")
|
|
|
+ @ApiOperation(value = "机型故障次数公司", notes = "机型故障次数公司")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "type", value = "编号", required = true, dataType = "string", paramType = "query")
|
|
|
+ })
|
|
|
+ public AjaxResult getshutdownjx(String type) throws Exception {
|
|
|
+
|
|
|
+ List<Map<String, Object>> list = new ArrayList<>();
|
|
|
+
|
|
|
+ list = applicationService.shutdownjx(type);
|
|
|
+
|
|
|
+ if (null != list) {
|
|
|
+ return AjaxResult.successData(200, list);
|
|
|
+ } else {
|
|
|
+ return AjaxResult.error(500, "操作失败");
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping(value = "/shutdownczjx")
|
|
|
+ @ApiOperation(value = "机型故障次数场站", notes = "机型故障次数场站")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "type", value = "编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "wpId", value = "场站编号", required = false, dataType = "string", paramType = "query")
|
|
|
+ })
|
|
|
+ public AjaxResult getshutdownczjx(String type,String wpId) throws Exception {
|
|
|
+
|
|
|
+ List<Map<String, Object>> list = new ArrayList<>();
|
|
|
+ if (wpId!=null) {
|
|
|
+ list = applicationService.shutdownczjx(type, wpId);
|
|
|
+ }
|
|
|
+ if (null != list) {
|
|
|
+ return AjaxResult.successData(200, list);
|
|
|
+ } else {
|
|
|
+ return AjaxResult.error(500, "操作失败");
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|