Commit 315f3d52 by 章家宝

提成方案:提成构成自测联调兼bug修复

1 parent 4aa57de0
...@@ -26,14 +26,8 @@ public class MerchantBrandController { ...@@ -26,14 +26,8 @@ public class MerchantBrandController {
@ServiceMethod(method = "dj.staff.api.service.merchant.page.with.brand", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.staff.api.service.merchant.page.with.brand", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.staff.api.service.merchant.page.with.brand/1.0.0") @PostMapping("/dj.staff.api.service.merchant.page.with.brand/1.0.0")
public RopResponse<RpcPagination<ServiceMerchantPageWithBrandDTO>> pageListMerchantWithBrand(MerchantBrandSelectRequest request) { public RopResponse<RpcPagination<ServiceMerchantPageWithBrandDTO>> pageListMerchantWithBrand(MerchantBrandSelectRequest request) {
// dj_car_life_merchant_brand_model
RpcPagination<ServiceMerchantPageWithBrandDTO> pagination = CommonUtil.getRpcPagination(ServiceMerchantPageWithBrandDTO.class); RpcPagination<ServiceMerchantPageWithBrandDTO> pagination = CommonUtil.getRpcPagination(ServiceMerchantPageWithBrandDTO.class);
int currentPage = request.getCurrentPage();
if (currentPage > 0) {
pagination.setPageNum(currentPage);
}
ServiceMerchantPageWithBrandDTO condition = new ServiceMerchantPageWithBrandDTO(); ServiceMerchantPageWithBrandDTO condition = new ServiceMerchantPageWithBrandDTO();
condition.setQueryParam(request.getName());
pagination.setCondition(condition); pagination.setCondition(condition);
// RpcResponse<RpcPagination<ServiceMerchantPageWithBrandDTO>> page = serviceMerchantRemote.pageListMerchantWithBrand(pagination); // RpcResponse<RpcPagination<ServiceMerchantPageWithBrandDTO>> page = serviceMerchantRemote.pageListMerchantWithBrand(pagination);
// return CommonUtil.convertRopResponse(page); // return CommonUtil.convertRopResponse(page);
......
...@@ -8,8 +8,6 @@ import cn.com.glsx.dj.staff.request.performance.*; ...@@ -8,8 +8,6 @@ import cn.com.glsx.dj.staff.request.performance.*;
import cn.com.glsx.dj.staff.util.CommonUtil; import cn.com.glsx.dj.staff.util.CommonUtil;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination; import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse; 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 cn.com.glsx.framework.rop.response.RopResponse;
import com.rop.annotation.*; import com.rop.annotation.*;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -42,36 +40,20 @@ public class PerformanceConfigApproveController { ...@@ -42,36 +40,20 @@ public class PerformanceConfigApproveController {
@ServiceMethod(method = "dj.staff.api.performance.config.approve.page", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.staff.api.performance.config.approve.page", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.staff.api.performance.config.approve.page/1.0.0") @PostMapping("/dj.staff.api.performance.config.approve.page/1.0.0")
public RopResponse<RpcPagination<PerformanceConfigApprovePageDTO>> performanceConfigApprovePageByMerchant(PerformanceConfigApprovePageByMerchantRequest request) { public RopResponse<RpcPagination<PerformanceConfigApprovePageDTO>> performanceConfigApprovePageByMerchant(PerformanceConfigApprovePageByMerchantRequest request) {
try {
RpcPagination<PerformanceConfigApprovePageDTO> pagination = CommonUtil.getRpcPagination(PerformanceConfigApprovePageDTO.class); RpcPagination<PerformanceConfigApprovePageDTO> pagination = CommonUtil.getRpcPagination(PerformanceConfigApprovePageDTO.class);
PerformanceConfigApprovePageDTO condition = CommonUtil.convertRequest(PerformanceConfigApprovePageDTO.class); PerformanceConfigApprovePageDTO condition = CommonUtil.convertRequest(PerformanceConfigApprovePageDTO.class);
pagination.setCondition(condition); pagination.setCondition(condition);
RpcResponse<RpcPagination<PerformanceConfigApprovePageDTO>> pageResponse = performanceConfigApproveRemote.performanceConfigApprovePage(pagination); RpcResponse<RpcPagination<PerformanceConfigApprovePageDTO>> pageResponse = performanceConfigApproveRemote.performanceConfigApprovePage(pagination);
return CommonUtil.convertRopResponse(pageResponse); return CommonUtil.convertRopResponse(pageResponse);
} catch (RpcServiceException e) {
log.info("=======PerformanceConfigApproveController__invoke__performanceConfigApprovePageByMerchant__exception:{}", e.getMessage(),e);
return RopResponse.error(e);
} catch (Exception e) {
log.info("=======PerformanceConfigApproveController__invoke__performanceConfigApprovePageByMerchant__exception:", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR);
}
} }
@ApiOperation("提成方案提交审批") @ApiOperation("提成方案提交审批")
@ServiceMethod(method = "dj.staff.api.performance.config.approve.submit", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.staff.api.performance.config.approve.submit", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.staff.api.performance.config.approve.submit/1.0.0") @PostMapping("/dj.staff.api.performance.config.approve.submit/1.0.0")
public RopResponse<Boolean> performanceConfigApproveSubmit(PerformanceConfigApproveSubmitRequest request) { public RopResponse<Boolean> performanceConfigApproveSubmit(PerformanceConfigApproveSubmitRequest request) {
try {
PerformanceConfigApproveDTO dto = CommonUtil.convertRequest(PerformanceConfigApproveDTO.class); PerformanceConfigApproveDTO dto = CommonUtil.convertRequest(PerformanceConfigApproveDTO.class);
RpcResponse<Boolean> booleanRpcResponse = performanceConfigApproveRemote.approveSubmit(dto); RpcResponse<Boolean> booleanRpcResponse = performanceConfigApproveRemote.approveSubmit(dto);
return RopResponse.success(booleanRpcResponse.getResult()); return RopResponse.success(booleanRpcResponse.getResult());
} catch (RpcServiceException e) {
log.info("=======PerformanceConfigApproveController__invoke__performanceConfigApproveSubmit__exception:{}", e.getMessage(),e);
return RopResponse.error(e);
} catch (Exception e) {
log.info("=======PerformanceConfigApproveController__invoke__performanceConfigApproveSubmit__exception:", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR);
}
} }
...@@ -79,66 +61,34 @@ public class PerformanceConfigApproveController { ...@@ -79,66 +61,34 @@ public class PerformanceConfigApproveController {
@ServiceMethod(method = "dj.staff.api.performance.approve.config.get", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.staff.api.performance.approve.config.get", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.staff.api.performance.approve.config.get/1.0.0") @PostMapping("/dj.staff.api.performance.approve.config.get/1.0.0")
public RopResponse<List<PerformanceApproveConfigDTO>> performanceApproveConfigGet(PerformanceApproveConfigGetRequest request) { public RopResponse<List<PerformanceApproveConfigDTO>> performanceApproveConfigGet(PerformanceApproveConfigGetRequest request) {
try {
return RopResponse.success(performanceApproveConfigRemote.listAll()); return RopResponse.success(performanceApproveConfigRemote.listAll());
} catch (RpcServiceException e) {
log.info("=======PerformanceConfigApproveController__invoke__performanceApproveConfigGet__exception:{}", e.getMessage(),e);
return RopResponse.error(e);
} catch (Exception e) {
log.info("=======PerformanceConfigApproveController__invoke__performanceApproveConfigGet__exception:", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR);
}
} }
@ApiOperation("提成方案审批详情") @ApiOperation("提成方案审批详情")
@ServiceMethod(method = "dj.staff.api.performance.config.approve.detail", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.staff.api.performance.config.approve.detail", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.staff.api.performance.config.approve.detail/1.0.0") @PostMapping("/dj.staff.api.performance.config.approve.detail/1.0.0")
public RopResponse<PerformanceConfigApproveDetailDTO> performanceConfigApproveDetail(CommonIntegerIdRequest request) { public RopResponse<PerformanceConfigApproveDetailDTO> performanceConfigApproveDetail(CommonIntegerIdRequest request) {
try {
PerformanceConfigApproveDTO dto = PerformanceConfigApproveDTO.builder().id(request.getId()).build(); PerformanceConfigApproveDTO dto = PerformanceConfigApproveDTO.builder().id(request.getId()).build();
RpcResponse<PerformanceConfigApproveDetailDTO> response = performanceConfigApproveRemote.performanceConfigApproveDetail(dto); RpcResponse<PerformanceConfigApproveDetailDTO> response = performanceConfigApproveRemote.performanceConfigApproveDetail(dto);
return RopResponse.success(response.getResult()); return RopResponse.success(response.getResult());
} catch (RpcServiceException e) {
log.info("=======PerformanceConfigApproveController__invoke__performanceConfigApproveDetail__exception:{}", e.getMessage(),e);
return RopResponse.error(e);
} catch (Exception e) {
log.info("=======PerformanceConfigApproveController__invoke__performanceConfigApproveDetail__exception:", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR);
}
} }
@ApiOperation("获取审批详情与权限(H5请求)") @ApiOperation("获取审批详情与权限(H5请求)")
@ServiceMethod(method = "dj.staff.api.performance.config.approve.permission", needInSession = NeedInSessionType.NO) @ServiceMethod(method = "dj.staff.api.performance.config.approve.permission", needInSession = NeedInSessionType.NO)
@PostMapping("/dj.staff.api.performance.config.approve.permission/1.0.0") @PostMapping("/dj.staff.api.performance.config.approve.permission/1.0.0")
public RopResponse<PerformanceConfigApprovePermissionDTO> performanceConfigApproveDetailAndPermission(PerformanceConfigApprovePermissionRequest request) { public RopResponse<PerformanceConfigApprovePermissionDTO> performanceConfigApproveDetailAndPermission(PerformanceConfigApprovePermissionRequest request) {
try {
PerformanceConfigApproveDTO dto = CommonUtil.convertRequest(PerformanceConfigApproveDTO.class); PerformanceConfigApproveDTO dto = CommonUtil.convertRequest(PerformanceConfigApproveDTO.class);
RpcResponse<PerformanceConfigApprovePermissionDTO> data = performanceConfigApproveRemote.performanceConfigApproveDetailAndPermission(dto); RpcResponse<PerformanceConfigApprovePermissionDTO> data = performanceConfigApproveRemote.performanceConfigApproveDetailAndPermission(dto);
return RopResponse.success(data.getResult()); return RopResponse.success(data.getResult());
} catch (RpcServiceException e) {
log.info("=======PerformanceConfigApproveController__invoke__performanceConfigApproveDetailAndPermission__exception:{}", e.getMessage(),e);
return RopResponse.error(e);
} catch (Exception e) {
log.info("=======PerformanceConfigApproveController__invoke__performanceConfigApproveDetailAndPermission__exception:", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR);
}
} }
@ApiOperation("提成方案审批操作(通过/驳回/查看)(H5请求)") @ApiOperation("提成方案审批操作(通过/驳回/查看)(H5请求)")
@ServiceMethod(method = "dj.staff.api.performance.config.approve.handle", needInSession = NeedInSessionType.NO) @ServiceMethod(method = "dj.staff.api.performance.config.approve.handle", needInSession = NeedInSessionType.NO)
@PostMapping("/dj.staff.api.performance.config.approve.handle/1.0.0") @PostMapping("/dj.staff.api.performance.config.approve.handle/1.0.0")
public RopResponse<Boolean> performanceConfigApproveHandle(PerformanceConfigApproveHandleRequest request) { public RopResponse<Boolean> performanceConfigApproveHandle(PerformanceConfigApproveHandleRequest request) {
try {
PerformanceConfigApproveHandleDTO dto = CommonUtil.convertRequest(PerformanceConfigApproveHandleDTO.class); PerformanceConfigApproveHandleDTO dto = CommonUtil.convertRequest(PerformanceConfigApproveHandleDTO.class);
RpcResponse<Boolean> booleanRpcResponse = performanceConfigApproveRemote.approveHandle(dto); RpcResponse<Boolean> booleanRpcResponse = performanceConfigApproveRemote.approveHandle(dto);
return RopResponse.success(booleanRpcResponse.getResult()); return RopResponse.success(booleanRpcResponse.getResult());
} catch (RpcServiceException e) {
log.info("=======PerformanceConfigApproveController__invoke__performanceConfigApproveHandle__exception:{}", e.getMessage(),e);
return RopResponse.error(e);
} catch (Exception e) {
log.info("=======PerformanceConfigApproveController__invoke__performanceConfigApproveHandle__exception:", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR);
}
} }
......
...@@ -9,8 +9,6 @@ import cn.com.glsx.dj.staff.service.performance.PerformanceConfigService; ...@@ -9,8 +9,6 @@ import cn.com.glsx.dj.staff.service.performance.PerformanceConfigService;
import cn.com.glsx.dj.staff.util.CommonUtil; import cn.com.glsx.dj.staff.util.CommonUtil;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination; import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse; 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 cn.com.glsx.framework.rop.response.RopResponse;
import com.rop.annotation.*; import com.rop.annotation.*;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -37,6 +35,7 @@ public class PerformanceConfigController { ...@@ -37,6 +35,7 @@ public class PerformanceConfigController {
private PerformanceConfigRemote performanceConfigRemote; private PerformanceConfigRemote performanceConfigRemote;
@Autowired @Autowired
private PerformanceConfigService performanceConfigService; private PerformanceConfigService performanceConfigService;
@ApiOperation("提成方案列表(以方案为维度)") @ApiOperation("提成方案列表(以方案为维度)")
@ServiceMethod(method = "dj.staff.api.performance.config.page", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.staff.api.performance.config.page", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.staff.api.performance.config.page/1.0.0") @PostMapping("/dj.staff.api.performance.config.page/1.0.0")
...@@ -53,67 +52,35 @@ public class PerformanceConfigController { ...@@ -53,67 +52,35 @@ public class PerformanceConfigController {
@ServiceMethod(method = "dj.staff.api.performance.config.add", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.staff.api.performance.config.add", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.staff.api.performance.config.add/1.0.0") @PostMapping("/dj.staff.api.performance.config.add/1.0.0")
public RopResponse<Integer> performanceConfigAdd(PerformanceConfigAddRequest request) { public RopResponse<Integer> performanceConfigAdd(PerformanceConfigAddRequest request) {
try {
return performanceConfigService.performanceConfigAdd(request); return performanceConfigService.performanceConfigAdd(request);
} catch (RpcServiceException e) {
log.info("=======PerformanceConfigController__invoke__performanceConfigUpdate__exception:{}", e.getMessage(),e);
return RopResponse.error(e);
} catch (Exception e) {
log.info("=======PerformanceConfigController__invoke__performanceConfigUpdate__exception:", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR);
}
} }
@ApiOperation("提成方案详情") @ApiOperation("提成方案详情")
@ServiceMethod(method = "dj.staff.api.performance.config.detail", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.staff.api.performance.config.detail", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.staff.api.performance.config.detail/1.0.0") @PostMapping("/dj.staff.api.performance.config.detail/1.0.0")
public RopResponse<PerformanceConfigDetailDTO> performanceConfigDetail(CommonIntegerIdRequest request) { public RopResponse<PerformanceConfigDetailDTO> performanceConfigDetail(CommonIntegerIdRequest request) {
try {
PerformanceConfigDTO dto = CommonUtil.convertRequest(PerformanceConfigDTO.class); PerformanceConfigDTO dto = CommonUtil.convertRequest(PerformanceConfigDTO.class);
RpcResponse<PerformanceConfigDetailDTO> response = performanceConfigRemote.performanceConfigDetail(dto); RpcResponse<PerformanceConfigDetailDTO> response = performanceConfigRemote.performanceConfigDetail(dto);
return RopResponse.success(response.getResult()); return RopResponse.success(response.getResult());
} catch (RpcServiceException e) {
log.info("=======PerformanceConfigController__invoke__performanceConfigDetail__exception:{}", e.getMessage(),e);
return RopResponse.error(e);
} catch (Exception e) {
log.info("=======PerformanceConfigController__invoke__performanceConfigDetail__exception:", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR);
}
} }
@ApiOperation("提成方案详情(以门店为维度)") @ApiOperation("提成方案详情(以门店为维度)")
@ServiceMethod(method = "dj.staff.api.performance.config.merchant.detail", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.staff.api.performance.config.merchant.detail", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.staff.api.performance.config.merchant.detail/1.0.0") @PostMapping("/dj.staff.api.performance.config.merchant.detail/1.0.0")
public RopResponse<List<PerformanceConfigDetailDTO>> performanceConfigDetailWithMerchant(PerformanceConfigDetailWithMerchantRequest request) { public RopResponse<List<PerformanceConfigDetailDTO>> performanceConfigDetailWithMerchant(PerformanceConfigDetailWithMerchantRequest request) {
try {
PerformanceConfigDTO dto = CommonUtil.convertRequest(PerformanceConfigDTO.class); PerformanceConfigDTO dto = CommonUtil.convertRequest(PerformanceConfigDTO.class);
RpcResponse<List<PerformanceConfigDetailDTO>> response = performanceConfigRemote.performanceConfigDetailWithMerchant(dto); RpcResponse<List<PerformanceConfigDetailDTO>> response = performanceConfigRemote.performanceConfigDetailWithMerchant(dto);
return RopResponse.success(response.getResult()); return RopResponse.success(response.getResult());
} catch (RpcServiceException e) {
log.info("=======PerformanceConfigController__invoke__performanceConfigDetail__exception:{}", e.getMessage(),e);
return RopResponse.error(e);
} catch (Exception e) {
log.info("=======PerformanceConfigController__invoke__performanceConfigDetail__exception:", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR);
}
} }
@ApiOperation("门店提成方案列表(以门店为维度)") @ApiOperation("门店提成方案列表(以门店为维度)")
@ServiceMethod(method = "dj.staff.api.performance.store.config.page", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.staff.api.performance.store.config.page", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.staff.api.performance.store.config.page/1.0.0") @PostMapping("/dj.staff.api.performance.store.config.page/1.0.0")
public RopResponse<RpcPagination<PerformanceConfigPageByMerchantDTO>> performanceConfigPageByMerchent(PerformanceConfigPageByMerchantRequest request) { public RopResponse<RpcPagination<PerformanceConfigPageByMerchantDTO>> performanceConfigPageByMerchent(PerformanceConfigPageByMerchantRequest request) {
try {
RpcPagination<PerformanceConfigPageByMerchantDTO> pagination = CommonUtil.getRpcPagination(PerformanceConfigPageByMerchantDTO.class); RpcPagination<PerformanceConfigPageByMerchantDTO> pagination = CommonUtil.getRpcPagination(PerformanceConfigPageByMerchantDTO.class);
PerformanceConfigPageByMerchantDTO condition = CommonUtil.convertRequest(PerformanceConfigPageByMerchantDTO.class); PerformanceConfigPageByMerchantDTO condition = CommonUtil.convertRequest(PerformanceConfigPageByMerchantDTO.class);
pagination.setCondition(condition); pagination.setCondition(condition);
RpcResponse<RpcPagination<PerformanceConfigPageByMerchantDTO>> pageResponse = performanceConfigRemote.performanceConfigPageByMerchant(pagination); RpcResponse<RpcPagination<PerformanceConfigPageByMerchantDTO>> pageResponse = performanceConfigRemote.performanceConfigPageByMerchant(pagination);
return CommonUtil.convertRopResponse(pageResponse); return CommonUtil.convertRopResponse(pageResponse);
} catch (RpcServiceException e) {
log.info("=======PerformanceConfigController__invoke_performanceConfigPageByMerchent__exception:{}", e.getMessage(),e);
return RopResponse.error(e);
} catch (Exception e) {
log.info("=======PerformanceConfigController__invoke_performanceConfigPageByMerchent__exception:", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR);
}
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -3,8 +3,6 @@ package cn.com.glsx.dj.staff.controller.performance; ...@@ -3,8 +3,6 @@ package cn.com.glsx.dj.staff.controller.performance;
import cn.com.glsx.dj.staff.dto.performance.PerformanceTimeCycleDTO; import cn.com.glsx.dj.staff.dto.performance.PerformanceTimeCycleDTO;
import cn.com.glsx.dj.staff.remote.performance.PerformanceTimeCycleRemote; import cn.com.glsx.dj.staff.remote.performance.PerformanceTimeCycleRemote;
import cn.com.glsx.dj.staff.request.performance.PerformanceTimeCycleGetRequest; import cn.com.glsx.dj.staff.request.performance.PerformanceTimeCycleGetRequest;
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 cn.com.glsx.framework.rop.response.RopResponse;
import com.rop.annotation.*; import com.rop.annotation.*;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -26,15 +24,7 @@ public class PerformanceTimeCycleController { ...@@ -26,15 +24,7 @@ public class PerformanceTimeCycleController {
@ServiceMethod(method = "dj.staff.api.performance.time.cycle.get", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.staff.api.performance.time.cycle.get", needInSession = NeedInSessionType.YES)
@PostMapping("/dj.staff.api.performance.time.cycle.get/1.0.0") @PostMapping("/dj.staff.api.performance.time.cycle.get/1.0.0")
public RopResponse<PerformanceTimeCycleDTO> performanceAppealLifeCycle(PerformanceTimeCycleGetRequest request) { public RopResponse<PerformanceTimeCycleDTO> performanceAppealLifeCycle(PerformanceTimeCycleGetRequest request) {
try {
PerformanceTimeCycleDTO dto = PerformanceTimeCycleDTO.builder().build(); PerformanceTimeCycleDTO dto = PerformanceTimeCycleDTO.builder().build();
return RopResponse.success(performanceTimeCycleRemote.getCurrPerformanceTimeCycle(dto)); return RopResponse.success(performanceTimeCycleRemote.getCurrPerformanceTimeCycle(dto));
} catch (RpcServiceException e) {
log.info("=======PerformanceTimeCycleController__invoke__performanceAppealLifeCycle__exception:{}", e.getMessage(),e);
return RopResponse.error(e);
} catch (Exception e) {
log.info("=======PerformanceTimeCycleController__invoke__performanceAppealLifeCycle__exception:", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR);
}
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!