Commit 15c0694c by zhiwj

指标说明

parent a3dd9a2d
...@@ -162,6 +162,9 @@ ...@@ -162,6 +162,9 @@
<if test="search != null and search != '' "> <if test="search != null and search != '' ">
and ( data_name like concat('%', #{search}, '%') or data_classify like concat('%', #{search}, '%') ) and ( data_name like concat('%', #{search}, '%') or data_classify like concat('%', #{search}, '%') )
</if> </if>
<if test="moduleId != null and moduleId != '' ">
and module_id = #{moduleId}
</if>
order by create_time desc order by create_time desc
</select> </select>
</mapper> </mapper>
\ No newline at end of file
package com.gic.cloud.web.controller; package com.gic.cloud.web.controller;
import com.gic.api.base.commons.ServiceResponse; import com.gic.api.base.commons.ServiceResponse;
import com.gic.cloud.dto.DataExplainDTO;
import com.gic.cloud.dto.IndexDescDTO; import com.gic.cloud.dto.IndexDescDTO;
import com.gic.cloud.service.DataExplainApiService;
import com.gic.cloud.service.IndexDescApiService; import com.gic.cloud.service.IndexDescApiService;
import com.gic.commons.webapi.reponse.RestResponse; import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.ano.IgnoreLogin; import com.gic.enterprise.ano.IgnoreLogin;
...@@ -22,37 +24,34 @@ public class IndexDescController { ...@@ -22,37 +24,34 @@ public class IndexDescController {
@Autowired @Autowired
private IndexDescApiService indexDescApiService; private IndexDescApiService indexDescApiService;
@Autowired
private DataExplainApiService dataExplainApiService;
@RequestMapping("/list-index-desc") @RequestMapping("/list-index-desc")
@IgnoreLogin
public RestResponse listIndexDesc(Integer enterpriseId, String moduleId, String indexGroupName) { public RestResponse listIndexDesc(Integer enterpriseId, String moduleId, String indexGroupName) {
ServiceResponse<List<IndexDescDTO>> serviceResponse = indexDescApiService.listByEnterpriseAndModule(enterpriseId, moduleId, indexGroupName); ServiceResponse<List<IndexDescDTO>> serviceResponse = indexDescApiService.listByEnterpriseAndModule(enterpriseId, moduleId, indexGroupName);
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/list-index-desc-detail") @RequestMapping("/list-index-desc-detail")
@IgnoreLogin
public RestResponse listByEnterpriseAndModuleDetail(Integer enterpriseId, String moduleId, String indexGroupName, Integer userId) { public RestResponse listByEnterpriseAndModuleDetail(Integer enterpriseId, String moduleId, String indexGroupName, Integer userId) {
ServiceResponse<List<IndexDescDTO>> serviceResponse = indexDescApiService.listByEnterpriseAndModuleDetail(enterpriseId, moduleId, indexGroupName, userId); ServiceResponse<List<IndexDescDTO>> serviceResponse = indexDescApiService.listByEnterpriseAndModuleDetail(enterpriseId, moduleId, indexGroupName, userId);
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/list-index-desc-recycle") @RequestMapping("/list-index-desc-recycle")
@IgnoreLogin
public RestResponse listRecycle(Integer enterpriseId, String moduleId, String indexGroupName) { public RestResponse listRecycle(Integer enterpriseId, String moduleId, String indexGroupName) {
ServiceResponse<List<IndexDescDTO>> serviceResponse = indexDescApiService.listRecycle(enterpriseId, moduleId, indexGroupName); ServiceResponse<List<IndexDescDTO>> serviceResponse = indexDescApiService.listRecycle(enterpriseId, moduleId, indexGroupName);
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/sort-index-desc") @RequestMapping("/sort-index-desc")
@IgnoreLogin
public RestResponse sort(Integer enterpriseId, String moduleId, String indexGroupName, Integer indexDescEnterpriseId, Integer seq) { public RestResponse sort(Integer enterpriseId, String moduleId, String indexGroupName, Integer indexDescEnterpriseId, Integer seq) {
ServiceResponse<Void> serviceResponse = indexDescApiService.sort(enterpriseId, moduleId, indexGroupName, indexDescEnterpriseId, seq); ServiceResponse<Void> serviceResponse = indexDescApiService.sort(enterpriseId, moduleId, indexGroupName, indexDescEnterpriseId, seq);
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/recycle-index-desc") @RequestMapping("/recycle-index-desc")
@IgnoreLogin
public RestResponse recycle(Integer indexDescEnterpriseId) { public RestResponse recycle(Integer indexDescEnterpriseId) {
ServiceResponse<Void> serviceResponse = indexDescApiService.moveToRecycle(indexDescEnterpriseId); ServiceResponse<Void> serviceResponse = indexDescApiService.moveToRecycle(indexDescEnterpriseId);
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
...@@ -60,9 +59,16 @@ public class IndexDescController { ...@@ -60,9 +59,16 @@ public class IndexDescController {
@RequestMapping("/get-index-desc") @RequestMapping("/get-index-desc")
@IgnoreLogin
public RestResponse getIndexDesc(Integer enterpriseId, String moduleId, String indexGroupName, String indexCode) { public RestResponse getIndexDesc(Integer enterpriseId, String moduleId, String indexGroupName, String indexCode) {
ServiceResponse<String> serviceResponse = indexDescApiService.getIndexDesc(enterpriseId, moduleId, indexGroupName, indexCode); ServiceResponse<String> serviceResponse = indexDescApiService.getIndexDesc(enterpriseId, moduleId, indexGroupName, indexCode);
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/get-data-explain")
@IgnoreLogin
public RestResponse getDataExplain(String moduleId) {
ServiceResponse<List<DataExplainDTO>> serviceResponse = dataExplainApiService.listByModule(moduleId);
return ResultControllerUtils.commonResult(serviceResponse);
}
} }
\ No newline at end of file
...@@ -144,4 +144,5 @@ ...@@ -144,4 +144,5 @@
<dubbo:reference interface="com.gic.cloud.service.StoreAttentionApiService" id="storeAttentionApiService" timeout="6000" retries="0"/> <dubbo:reference interface="com.gic.cloud.service.StoreAttentionApiService" id="storeAttentionApiService" timeout="6000" retries="0"/>
<dubbo:reference interface="com.gic.cloud.service.TempStoreConditionApiService" id="tempStoreConditionApiService" timeout="6000" retries="0"/> <dubbo:reference interface="com.gic.cloud.service.TempStoreConditionApiService" id="tempStoreConditionApiService" timeout="6000" retries="0"/>
<dubbo:reference interface="com.gic.cloud.service.IndexDescApiService" id="indexDescApiService" timeout="6000" retries="0"/> <dubbo:reference interface="com.gic.cloud.service.IndexDescApiService" id="indexDescApiService" timeout="6000" retries="0"/>
<dubbo:reference interface="com.gic.cloud.service.DataExplainApiService" id="dataExplainApiService" timeout="6000" retries="0"/>
</beans> </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