记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
ef6398de
Commit
ef6398de
authored
Nov 16, 2021
by
Tice
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
691aafc9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
9 deletions
+45
-9
MerchantFieldAppliesController.java
...ler/zhengzai/merchant/MerchantFieldAppliesController.java
+1
-1
MerchantSponsorAppliesController.java
...r/zhengzai/merchant/MerchantSponsorAppliesController.java
+1
-1
MerchantAuthorizationRecordsAdminServiceImpl.java
...ce/impl/MerchantAuthorizationRecordsAdminServiceImpl.java
+43
-7
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/merchant/MerchantFieldAppliesController.java
View file @
ef6398de
...
...
@@ -67,7 +67,7 @@ public class MerchantFieldAppliesController extends BaseController {
MerchantFieldApplies
fieldApplies
=
merchantFieldAppliesAdminService
.
getOne
(
fieldAppliesLambdaQueryWrapper
);
mmap
.
put
(
"fieldApplyInfo"
,
fieldApplies
);
return
prefix
+
"/
details
"
;
return
prefix
+
"/
applyDetail
"
;
}
@ApiOperation
(
value
=
"审核通过"
)
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/merchant/MerchantSponsorAppliesController.java
View file @
ef6398de
...
...
@@ -63,7 +63,7 @@ public class MerchantSponsorAppliesController extends BaseController {
MerchantSponsorApplies
sponsorApplies
=
merchantSponsorAppliesAdminService
.
getOne
(
sponsorAppliesLambdaQueryWrapper
);
mmap
.
put
(
"sponsorApplyInfo"
,
sponsorApplies
);
return
prefix
+
"/
details
"
;
return
prefix
+
"/
applyDetail
"
;
}
@ApiOperation
(
value
=
"审核通过"
)
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/merchant/service/impl/MerchantAuthorizationRecordsAdminServiceImpl.java
View file @
ef6398de
...
...
@@ -68,6 +68,7 @@ public class MerchantAuthorizationRecordsAdminServiceImpl extends ServiceImpl<Me
}
}
// 授权场地方
...
...
@@ -86,9 +87,7 @@ public class MerchantAuthorizationRecordsAdminServiceImpl extends ServiceImpl<Me
// 是否已存在权限
if
(
null
!=
authorizationRecords
)
{
// 已存在权限
if
(
authorizationRecords
.
getUid
().
equals
(
fieldsVo
.
getUid
()))
{
if
(
1
==
fieldsVo
.
getClaimStatus
()
&&
authorizationRecords
.
getUid
().
equals
(
fieldsVo
.
getUid
()))
{
// 前后 场地方一致 不处理
return
true
;
}
...
...
@@ -97,6 +96,7 @@ public class MerchantAuthorizationRecordsAdminServiceImpl extends ServiceImpl<Me
authorizationRecords
.
setUpdatedAt
(
now
);
authorizationRecords
.
setDeletedAt
(
now
);
// mysql
LambdaUpdateWrapper
<
MerchantAuthorizationRecords
>
authorizationRecordsLambdaUpdateWrapper
=
Wrappers
.
lambdaUpdate
(
MerchantAuthorizationRecords
.
class
);
authorizationRecordsLambdaUpdateWrapper
.
eq
(
MerchantAuthorizationRecords:
:
getPerformanceId
,
performanceId
)
...
...
@@ -114,6 +114,8 @@ public class MerchantAuthorizationRecordsAdminServiceImpl extends ServiceImpl<Me
// todo error
throw
new
LiquidnetServiceException
();
}
// mongo
}
// 是否添加权限
...
...
@@ -185,17 +187,17 @@ public class MerchantAuthorizationRecordsAdminServiceImpl extends ServiceImpl<Me
authorizationPermissionsArrayList
.
add
(
checkerAuthorizationPermissions
);
}
}
saveBatch
(
authorizationRecordsArrayList
);
authorizationPermissionsAdminService
.
saveBatch
(
authorizationPermissionsArrayList
);
}
saveBatch
(
authorizationRecordsArrayList
);
authorizationPermissionsAdminService
.
saveBatch
(
authorizationPermissionsArrayList
);
}
return
true
;
}
// 授权主办方
private
void
performanceSponsor
(
String
performanceId
,
String
cuid
,
String
sponsorId
)
{
private
boolean
performanceSponsor
(
String
performanceId
,
String
cuid
,
String
sponsorId
)
{
LocalDateTime
now
=
LocalDateTime
.
now
();
// 查询已有权限
...
...
@@ -208,6 +210,40 @@ public class MerchantAuthorizationRecordsAdminServiceImpl extends ServiceImpl<Me
// 查询主办方
MerchantSponsorsVo
sponsorsVo
=
merchantRedisUtil
.
getSponsorsVoBySponsorId
(
sponsorId
);
// 是否已存在权限
if
(
null
!=
authorizationRecords
)
{
if
(
authorizationRecords
.
getUid
().
equals
(
sponsorsVo
.
getUid
()))
{
// 前后 主办方一致 不处理
return
true
;
}
// 前后 主办方不一致 删除旧权限 及 我的授权
authorizationRecords
.
setUpdatedAt
(
now
);
authorizationRecords
.
setDeletedAt
(
now
);
// mysql
LambdaUpdateWrapper
<
MerchantAuthorizationRecords
>
authorizationRecordsLambdaUpdateWrapper
=
Wrappers
.
lambdaUpdate
(
MerchantAuthorizationRecords
.
class
);
authorizationRecordsLambdaUpdateWrapper
.
eq
(
MerchantAuthorizationRecords:
:
getPerformanceId
,
performanceId
)
.
eq
(
MerchantAuthorizationRecords:
:
getDeletedAt
,
null
);
authorizationRecordsLambdaUpdateWrapper
.
and
(
wrapper
->
wrapper
.
eq
(
MerchantAuthorizationRecords:
:
getAuthorizationRecordId
,
authorizationRecords
.
getAuthorizationRecordId
())
.
or
(
wrapper1
->
wrapper1
.
eq
(
MerchantAuthorizationRecords:
:
getCuid
,
authorizationRecords
.
getUid
())
.
eq
(
MerchantAuthorizationRecords:
:
getCuidRole
,
"sponsor"
))
);
authorizationRecordsLambdaUpdateWrapper
.
set
(
MerchantAuthorizationRecords:
:
getUpdatedAt
,
authorizationRecords
.
getUpdatedAt
());
authorizationRecordsLambdaUpdateWrapper
.
set
(
MerchantAuthorizationRecords:
:
getDeletedAt
,
authorizationRecords
.
getDeletedAt
());
boolean
success
=
update
(
authorizationRecordsLambdaUpdateWrapper
);
if
(!
success
)
{
// todo error
throw
new
LiquidnetServiceException
();
}
// mongo
}
return
false
;
}
}
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