Commit 4dabd1f2 by guojuxing

插件:分组查询接口

parent c59a9a3c
package com.gic.plug.web.controller;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.store.constant.StoreGroupConstant;
import com.gic.store.dto.StoreGroupDTO;
import com.gic.store.service.StoreGroupApiService;
import com.gic.store.utils.storegroup.ChangeListToTree;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
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 guojx
* @date 2019/7/12 2:54 PM
*/
@RestController
@RequestMapping("/store-group")
public class StoreGroupController {
private static final Logger logger = LoggerFactory.getLogger(StoreGroupController.class);
@Autowired
private StoreGroupApiService storeGroupApiService;
@RequestMapping("/list")
public RestResponse listStoreGroup() {
StoreGroupDTO dto = new StoreGroupDTO();
dto.setEnterpriseId(StoreGroupConstant.TEST_ENTERPRISE_ID);
List<StoreGroupDTO> list = storeGroupApiService.listStoreGroup(dto);
return RestResponse.success(ChangeListToTree.changeListToTreeNotIncludeAllStore(StoreGroupConstant.ALL_STORE_LEVEL, list));
}
}
......@@ -22,5 +22,10 @@
<dubbo:reference interface="com.gic.store.service.StoreGroupApiService" id="storeGroupApiService" timeout="60000" retries="0"/>
<!--自定义域字段-->
<dubbo:reference interface="com.gic.store.service.StoreFieldApiService" id="storeFieldApiService" timeout="60000" retries="0"/>
<dubbo:reference interface="com.gic.store.service.StoreFieldSelectApiService" id="storeFieldSelectApiService" timeout="60000" retries="0"/>
<dubbo:reference interface="com.gic.store.service.ProvincesApiService" id="provincesApiService" timeout="60000" retries="0"/>
<!--分组策略-->
<dubbo:reference interface="com.gic.store.service.StoreStrategyApiService" id="storeStrategyApiService" timeout="60000" retries="0"/>
</beans>
\ No newline at end of file
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