Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
relation
Commits
f471cb97
Commit
f471cb97
authored
Sep 02, 2025
by
wujipeng
Browse files
人与人关系弹框分页-优化
parent
c3d54feb
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/com/platform/service/impl/UserServiceImpl.java
View file @
f471cb97
...
@@ -241,16 +241,16 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme
...
@@ -241,16 +241,16 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme
public
EveryoneVO
relationPage
(
UserDTO
userDTO
)
{
public
EveryoneVO
relationPage
(
UserDTO
userDTO
)
{
EveryoneVO
everyoneVO
=
new
EveryoneVO
();
EveryoneVO
everyoneVO
=
new
EveryoneVO
();
//标题
//标题
everyoneVO
.
setTitle
(
userDTO
.
getUserName
()
+
","
+
userDTO
.
getOther
User
Name
());
everyoneVO
.
setTitle
(
userDTO
.
getUserName
()
+
","
+
userDTO
.
getOtherName
());
//查询关系
//查询关系
List
<
UserRelationEntity
>
userRelation
=
userRelationService
.
bothSides
(
userDTO
.
getUserName
(),
userDTO
.
getOther
User
Name
());
List
<
UserRelationEntity
>
userRelation
=
userRelationService
.
bothSides
(
userDTO
.
getUserName
(),
userDTO
.
getOtherName
());
//指认关系
//指认关系
if
(!
ObjectUtils
.
isEmpty
(
userRelation
))
{
if
(!
ObjectUtils
.
isEmpty
(
userRelation
))
{
everyoneVO
.
setRelation
(
userRelation
);
everyoneVO
.
setRelation
(
userRelation
);
}
}
//查询账户
//查询账户
List
<
String
>
oneselfAccountList
=
userAccountService
.
queryUserAccountList
(
userDTO
.
getUserName
());
List
<
String
>
oneselfAccountList
=
userAccountService
.
queryUserAccountList
(
userDTO
.
getUserName
());
List
<
ExcelDataVO
>
ExcelDataList
=
excelDataService
.
queryOtherAccountList
(
userDTO
.
getOther
User
Name
(),
userDTO
.
getCaseId
());
List
<
ExcelDataVO
>
ExcelDataList
=
excelDataService
.
queryOtherAccountList
(
userDTO
.
getOtherName
(),
userDTO
.
getCaseId
());
Set
<
String
>
otherAccountSet
=
new
HashSet
<>();
Set
<
String
>
otherAccountSet
=
new
HashSet
<>();
for
(
ExcelDataVO
excelDataVO
:
ExcelDataList
)
{
for
(
ExcelDataVO
excelDataVO
:
ExcelDataList
)
{
otherAccountSet
.
add
(
excelDataVO
.
getPayAccount
());
otherAccountSet
.
add
(
excelDataVO
.
getPayAccount
());
...
@@ -286,11 +286,11 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme
...
@@ -286,11 +286,11 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme
outTotal
+=
detail
.
getAmount
();
outTotal
+=
detail
.
getAmount
();
}
}
}
}
totalDescription
.
add
(
userDTO
.
getUserName
()
+
"向"
+
userDTO
.
getOther
User
Name
()
+
"转账"
+
outCount
+
"次,合计"
+
outTotal
+
"元;"
);
totalDescription
.
add
(
userDTO
.
getUserName
()
+
"向"
+
userDTO
.
getOtherName
()
+
"转账"
+
outCount
+
"次,合计"
+
outTotal
+
"元;"
);
totalDescription
.
add
(
userDTO
.
getOther
User
Name
()
+
"向"
+
userDTO
.
getUserName
()
+
"转账"
+
inCount
+
"次,合计"
+
inTotal
+
"元;"
);
totalDescription
.
add
(
userDTO
.
getOtherName
()
+
"向"
+
userDTO
.
getUserName
()
+
"转账"
+
inCount
+
"次,合计"
+
inTotal
+
"元;"
);
}
else
{
}
else
{
totalDescription
.
add
(
userDTO
.
getUserName
()
+
"向"
+
userDTO
.
getOther
User
Name
()
+
"转账0次,合计0元;"
);
totalDescription
.
add
(
userDTO
.
getUserName
()
+
"向"
+
userDTO
.
getOtherName
()
+
"转账0次,合计0元;"
);
totalDescription
.
add
(
userDTO
.
getOther
User
Name
()
+
"向"
+
userDTO
.
getUserName
()
+
"转账0次,合计0元;"
);
totalDescription
.
add
(
userDTO
.
getOtherName
()
+
"向"
+
userDTO
.
getUserName
()
+
"转账0次,合计0元;"
);
}
}
everyoneVO
.
setTotalDescription
(
totalDescription
);
everyoneVO
.
setTotalDescription
(
totalDescription
);
return
everyoneVO
;
return
everyoneVO
;
...
...
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