现场测试问题
预告警单
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
package com.njcn.supervision.controller.leaflet;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.supervision.pojo.vo.leaflet.WarningLeafletVO;
|
||||
import com.njcn.supervision.pojo.param.leaflet.WarningLeafletParam;
|
||||
import com.njcn.supervision.service.leaflet.IWarningLeafletService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 预告警单表 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-05-21
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/warningLeaflet")
|
||||
@Slf4j
|
||||
@Api(tags = "预告警单表")
|
||||
@AllArgsConstructor
|
||||
public class WarningLeafletController extends BaseController {
|
||||
|
||||
private final IWarningLeafletService warningLeafletService;
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/warningPageData")
|
||||
@ApiOperation("分页查询当前用户能看到的预警单数据")
|
||||
@ApiImplicitParam(name = "warningLeafletQueryParam", value = "参数", required = true)
|
||||
public HttpResult<Page<WarningLeafletVO>> warningPageData(@RequestBody @Validated WarningLeafletParam.WarningLeafletQueryParam warningLeafletQueryParam) {
|
||||
String methodDescribe = getMethodDescribe("warningPageData");
|
||||
Page<WarningLeafletVO> out = warningLeafletService.warningPageData(warningLeafletQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, out, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/alarmPageData")
|
||||
@ApiOperation("分页查询当前用户能看到的告警单数据")
|
||||
@ApiImplicitParam(name = "warningLeafletQueryParam", value = "参数", required = true)
|
||||
public HttpResult<Page<WarningLeafletVO>> alarmPageData(@RequestBody @Validated WarningLeafletParam.WarningLeafletQueryParam warningLeafletQueryParam) {
|
||||
String methodDescribe = getMethodDescribe("alarmPageData");
|
||||
Page<WarningLeafletVO> out = warningLeafletService.alarmPageData(warningLeafletQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, out, methodDescribe);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.supervision.pojo.param.survey.SupervisionGeneralSurveyPlanParm;
|
||||
import com.njcn.supervision.pojo.vo.survey.DeptSubstationVO;
|
||||
import com.njcn.supervision.pojo.vo.survey.SupervisionGeneralSurveyPlanDetailVO;
|
||||
import com.njcn.supervision.pojo.vo.survey.SupervisionGeneralSurveyPlanVO;
|
||||
import com.njcn.supervision.service.survey.SupervisionGeneralSurveyPlanPOService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
@@ -25,7 +26,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 干扰源用户管理
|
||||
* 谐波普测计划
|
||||
*
|
||||
* @author qijian
|
||||
* @version 1.0.0
|
||||
@@ -64,7 +65,6 @@ public class GeneralSurveyController extends BaseController {
|
||||
}
|
||||
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/removeSurvey")
|
||||
@ApiOperation("移除普测计划")
|
||||
@@ -112,7 +112,7 @@ public class GeneralSurveyController extends BaseController {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.DELETE)
|
||||
@PostMapping("/cancel")
|
||||
@ApiOperation("取消普测计划")
|
||||
@ApiImplicitParam(name = "cancelReqVO", value = "取消原因", required = true)
|
||||
@@ -123,4 +123,25 @@ public class GeneralSurveyController extends BaseController {
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/pageProblemSubstationBySurvey")
|
||||
@ApiOperation("分页查询当前用户能看到的普测计划中存在超标问题")
|
||||
@ApiImplicitParam(name = "generalSurveyPlanQueryParam", value = "参数", required = true)
|
||||
public HttpResult<Page<SupervisionGeneralSurveyPlanDetailVO>> getPageProblemSubstationBySurvey(@RequestBody @Validated SupervisionGeneralSurveyPlanParm.GeneralSurveyPlanQueryParam generalSurveyPlanQueryParam ){
|
||||
String methodDescribe = getMethodDescribe("pageProblemSubstationBySurvey");
|
||||
Page<SupervisionGeneralSurveyPlanDetailVO> out = supervisionGeneralSurveyPlanPOService.pageProblemSubstationBySurvey(generalSurveyPlanQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, out, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/initiateWarningLeaflet")
|
||||
@ApiOperation("针对有问题的现场测试发起告警单")
|
||||
public HttpResult<Boolean> initiateWarningLeaflet(@RequestParam("id") String id,@RequestParam("subId") String subId){
|
||||
String methodDescribe = getMethodDescribe("initiateWarningLeaflet");
|
||||
supervisionGeneralSurveyPlanPOService.initiateWarningLeaflet(id,subId);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, Boolean.TRUE, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user