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
8d7cb553
Commit
8d7cb553
authored
Mar 04, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
积分成本主体选择门店接口
parent
4dbec9ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
4 deletions
+23
-4
pom.xml
gic-store-web/pom.xml
+5
-0
StoreController.java
...in/java/com/gic/store/web/controller/StoreController.java
+15
-4
dubbo-gic-store-web.xml
gic-store-web/src/main/resources/dubbo-gic-store-web.xml
+3
-0
No files found.
gic-store-web/pom.xml
View file @
8d7cb553
...
...
@@ -143,6 +143,11 @@
<artifactId>
gic-wechat-business-api
</artifactId>
<version>
${gic-wechat-business-api}
</version>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-member-api
</artifactId>
<version>
${gic-member-api}
</version>
</dependency>
</dependencies>
<build>
...
...
gic-store-web/src/main/java/com/gic/store/web/controller/StoreController.java
View file @
8d7cb553
...
...
@@ -18,6 +18,8 @@ import com.gic.enterprise.service.QrCodeApiService;
import
com.gic.enterprise.utils.ResultControllerUtils
;
import
com.gic.enterprise.utils.UserDetailUtils
;
import
com.gic.log.api.service.LogApiService
;
import
com.gic.member.api.dto.StoreBatchUpdateDTO
;
import
com.gic.member.api.service.StoreUpdateApiService
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.store.constant.*
;
import
com.gic.store.dto.*
;
...
...
@@ -46,10 +48,7 @@ import org.springframework.web.bind.annotation.RestController;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
import
java.util.concurrent.ConcurrentHashMap
;
/**
...
...
@@ -85,6 +84,8 @@ public class StoreController extends DownloadUtils {
private
StoreTagApiService
storeTagApiService
;
@Autowired
private
StoreWidgetApiService
storeWidgetApiService
;
@Autowired
private
StoreUpdateApiService
storeUpdateApiService
;
private
Map
<
Integer
,
SimpleDateFormat
>
map
=
new
ConcurrentHashMap
<>();
private
Map
<
Integer
,
SimpleDateFormat
>
map1
=
new
ConcurrentHashMap
<>();
...
...
@@ -407,6 +408,16 @@ public class StoreController extends DownloadUtils {
return
RestResponse
.
success
();
}
@RequestMapping
(
"transfer-store-member"
)
public
RestResponse
transferStoreMember
(
Integer
storeId
,
Integer
toStoreId
){
StoreBatchUpdateDTO
storeBatchUpdateDTO
=
new
StoreBatchUpdateDTO
();
storeBatchUpdateDTO
.
setEnterpriseId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
storeBatchUpdateDTO
.
setSourceStoreIdList
(
Arrays
.
asList
(
storeId
+
""
));
storeBatchUpdateDTO
.
setTargetStoreId
(
toStoreId
+
""
);
this
.
storeUpdateApiService
.
storeBatchUpdate
(
storeBatchUpdateDTO
);
return
RestResponse
.
success
();
}
private
List
<
StoreListSourceVO
>
getStoreAllListSource
(
Integer
enterpriseId
)
{
List
<
StoreListSourceVO
>
list
=
new
ArrayList
<>();
ServiceResponse
<
List
<
StoreDictDTO
>>
serviceResponse
=
this
.
storeDictApiService
.
listStoreField
(
enterpriseId
);
...
...
gic-store-web/src/main/resources/dubbo-gic-store-web.xml
View file @
8d7cb553
...
...
@@ -56,4 +56,6 @@
<dubbo:reference
interface=
"com.gic.enterprise.service.QrCodeApiService"
id=
"qrCodeApiService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.wechat.business.api.service.fwh.WeixinBaseFunService"
id=
"weixinBaseFunService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.wechat.business.api.service.wxa.WeixinWxaFunService"
id=
"weixinWxaFunService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.member.api.service.StoreUpdateApiService"
id=
"storeUpdateApiService"
timeout=
"6000"
/>
</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