Commit fd375697 by 张富康

门店列表

1 parent 0b60cc83
......@@ -120,7 +120,7 @@ public class UsedCarDataStatsController {
@ApiOperation("门店列表")
@ServiceMethod(method = "dj.api.used.car.data.stats.store.list", needInSession = NeedInSessionType.YES)
public RopResponse<Object> getStoreList(StoreListRequest request) {
public RopResponse<List<StoreListResponse>> getStoreList(StoreListRequest request) {
StoreListReq storeListReq = CommonUtil.convertRequest(StoreListReq.class);
boolean b = CommonUtil.validLeadRole();
if (!b) {
......@@ -128,8 +128,8 @@ public class UsedCarDataStatsController {
}
storeListReq.setRole(CommonUtil.getLoginUserInfo().getLoginRole());
storeListReq.setRegionId(CommonUtil.getLoginUserInfo().getRegionId());
RpcResponse<StoreListRes> storeList = usedCarDataStatsRemote.getStoreList(storeListReq);
return CommonUtil.convertRopResponse(storeList, StoreListResponseConvert.INSTANCE::toStoreListResponse);
RpcResponse<List<StoreListRes>> storeList = usedCarDataStatsRemote.getStoreList(storeListReq);
return CommonUtil.convertRopResponse(storeList, StoreListResponseConvert.INSTANCE::toListStoreListResponse);
}
@ApiOperation("流量贡献排行榜")
......
......@@ -5,10 +5,14 @@ import cn.com.glsx.dj.response.UserdCarDataStats.StoreListResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
@Mapper
public interface StoreListResponseConvert {
StoreListResponseConvert INSTANCE = Mappers.getMapper(StoreListResponseConvert.class);
StoreListResponse toStoreListResponse(StoreListRes source);
List<StoreListResponse> toListStoreListResponse(List<StoreListRes> source);
}
......@@ -60,6 +60,7 @@ public class StoreListResponse implements Serializable {
/**
* 门店标识:若门店无大于在库天数大于7天或大于30的车辆,即=正常;
* 若门店存在大于在库天数大于7天或大于30的车辆,则=车辆滞销;
* 1-正常 2-车辆滞销
*/
@ApiModelProperty(notes = "门店标识")
private String storeMark;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!