技术监督管理调整

This commit is contained in:
2023-06-29 14:14:34 +08:00
parent bd45a1cae5
commit 86abd2458e
9 changed files with 53 additions and 2 deletions

View File

@@ -4,9 +4,11 @@ import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.device.pms.api.fallback.StatationStatClientFallbackFactory;
import com.njcn.device.pms.pojo.dto.PmsStatationStatInfoDTO;
import com.njcn.device.pms.pojo.param.PmsBaseParam;
import com.njcn.device.pms.pojo.param.PmsStatationStatInfoParam;
import com.njcn.device.pms.pojo.po.StatationStat;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@@ -43,4 +45,8 @@ public interface StatationStatClient {
HttpResult<List<StatationStat>> getPowerInfo(@RequestBody PmsStatationStatInfoParam param);
@PostMapping("/getstatationStatList")
HttpResult<List<StatationStat>> getstatationStatList(@RequestBody PmsBaseParam pmsBaseParam);
}

View File

@@ -5,6 +5,7 @@ import com.njcn.common.pojo.exception.BusinessException;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.device.pms.api.StatationStatClient;
import com.njcn.device.pms.pojo.dto.PmsStatationStatInfoDTO;
import com.njcn.device.pms.pojo.param.PmsBaseParam;
import com.njcn.device.pms.pojo.param.PmsStatationStatInfoParam;
import com.njcn.device.pms.pojo.po.StatationStat;
import com.njcn.device.pms.utils.PmsDeviceEnumUtil;
@@ -44,6 +45,12 @@ public class StatationStatClientFallbackFactory implements FallbackFactory<Stata
log.error("{}异常,降级处理,异常为:{}", "获取变电站信息", throwable.toString());
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<StatationStat>> getstatationStatList(PmsBaseParam pmsBaseParam) {
log.error("{}异常,降级处理,异常为:{}", "获取变电站信息", throwable.toString());
throw new BusinessException(finalExceptionEnum);
}
};
}
}