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
686e1e33
Commit
686e1e33
authored
Oct 12, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店授权
parent
8efbffa6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
2 deletions
+19
-2
StoreServiceImpl.java
...ain/java/com/gic/store/service/impl/StoreServiceImpl.java
+1
-0
StoreAuthorizationApiServiceImpl.java
.../service/outer/impl/StoreAuthorizationApiServiceImpl.java
+4
-2
StoreController.java
...in/java/com/gic/store/web/controller/StoreController.java
+12
-0
dubbo-gic-store-web.xml
gic-store-web/src/main/resources/dubbo-gic-store-web.xml
+2
-0
No files found.
gic-store-service/src/main/java/com/gic/store/service/impl/StoreServiceImpl.java
View file @
686e1e33
...
...
@@ -406,6 +406,7 @@ public class StoreServiceImpl implements StoreService {
store
.
setOwnType
(
storeDTO
.
getOwnType
());
store
.
setStatus
(
com
.
gic
.
enterprise
.
constants
.
Constants
.
NORMAL_STATUS
);
store
.
setUpdateTime
(
new
Date
());
store
.
setFromEnterpriseId
(
storeDTO
.
getFromEnterpriseId
());
if
(
store
.
getStoreId
()
!=
null
){
result
=
this
.
tabStoreMapper
.
updateByPrimaryKeySelective
(
store
);
}
else
{
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreAuthorizationApiServiceImpl.java
View file @
686e1e33
...
...
@@ -95,9 +95,11 @@ public class StoreAuthorizationApiServiceImpl implements StoreAuthorizationApiSe
String
groupId
=
storeStrategyService
.
isHitStrategy
(
storeDTO
,
StoreGroupConstant
.
STORE_GROUP_STRATEGY_TYPE
);
if
(
StringUtils
.
isBlank
(
groupId
))
{
TabStoreGroup
group
=
storeGroupService
.
selectUnGroupedStore
(
storeDTO
.
getEnterpriseId
());
groupId
=
group
.
getStoreGroupId
()+
""
;
if
(
group
!=
null
){
groupId
=
group
.
getStoreGroupId
()+
""
;
storeDTO
.
setStoreGroupId
(
Integer
.
valueOf
(
groupId
));
}
}
storeDTO
.
setStoreGroupId
(
Integer
.
valueOf
(
groupId
));
storeDTO
.
setIsEditStoreGroup
(
0
);
storeDTO
.
setOwnType
(
StoreOwnTypeEnum
.
OTHER
.
getCode
());
int
i
=
this
.
storeService
.
authAddStore
(
storeDTO
);
...
...
gic-store-web/src/main/java/com/gic/store/web/controller/StoreController.java
View file @
686e1e33
...
...
@@ -14,6 +14,7 @@ import com.gic.store.constant.CreateTypeEnum;
import
com.gic.store.constant.StoreESFieldsEnum
;
import
com.gic.store.dto.*
;
import
com.gic.store.service.StoreApiService
;
import
com.gic.store.service.StoreAuthorizationApiService
;
import
com.gic.store.service.StoreDictApiService
;
import
com.gic.store.utils.StoreRedisKeyUtils
;
import
com.gic.store.web.qo.PageQO
;
...
...
@@ -28,6 +29,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
...
...
@@ -262,5 +264,14 @@ public class StoreController {
}
return
isEditGroup
;
}
@Autowired
private
StoreAuthorizationApiService
storeAuthorizationApiService
;
@RequestMapping
(
"test-a"
)
@ResponseBody
public
Object
test
(
String
params
){
ServiceResponse
<
Void
>
voidServiceResponse
=
this
.
storeAuthorizationApiService
.
authorizationSingleStore
(
params
);
return
voidServiceResponse
;
}
}
\ No newline at end of file
gic-store-web/src/main/resources/dubbo-gic-store-web.xml
View file @
686e1e33
...
...
@@ -41,5 +41,6 @@
<dubbo:reference
interface=
"com.gic.store.service.ClerkImportApiService"
id=
"clerkImportApiService"
timeout=
"60000"
/>
<!-- 平台品牌 -->
<dubbo:reference
interface=
"com.gic.enterprise.service.PlatformBrandApiService"
id=
"platformBrandApiService"
timeout=
"60000"
/>
<dubbo:reference
interface=
"com.gic.store.service.StoreAuthorizationApiService"
id=
"storeAuthorizationApiService"
timeout=
"60000"
/>
</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