Commit 09557efd by 张富康

整体收车成本分布接口抽取

1 parent 1847b65c
package cn.com.glsx.dj.config;
import cn.com.glsx.dj.smartcarlife.remote.DeliveryTargetRemote;
import cn.com.glsx.dj.smartcarlife.remote.ClockInAnalysisRemote;
import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @Title: DubboConfig.java
......
......@@ -3,6 +3,7 @@ package cn.com.glsx.dj.config.dubbo;
import cn.com.glsx.dj.smartcarlife.remote.ClockInAnalysisRemote;
import cn.com.glsx.dj.smartcarlife.remote.DeliveryTargetRemote;
import cn.com.glsx.dj.smartcarlife.remote.ReceptionAnalysisRemote;
import cn.com.glsx.scrm.proxy.remote.CommonProxyRemote;
import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
......@@ -49,5 +50,9 @@ public class DubboConfig {
public ReceptionAnalysisRemote receptionAnalysisRemote() {
return factory.builder(ReceptionAnalysisRemote.class).check(false).version("1.0.0").timeout(30000).build();
}
@Bean
public CommonProxyRemote commonProxyRemote(){
return factory.builder(CommonProxyRemote.class).check(check).timeout(timeout).build();
}
}
......@@ -18,7 +18,7 @@ import java.util.List;
import java.util.Map;
@Slf4j
@ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.YES)
@ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.NO)
@Api("生成最近一年所有周一到周日")
public class GenerateWeeklyRangesController {
......
package cn.com.glsx.dj.controller;
import org.oreframework.redis.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import com.rop.AbstractRopRequest;
import com.rop.annotation.NeedInSessionType;
import com.rop.annotation.ServiceMethod;
import com.rop.annotation.ServiceMethodBean;
import cn.com.glsx.dj.enums.RopErrorEnum;
import cn.com.glsx.dj.request.LoginByPhoneRequest;
import cn.com.glsx.dj.response.LoginUserInfoResponse;
import cn.com.glsx.dj.service.LoginService;
import cn.com.glsx.dj.util.CommonUtil;
import cn.com.glsx.framework.rop.response.RopResponse;
import com.rop.AbstractRopRequest;
import com.rop.annotation.NeedInSessionType;
import com.rop.annotation.ServiceMethod;
import com.rop.annotation.ServiceMethodBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.oreframework.redis.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
@ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.NO)
@Api("登录")
......
......@@ -14,7 +14,7 @@ import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;
@Slf4j
@ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.YES)
@ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.NO)
@Api("省市区数据")
public class RegionController {
......
......@@ -45,6 +45,10 @@ public class UsedCarDataStatsController {
return CommonUtil.convertRopResponse(operationStatus, ReceivingCostDistributionResponseConvert.INSTANCE::toReceivingCostDistributionResponse);
}
/**
* todz趋势图
*/
@ApiOperation("按周期统计数据")
@ServiceMethod(method = "dj.api.used.car.data.stats.cycle.data", needInSession = NeedInSessionType.YES)
public RopResponse<CycleDataResponse> getCycleData(CycleDataRequest request) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!