Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fit-finance
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fitness-server
fit-finance
Commits
32fc9fbe
Commit
32fc9fbe
authored
Apr 25, 2024
by
程裕兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:save rule
parent
84fe0f3f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/StudioMerchantServiceImpl.java
+7
-1
No files found.
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/StudioMerchantServiceImpl.java
View file @
32fc9fbe
...
@@ -277,11 +277,17 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
...
@@ -277,11 +277,17 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
@Override
@Override
public
List
<
String
>
checkUnbind
(
Long
studioId
)
{
public
List
<
String
>
checkUnbind
(
Long
studioId
)
{
List
<
PartyToMerchant
>
relation
=
partyToMerchantRpService
.
listByParty
(
studioId
,
PartyTypeEnum
.
STUDIO
,
config
.
getCashier
());
List
<
PartyToMerchant
>
relation
=
partyToMerchantRpService
.
listByParty
(
studioId
,
PartyTypeEnum
.
STUDIO
,
config
.
getCashier
());
if
(
CollectionUtil
.
isEmpty
(
relation
))
{
if
(
CollectionUtil
.
isEmpty
(
relation
))
{
return
Lists
.
newArrayList
();
return
Lists
.
newArrayList
();
}
}
Long
merchantId
=
relation
.
stream
().
findFirst
().
orElse
(
new
PartyToMerchant
()).
getMerchantId
();
Long
merchantId
=
relation
.
stream
().
findFirst
().
orElse
(
new
PartyToMerchant
()).
getMerchantId
();
StudioMerchantApply
apply
=
studioMerchantApplyRpService
.
getLatestOneSuccessByMerchantId
(
merchantId
);
if
(!
Objects
.
equals
(
studioId
,
Optional
.
ofNullable
(
apply
).
map
(
StudioMerchantApply:
:
getStudioId
).
orElse
(
null
)))
{
return
Lists
.
newArrayList
();
}
List
<
PartyToMerchant
>
merchants
=
partyToMerchantRpService
.
listByMerchantIdAndPartyType
(
merchantId
,
List
<
PartyToMerchant
>
merchants
=
partyToMerchantRpService
.
listByMerchantIdAndPartyType
(
merchantId
,
PartyTypeEnum
.
STUDIO
);
PartyTypeEnum
.
STUDIO
);
if
(
CollectionUtil
.
isEmpty
(
merchants
))
{
if
(
CollectionUtil
.
isEmpty
(
merchants
))
{
...
...
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