Commit cb957087 by 张富康

流量贡献排行榜

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