Commit ff59d1f0 by 杨卫

feat:1047852:我的事项列表,事项未处理数量事项详情等接口ROP

1 parent 6f71feaf
...@@ -84,4 +84,19 @@ public interface BiAnalyseBackgroundRemote { ...@@ -84,4 +84,19 @@ public interface BiAnalyseBackgroundRemote {
@ApiParam(name = "request", notes = "处理参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true) @ApiParam(name = "request", notes = "处理参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("获取指定店铺的区域运营与线上运营") @ApiResponse("获取指定店铺的区域运营与线上运营")
RpcResponse<MerchantOperatorDetailDTO> findMerchantOperator(MerchantOperatorDTO request); RpcResponse<MerchantOperatorDetailDTO> findMerchantOperator(MerchantOperatorDTO request);
@ApiMethod("BI-我的事项列表")
@ApiParam(name = "rpcPagination", notes = "分页条件", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("我的事项列表")
RpcResponse<RpcPagination<MyMerchantBiMatterDTO>> myMerchantBiMatterPage(RpcPagination<MyMerchantBiMatterQryDTO> rpcPagination);
@ApiMethod("BI-事项管理详情")
@ApiParam(name = "request", notes = "处理参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("BI-事项管理详情")
RpcResponse<MerchantBiMatterDTO> biMatterOperatorDetail(MerchantBiMatterSingleIdDTO request);
@ApiMethod("BI-我的事项未处理数量")
@ApiParam(name = "userUnique", notes = "处理参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("BI-我的事项未处理数量")
RpcResponse<Integer> getMyBiMatterUnHandleCount(String userUnique);
} }
...@@ -299,4 +299,47 @@ public class BiAnalyseBackgroundRemoteImpl implements BiAnalyseBackgroundRemote ...@@ -299,4 +299,47 @@ public class BiAnalyseBackgroundRemoteImpl implements BiAnalyseBackgroundRemote
return RpcResponse.error(e); return RpcResponse.error(e);
} }
} }
@Override
public RpcResponse<RpcPagination<MyMerchantBiMatterDTO>> myMerchantBiMatterPage(RpcPagination<MyMerchantBiMatterQryDTO> rpcPagination) {
try {
Page<MyMerchantBiMatterDTO> page = biAnalyseBackgroundService.myMerchantBiMatterPage(rpcPagination);
return RpcResponse.success(RpcPagination.copyPage(page));
} catch (RpcServiceException e) {
log.error("BI-我的事项列表调用异常!", e);
return RpcResponse.error(e);
} catch (Exception e) {
log.error("BI-我的事项列表调用异常!", e);
return RpcResponse.error(e);
}
}
@Override
public RpcResponse<MerchantBiMatterDTO> biMatterOperatorDetail(MerchantBiMatterSingleIdDTO request) {
try {
MerchantBiMatterDTO result = biAnalyseBackgroundService.biMatterOperatorDetail(request);
return RpcResponse.success(result);
} catch (RpcServiceException e) {
log.error("BI-事项管理详情调用异常!", e);
return RpcResponse.error(e);
} catch (Exception e) {
log.error("BI-事项管理详情调用异常!", e);
return RpcResponse.error(e);
}
}
@Override
public RpcResponse<Integer> getMyBiMatterUnHandleCount(String userUnique) {
try {
Integer unHandleCount = biAnalyseBackgroundService.getMyBiMatterUnHandleCount(userUnique);
return RpcResponse.success(unHandleCount);
} catch (RpcServiceException e) {
log.error("BI-我的事项未处理数量调用异常!", e);
return RpcResponse.error(e);
} catch (Exception e) {
log.error("BI-我的事项未处理数量调用异常!", e);
return RpcResponse.error(e);
}
}
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!