Commit cb957087 by 张富康

流量贡献排行榜

1 parent fd375697
......@@ -134,7 +134,7 @@ public class UsedCarDataStatsController {
@ApiOperation("流量贡献排行榜")
@ServiceMethod(method = "dj.api.used.car.data.stats.flow.contribution.ranking", needInSession = NeedInSessionType.YES)
public RopResponse<FlowContributionRankingResponse> getFlowContributionRanking(FlowContributionRankingRequest request) {
public RopResponse<List<FlowContributionRankingResponse>> getFlowContributionRanking(FlowContributionRankingRequest request) {
FlowContributionRankingReq flowContributionRankingReq = CommonUtil.convertRequest(FlowContributionRankingReq.class);
boolean b = CommonUtil.validLeadRole();
if (!b) {
......@@ -142,8 +142,8 @@ public class UsedCarDataStatsController {
}
flowContributionRankingReq.setRole(CommonUtil.getLoginUserInfo().getLoginRole());
flowContributionRankingReq.setRegionId(CommonUtil.getLoginUserInfo().getRegionId());
RpcResponse<FlowContributionRankingRes> flowContributionRanking = usedCarDataStatsRemote.getFlowContributionRanking(flowContributionRankingReq);
return CommonUtil.convertRopResponse(flowContributionRanking, FlowContributionRankingResponseConvert.INSTANCE::toFlowContributionRankingResponse);
RpcResponse<List<FlowContributionRankingRes>> flowContributionRanking = usedCarDataStatsRemote.getFlowContributionRanking(flowContributionRankingReq);
return CommonUtil.convertRopResponse(flowContributionRanking, FlowContributionRankingResponseConvert.INSTANCE::toListFlowContributionRankingResponse);
}
......
......@@ -5,10 +5,14 @@ import cn.com.glsx.dj.response.UserdCarDataStats.FlowContributionRankingResponse
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
@Mapper
public interface FlowContributionRankingResponseConvert {
FlowContributionRankingResponseConvert INSTANCE = Mappers.getMapper(FlowContributionRankingResponseConvert.class);
FlowContributionRankingResponse toFlowContributionRankingResponse(FlowContributionRankingRes source);
List<FlowContributionRankingResponse> toListFlowContributionRankingResponse(List<FlowContributionRankingRes> source);
}
......@@ -27,6 +27,12 @@ public class FlowContributionRankingResponse implements Serializable {
private String userName;
/**
* 手机号
*/
@ApiModelProperty(notes = "手机号")
private String phone;
/**
* 车辆数量
*/
@ApiModelProperty(notes = "车辆数量")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!