Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-webapp-plug
Commits
4dabd1f2
Commit
4dabd1f2
authored
Jul 12, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
插件:分组查询接口
parent
c59a9a3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
StoreGroupController.java
...ava/com/gic/plug/web/controller/StoreGroupController.java
+35
-0
dubbo-gic-webapp-plug.xml
src/main/resources/dubbo-gic-webapp-plug.xml
+6
-0
No files found.
src/main/java/com/gic/plug/web/controller/StoreGroupController.java
0 → 100644
View file @
4dabd1f2
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
));
}
}
src/main/resources/dubbo-gic-webapp-plug.xml
View file @
4dabd1f2
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment