Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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-store
Commits
193aee3a
Commit
193aee3a
authored
Feb 27, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appId传入测试
parent
24f9955a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
StoreOpenApiService.java
.../main/java/com/gic/store/service/StoreOpenApiService.java
+2
-1
pom.xml
gic-store-service/pom.xml
+5
-0
StoreOpenApiServiceImpl.java
...gic/store/service/outer/impl/StoreOpenApiServiceImpl.java
+10
-2
dubbo-gic-store-service.xml
...re-service/src/main/resources/dubbo-gic-store-service.xml
+1
-0
No files found.
gic-store-api/src/main/java/com/gic/store/service/StoreOpenApiService.java
View file @
193aee3a
...
...
@@ -96,6 +96,7 @@ public interface StoreOpenApiService {
* @Title: pageClerk
* @Description:
* @author guojuxing
* @param appId 应用ID
* @param enterpriseId 商户ID
* @param storeCode 门店code 如果为空,则查询所有域下的
* @param regionId 门店域ID
...
...
@@ -103,5 +104,5 @@ public interface StoreOpenApiService {
* @param pageSize 每页多少条
* @return com.gic.api.base.commons.ServiceResponse<java.lang.String>
*/
ServiceResponse
<
String
>
pageClerk
(
Integer
enterpriseId
,
String
storeCode
,
Integer
regionId
,
Integer
pageNum
,
Integer
pageSize
);
ServiceResponse
<
String
>
pageClerk
(
Long
appId
,
Integer
enterpriseId
,
String
storeCode
,
Integer
regionId
,
Integer
pageNum
,
Integer
pageSize
);
}
gic-store-service/pom.xml
View file @
193aee3a
...
...
@@ -144,6 +144,11 @@
<artifactId>
gateway-client-sdk
</artifactId>
<version>
${gateway-client-sdk}
</version>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
application-center-api
</artifactId>
<version>
${application-center-api}
</version>
</dependency>
</dependencies>
<build>
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreOpenApiServiceImpl.java
View file @
193aee3a
...
...
@@ -4,6 +4,8 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.application.center.api.dto.ApplicationResourceDTO
;
import
com.gic.application.center.api.service.AuthorizeService
;
import
com.gic.commons.util.DateUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.enterprise.constants.Constants
;
...
...
@@ -64,6 +66,8 @@ public class StoreOpenApiServiceImpl implements StoreOpenApiService {
private
StoreFieldService
storeFieldService
;
@Autowired
private
StoreDictApiService
storeDictApiService
;
@Autowired
private
AuthorizeService
authorizeService
;
@Override
public
ServiceResponse
<
String
>
getApiFieldJson
(
Integer
enterpriseId
,
Integer
regionId
)
{
...
...
@@ -471,13 +475,17 @@ public class StoreOpenApiServiceImpl implements StoreOpenApiService {
}
@Override
@GatewayParams
(
query
=
{
"enterpriseId"
,
"storeCode"
,
"regionId"
,
"pageNum"
,
"pageSize"
})
public
ServiceResponse
<
String
>
pageClerk
(
Integer
enterpriseId
,
String
storeCode
,
Integer
regionId
,
Integer
pageNum
,
Integer
pageSize
)
{
@GatewayParams
(
query
=
{
"
appId"
,
"
enterpriseId"
,
"storeCode"
,
"regionId"
,
"pageNum"
,
"pageSize"
})
public
ServiceResponse
<
String
>
pageClerk
(
Long
appId
,
Integer
enterpriseId
,
String
storeCode
,
Integer
regionId
,
Integer
pageNum
,
Integer
pageSize
)
{
//参数校验
ServiceResponse
<
EnterpriseDTO
>
enterpriseResult
=
enterpriseApiService
.
getEnterpriseById
(
enterpriseId
);
if
(!
enterpriseResult
.
isSuccess
())
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"商户ID错误,无此商户"
);
}
ServiceResponse
<
ApplicationResourceDTO
>
res
=
authorizeService
.
findResourceByEnterpriseIdAndApplicationId
(
Long
.
valueOf
(
enterpriseId
),
appId
);
if
(
res
.
isSuccess
())
{
return
ServiceResponse
.
failure
(
res
.
getCode
(),
res
.
getMessage
());
}
if
(
pageNum
==
null
)
{
pageNum
=
1
;
}
...
...
gic-store-service/src/main/resources/dubbo-gic-store-service.xml
View file @
193aee3a
...
...
@@ -57,6 +57,7 @@
<dubbo:reference
interface=
"com.gic.enterprise.service.CustomStoreApiService"
id=
"customStoreApiService"
timeout=
"60000"
/>
<dubbo:reference
interface=
"com.gic.erp.operation.api.service.ApiFieldApiService"
id=
"apiFieldApiService"
timeout=
"60000"
/>
<dubbo:reference
interface=
"com.gic.application.center.api.service.AuthorizeService"
id=
"authorizeService"
timeout=
"60000"
/>
<dubbo:service
interface=
"com.gic.store.service.StoreTagApiService"
ref=
"storeTagApiService"
timeout=
"6000"
/>
<dubbo:service
interface=
"com.gic.store.service.StoreTagTmpApiService"
ref=
"storeTagTmpApiService"
timeout=
"6000"
/>
...
...
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