pq台账功能修改

This commit is contained in:
2023-07-24 19:23:26 +08:00
parent b3157edd60
commit 87298343dd
11 changed files with 56 additions and 10 deletions

View File

@@ -14,6 +14,7 @@ import com.njcn.device.pq.pojo.vo.RStatOnlinerateVO;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
@@ -116,10 +117,19 @@ public interface GeneralDeviceInfoClient {
HttpResult<List<RStatOnlinerateVO>> getOnlineRateByDevIds(@RequestBody OnlineRateParam param);
/**
*
*根据单位获取投运监测点
* @author cdf
* @date 2023/6/7
*/
@PostMapping("/deptGetRunLine")
HttpResult<List<String>> deptGetRunLine(@RequestParam("deptId")String deptId);
/**
*根据单位获取投运监测点
* @author cdf
* @date 2023/6/7
*/
@GetMapping("/deptGetRunLineEvent")
HttpResult<List<String>> deptGetRunLineEvent(@RequestParam("deptId")String deptId);
}

View File

@@ -92,6 +92,12 @@ public class GeneralDeviceInfoClientFallbackFactory implements FallbackFactory<G
log.error("{}异常,降级处理,异常为:{}", "获取单位投运监测点", throwable.toString());
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<String>> deptGetRunLineEvent(String deptId) {
log.error("{}异常,降级处理,异常为:{}", "获取单位暂态系统投运监测点", throwable.toString());
throw new BusinessException(finalExceptionEnum);
}
};

View File

@@ -17,6 +17,9 @@ public class AreaLineInfoVO implements Serializable {
@ApiModelProperty(name = "lineId",value = "监测点id")
private String lineId;
@ApiModelProperty(name = "num",value = "监测点线路编号")
private Integer num;
@ApiModelProperty(name = "lineName",value = "监测点名称")
private String lineName;