Commit 2b9bacdb by zhiwj

数据解读

parent 5d1dcc5d
......@@ -3,8 +3,10 @@ package com.gic.cloud.operation.web.controller;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.dto.DataExplainDTO;
import com.gic.cloud.dto.IndexLogDTO;
import com.gic.cloud.qo.DataExplainQO;
import com.gic.cloud.service.DataExplainApiService;
import com.gic.cloud.service.IndexLogApiService;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.error.ErrorCode;
import com.gic.enterprise.utils.ResultControllerUtils;
......@@ -13,6 +15,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @author zhiwj
* @Description:
......@@ -23,6 +27,8 @@ public class DataExplainController {
@Autowired
private DataExplainApiService dataExplainApiService;
@Autowired
private IndexLogApiService indexLogApiService;
@RequestMapping("/saveDataExplain")
public RestResponse saveDataExplain(DataExplainDTO dataExplainDTO) {
......@@ -51,4 +57,10 @@ public class DataExplainController {
return ResultControllerUtils.commonResult(serviceResponse);
}
}
@RequestMapping("/dataExplainLog")
public RestResponse dataExplainLog(Integer dataExplainId) {
ServiceResponse<List<IndexLogDTO>> serviceResponse = indexLogApiService.listDataExplainLog(dataExplainId);
return ResultControllerUtils.commonResult(serviceResponse);
}
}
\ No newline at end of file
......@@ -5,9 +5,10 @@ import com.gic.api.base.commons.ServiceResponse;
import com.gic.authcenter.security.core.dto.UserDetailsVO;
import com.gic.authcenter.security.core.util.UserUtils;
import com.gic.cloud.dto.IndexDTO;
import com.gic.cloud.dto.IndexLogDTO;
import com.gic.cloud.qo.IndexQO;
import com.gic.cloud.service.DataExplainApiService;
import com.gic.cloud.service.IndexApiService;
import com.gic.cloud.service.IndexLogApiService;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.error.ErrorCode;
import com.gic.enterprise.utils.ResultControllerUtils;
......@@ -16,6 +17,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @author zhiwj
* @Description:
......@@ -27,7 +30,8 @@ public class IndexController {
@Autowired
private IndexApiService indexApiService;
@Autowired
private DataExplainApiService dataExplainApiService;
private IndexLogApiService indexLogApiService;
@RequestMapping("/saveIndex")
public RestResponse saveIndex(IndexDTO indexDTO) {
......@@ -64,4 +68,11 @@ public class IndexController {
ServiceResponse<Page<IndexDTO>> serviceResponse = indexApiService.listIndex(indexQO);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/indexLog")
public RestResponse indexLog(Integer indexId) {
ServiceResponse<List<IndexLogDTO>> serviceResponse = indexLogApiService.listIndexLog(indexId);
return ResultControllerUtils.commonResult(serviceResponse);
}
}
\ No newline at end of file
......@@ -94,6 +94,7 @@
<dubbo:reference interface="com.gic.member.config.api.service.MemberCardApiService" id="memberCardApiService" timeout="6000" />
<dubbo:reference interface="com.gic.cloud.service.IndexApiService" id="indexApiService" timeout="6000" retries="0"/>
<dubbo:reference interface="com.gic.cloud.service.IndexLogApiService" id="indexLogApiService" timeout="6000" retries="0"/>
<dubbo:reference interface="com.gic.cloud.service.DataExplainApiService" id="dataExplainApiService" timeout="6000" retries="0"/>
......
......@@ -22,5 +22,6 @@
<dubbo:service interface="com.gic.cloud.service.DataAuthApiService" ref="dataAuthApiService" timeout="6000" />
<dubbo:service interface="com.gic.cloud.service.DataExplainApiService" ref="dataExplainApiService" timeout="6000" />
<dubbo:service interface="com.gic.cloud.service.IndexApiService" ref="indexApiService" timeout="6000" />
<dubbo:service interface="com.gic.cloud.service.IndexLogApiService" ref="indexLogApiService" timeout="6000" />
<dubbo:service interface="com.gic.cloud.service.TempStoreConditionApiService" ref="tempStoreConditionApiService" timeout="6000" />
</beans>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment