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
cffbd632
Commit
cffbd632
authored
Jul 09, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店日志接口
parent
9473b396
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
pom.xml
gic-store-service/pom.xml
+1
-0
StoreController.java
...in/java/com/gic/store/web/controller/StoreController.java
+15
-2
No files found.
gic-store-service/pom.xml
View file @
cffbd632
...
...
@@ -102,6 +102,7 @@
<artifactId>
gic-bizdict-api
</artifactId>
<version>
${gic-bizdict-api}
</version>
</dependency>
</dependencies>
<build>
...
...
gic-store-web/src/main/java/com/gic/store/web/controller/StoreController.java
View file @
cffbd632
...
...
@@ -8,6 +8,8 @@ import com.gic.commons.util.GlobalInfo;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.error.ErrorCode
;
import
com.gic.enterprise.response.EnterpriseRestResponse
;
import
com.gic.log.api.dto.GicLogInterfaceDTO
;
import
com.gic.log.api.service.LogApiService
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.store.constant.CreateTypeEnum
;
import
com.gic.store.dto.*
;
...
...
@@ -45,6 +47,8 @@ public class StoreController {
private
StoreApiService
storeApiService
;
@Autowired
private
StoreDictApiService
storeDictApiService
;
@Autowired
private
LogApiService
logApiService
;
@RequestMapping
(
"/save-store"
)
public
RestResponse
saveOrUpdate
(
StoreQO
storeQO
)
{
...
...
@@ -95,7 +99,6 @@ public class StoreController {
}
@RequestMapping
(
"store-list-source"
)
@ResponseBody
public
RestResponse
storeListSource
(){
Integer
enterpriseId
=
1111
;
List
<
StoreListSourceVO
>
list
=
this
.
getStoreAllListSource
(
enterpriseId
);
...
...
@@ -115,7 +118,6 @@ public class StoreController {
}
@RequestMapping
(
"store-list-source-set"
)
@ResponseBody
public
RestResponse
storeListSourceSet
(
String
sources
){
if
(
StringUtils
.
isBlank
(
sources
)){
return
EnterpriseRestResponse
.
failure
(
ErrorCode
.
ERR_2
);
...
...
@@ -126,6 +128,17 @@ public class StoreController {
return
RestResponse
.
success
();
}
@RequestMapping
(
"list-store-log"
)
public
RestResponse
listStoreLog
(
Integer
storeId
,
PageQO
pageQO
){
Page
page
=
new
Page
(
pageQO
.
getCurrentPage
(),
pageQO
.
getPageSize
());
ServiceResponse
<
Page
<
GicLogInterfaceDTO
>>
response
=
this
.
logApiService
.
listLogInterface
(
page
);
if
(
response
.
isSuccess
()){
return
RestResponse
.
success
(
response
.
getResult
());
}
return
EnterpriseRestResponse
.
failure
(
response
);
}
private
List
<
StoreListSourceVO
>
getStoreAllListSource
(
Integer
enterpriseId
){
List
<
StoreListSourceVO
>
list
=
new
ArrayList
<>();
ServiceResponse
<
List
<
StoreDictDTO
>>
serviceResponse
=
this
.
storeDictApiService
.
listStoreField
(
enterpriseId
);
...
...
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