Commit ac82802f by 谢海旭

v5.7.0版本 飞行督导-后台-督导管理-汇总

1 parent ca390023
package cn.com.glsx.dj.supervisor.controller;
import cn.com.glsx.dj.supervisor.dto.SupervisorManageSummaryDTO;
import cn.com.glsx.dj.supervisor.remote.SupervisorTaskInfoRemote;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.core.enums.DefaultErrorEnum;
import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.framework.rop.response.RopResponse;
import com.rop.AbstractRopRequest;
import com.rop.annotation.IgnoreSignType;
import com.rop.annotation.NeedInSessionType;
import com.rop.annotation.ServiceMethod;
import com.rop.annotation.ServiceMethodBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
/**
* @Title: SupervisorManageController.java
* @Description: 督导管理接口
* @author xiehx
* @date 2026-03-12
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2020
*/
@Slf4j
@ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.NO)
@Api("督导管理")
public class SupervisorManageController {
@Autowired
private SupervisorTaskInfoRemote supervisorTaskInfoRemote;
/**
* 督导管理汇总
*
* @param request 不需要参数
* @return 汇总数据
*/
@ServiceMethod(method = "dj.api.supervisor.manage.summary", needInSession = NeedInSessionType.YES, ignoreSign = IgnoreSignType.YES)
@ApiOperation("督导管理汇总")
public RopResponse<SupervisorManageSummaryDTO> getManageSummary(AbstractRopRequest request) {
try {
log.info("督导管理汇总 - 接收请求");
RpcResponse<SupervisorManageSummaryDTO> rpcResponse = supervisorTaskInfoRemote.getManageSummary();
if (!rpcResponse.isSuccess()) {
log.error("督导管理汇总失败:{}", rpcResponse.getMessage());
return RopResponse.error(rpcResponse.getError(), rpcResponse.getMessage());
}
log.info("督导管理汇总成功:{}", rpcResponse.getResult());
return RopResponse.success(rpcResponse.getResult());
} catch (RpcServiceException e) {
log.error("督导管理汇总异常", e);
return RopResponse.error(e);
} catch (Exception e) {
log.error("督导管理汇总系统异常", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR, e.getMessage());
}
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!