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
b7bf1879
Commit
b7bf1879
authored
Aug 04, 2025
by
zhuxiang
Browse files
优化节点类型
parent
8eedeb12
Changes
4
Show whitespace changes
Inline
Side-by-side
src/main/java/com/platform/model/vo/EdgeVO.java
View file @
b7bf1879
...
...
@@ -11,12 +11,8 @@ public class EdgeVO {
private
String
source
;
private
String
sourceType
;
private
String
target
;
private
String
targetType
;
private
String
relation
;
// 总汇款笔数
private
int
totalTransactions
;
...
...
@@ -34,13 +30,7 @@ public class EdgeVO {
public
EdgeVO
(
String
source
,
String
target
,
int
totalTransactions
,
double
totalAmount
,
String
groupId
,
String
ip
,
String
mac
,
String
account
)
{
this
.
source
=
source
;
this
.
sourceType
=
"个人"
;
this
.
target
=
target
;
if
(
target
.
contains
(
"公司"
))
{
this
.
targetType
=
"银联"
;
}
else
{
this
.
targetType
=
"个人"
;
}
this
.
totalTransactions
=
totalTransactions
;
this
.
totalAmount
=
totalAmount
;
this
.
groupId
=
groupId
;
...
...
@@ -52,13 +42,7 @@ public class EdgeVO {
public
EdgeVO
(
String
id
,
String
source
,
String
target
,
int
totalTransactions
,
double
totalAmount
)
{
this
.
id
=
id
;
this
.
source
=
source
;
this
.
sourceType
=
"个人"
;
this
.
target
=
target
;
if
(
target
.
contains
(
"公司"
))
{
this
.
targetType
=
"银联"
;
}
else
{
this
.
targetType
=
"个人"
;
}
this
.
totalTransactions
=
totalTransactions
;
this
.
totalAmount
=
totalAmount
;
}
...
...
src/main/java/com/platform/model/vo/NodeVO.java
View file @
b7bf1879
...
...
@@ -19,6 +19,11 @@ public class NodeVO {
public
NodeVO
(
String
node
)
{
this
.
node
=
node
;
if
(
node
.
contains
(
"公司"
)
||
node
.
length
()
>
4
)
{
this
.
nodeType
=
"对公"
;
}
else
{
this
.
nodeType
=
"个人"
;
}
}
// 添加无参构造方法
...
...
src/main/java/com/platform/service/impl/UserRelationServiceImpl.java
View file @
b7bf1879
package
com.platform.service.impl
;
import
cn.hutool.core.collection.CollUtil
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.google.common.collect.Lists
;
import
com.platform.mapper.UserRelationMapper
;
import
com.platform.model.entity.UserRelationEntity
;
import
com.platform.service.UserRelationService
;
...
...
@@ -18,6 +20,9 @@ import java.util.List;
public
class
UserRelationServiceImpl
extends
ServiceImpl
<
UserRelationMapper
,
UserRelationEntity
>
implements
UserRelationService
{
@Override
public
List
<
UserRelationEntity
>
queryListByUserNameList
(
int
caseId
,
List
<
String
>
nodeList
)
{
return
baseMapper
.
queryListByUserNameList
(
caseId
,
nodeList
);
if
(
CollUtil
.
isEmpty
(
nodeList
))
{
return
Lists
.
newArrayList
();
}
return
baseMapper
.
queryListByUserNameList
(
caseId
,
nodeList
);
}
}
src/main/resources/com/platform/mapper/ExcelDataMapper.xml
View file @
b7bf1879
...
...
@@ -18,7 +18,7 @@
ed.file_id = fu.id
<where>
<if
test=
"id != null and id != ''"
>
and ed.id = #{id}
and ed.
case_
id = #{id}
</if>
<if
test=
"payUserName != null and payUserName != ''"
>
and (ed.pay_user_name like concat('%',#{payUserName},'%') or fu.file_name like concat('%',#{fileName},'%')
...
...
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