Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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-platform-enterprise
Commits
fb6abff7
Commit
fb6abff7
authored
Feb 09, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用策略修改
parent
8d619bea
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
3 deletions
+17
-3
ExceptionResultAop.java
...in/java/com/gic/enterprise/config/ExceptionResultAop.java
+1
-1
UnionEnterpriseAuthAppServiceImpl.java
...prise/service/impl/UnionEnterpriseAuthAppServiceImpl.java
+1
-1
UnionEnterpriseAuthApiServiceImpl.java
...e/outer/impl/union/UnionEnterpriseAuthApiServiceImpl.java
+13
-1
dubbo-gic-platform-enterprise-service.xml
.../main/resources/dubbo-gic-platform-enterprise-service.xml
+1
-0
UnionEnterpriseAuthController.java
...e/web/controller/union/UnionEnterpriseAuthController.java
+1
-0
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/config/ExceptionResultAop.java
View file @
fb6abff7
...
...
@@ -35,7 +35,7 @@ public class ExceptionResultAop {
* @return
* @throws Throwable
*/
@Around
(
value
=
"execution(* com.gic.*.service.outer.impl.*(..))"
)
@Around
(
value
=
"execution(* com.gic.*.service.outer.impl.
.*.
*(..))"
)
public
Object
around
(
ProceedingJoinPoint
joinPoint
)
throws
Throwable
{
try
{
// 执行当前方法
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/UnionEnterpriseAuthAppServiceImpl.java
View file @
fb6abff7
...
...
@@ -49,7 +49,7 @@ public class UnionEnterpriseAuthAppServiceImpl implements UnionEnterpriseAuthApp
@Override
public
boolean
isRepeatStrategyName
(
Integer
unionEnterpriseAuthAppId
,
Integer
unionEnterpriseAuthId
,
String
strategyName
)
{
int
count
=
tabSysUnionEnterpriseAuthAppMapper
.
countRepeatStrategyName
(
unionEnterpriseAuthAppId
,
unionEnterpriseAuthId
,
strategyName
);
if
(
count
>
9
)
{
if
(
count
>
0
)
{
return
true
;
}
return
false
;
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/union/UnionEnterpriseAuthApiServiceImpl.java
View file @
fb6abff7
...
...
@@ -17,6 +17,7 @@ import com.gic.enterprise.entity.TabSysUnionEnterpriseAuthApp;
import
com.gic.enterprise.entity.TabSysUnionEnterpriseAuthResDetail
;
import
com.gic.enterprise.qo.union.UnionEnterpriseAuthResLogQO
;
import
com.gic.enterprise.service.*
;
import
com.gic.store.service.StoreAuthorizationApiService
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -60,6 +61,8 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
private
UnionEnterpriseAuthAppService
unionEnterpriseAuthAppService
;
@Autowired
private
UnionEnterpriseAuthResLogService
unionEnterpriseAuthResLogService
;
@Autowired
private
StoreAuthorizationApiService
storeAuthorizationApiService
;
@Override
public
ServiceResponse
<
Void
>
saveUnionEnterprise
(
Integer
ownEnterpriseId
,
Integer
unionEnterpriseId
)
{
...
...
@@ -96,6 +99,12 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
}
else
{
}
ResourceGroupDTO
resourceGroupDTO
=
resourceResponse
.
getResult
();
//门店通知
if
(
resourceGroupDTO
.
getStoreResource
()
!=
null
)
{
storeAuthorizationApiService
.
authStore
(
resourceGroupDTO
.
getStoreResource
().
intValue
(),
dto
.
getUnionEnterpriseId
(),
dto
.
getOwnEnterpriseId
());
}
UnionEnterpriseAuthDTO
data
=
EntityUtil
.
changeEntityNew
(
UnionEnterpriseAuthDTO
.
class
,
dto
);
data
.
setUnionEnterpriseAuthId
(
old
.
getUnionEnterpriseAuthId
());
unionEnterpriseAuthService
.
update
(
data
);
...
...
@@ -130,6 +139,7 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
//todo 重新授权
//门店资源
String
authKey
=
detail
.
getAuthKey
();
storeAuthorizationApiService
.
reAuthStore
(
authKey
);
//日志
unionEnterpriseAuthResLogService
.
saveUnionEnterpriseAuthResLog
(
old
.
getUnionEnterpriseAuthId
(),
...
...
@@ -223,7 +233,7 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
public
ServiceResponse
<
Void
>
saveOrUpdateUnionEnterpriseAuthApp
(
@Valid
UnionEnterpriseAuthAppDTO
dto
)
{
List
<
TabSysUnionEnterpriseAuthApp
>
appList
=
unionEnterpriseAuthAppService
.
listUnionEnterpriseAuthApp
(
dto
.
getUnionEnterpriseAuthId
());
Set
<
String
>
appIdSet
=
new
HashSet
<>();
if
(
CollectionUtils
.
isNotEmpty
(
app
IdSe
t
))
{
if
(
CollectionUtils
.
isNotEmpty
(
app
Lis
t
))
{
appList
.
forEach
(
e
->
{
String
[]
appIdArr
=
e
.
getAppId
().
split
(
","
);
for
(
String
appId
:
appIdArr
)
{
...
...
@@ -304,6 +314,8 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
if
(
sdf
.
format
(
calendar
.
getTime
()).
compareTo
(
sdf
.
format
(
new
Date
()))
>=
0
)
{
if
(
UnionEnterpriseAuthStatusEnum
.
TO_DO_RELIEVE
.
getCode
().
equals
(
temp
.
getStatusFlag
()))
{
//todo 发通知
//门店解除
storeAuthorizationApiService
.
cancelStoreAll
(
temp
.
getUnionEnterpriseId
(),
temp
.
getOwnEnterpriseId
());
}
}
}
...
...
gic-platform-enterprise-service/src/main/resources/dubbo-gic-platform-enterprise-service.xml
View file @
fb6abff7
...
...
@@ -153,4 +153,5 @@
<dubbo:reference
interface=
"com.gic.cloud.service.IndexDescApiService"
id=
"indexDescApiService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.member.tag.api.service.SceneCrowdGroupApiService"
id=
"sceneCrowdGroupApiService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.store.service.StoreWidgetApiService"
id=
"storeWidgetApiService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.store.service.StoreAuthorizationApiService"
id=
"storeAuthorizationApiService"
timeout=
"6000"
/>
</beans>
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/union/UnionEnterpriseAuthController.java
View file @
fb6abff7
...
...
@@ -642,6 +642,7 @@ public class UnionEnterpriseAuthController {
vo
.
setServiceArea
(
UserAeaUtils
.
getUserArea
(
CuTypeEnum
.
SCU
.
getType
(),
areaMap
,
authDataArr
));
}
result
.
add
(
vo
);
}
return
RestResponse
.
success
(
result
);
}
...
...
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