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
9c52c47a
Commit
9c52c47a
authored
Aug 05, 2025
by
wujipeng
Browse files
Merge remote-tracking branch 'origin/dev' into dev
parents
cc8b1308
70d1ca13
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/platform/controller/CaseRuleConfigController.java
0 → 100644
View file @
9c52c47a
package
com.platform.controller
;
import
com.platform.model.entity.CaseRuleConfigEntity
;
import
com.platform.model.resp.Result
;
import
com.platform.service.CaseRuleConfigService
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
@RestController
@RequestMapping
(
"/case/rule"
)
public
class
CaseRuleConfigController
extends
BaseController
{
@Resource
private
CaseRuleConfigService
caseRuleConfigService
;
@PostMapping
(
"/saveOrUpdate"
)
public
Result
saveOrUpdate
(
@RequestBody
CaseRuleConfigEntity
caseRuleConfigEntity
)
{
return
toAjax
(
caseRuleConfigService
.
saveOrUpdate
(
caseRuleConfigEntity
));
}
@GetMapping
(
"/data/{caseId}"
)
public
Result
data
(
@PathVariable
String
caseId
)
{
return
Result
.
data
(
caseRuleConfigService
.
getByCaseId
(
caseId
));
}
}
src/main/java/com/platform/mapper/CaseRuleConfigMapper.java
0 → 100644
View file @
9c52c47a
package
com.platform.mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.platform.model.entity.CaseRuleConfigEntity
;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
CaseRuleConfigMapper
extends
BaseMapper
<
CaseRuleConfigEntity
>
{
}
src/main/java/com/platform/model/entity/CaseRuleConfigEntity.java
0 → 100644
View file @
9c52c47a
package
com.platform.model.entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
java.util.Date
;
@Data
@TableName
(
"case_rule_config"
)
public
class
CaseRuleConfigEntity
{
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
int
id
;
private
int
caseId
;
private
boolean
directionFlag
;
private
double
minAmount
;
private
double
maxAmount
;
private
int
minTransaction
;
private
int
maxTransaction
;
private
Date
startTime
;
private
Date
endTime
;
private
String
principal
;
private
boolean
whiteFlag
;
}
src/main/java/com/platform/model/vo/NodeVO.java
View file @
9c52c47a
...
...
@@ -19,7 +19,7 @@ public class NodeVO {
public
NodeVO
(
String
node
)
{
this
.
node
=
node
;
if
(
node
.
contains
(
"公司"
)
||
node
.
length
()
>
4
)
{
if
(
node
.
contains
(
"公司"
))
{
this
.
nodeType
=
"对公"
;
}
else
{
this
.
nodeType
=
"个人"
;
...
...
src/main/java/com/platform/service/CaseRuleConfigService.java
0 → 100644
View file @
9c52c47a
package
com.platform.service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.platform.model.entity.CaseRuleConfigEntity
;
public
interface
CaseRuleConfigService
extends
IService
<
CaseRuleConfigEntity
>
{
CaseRuleConfigEntity
getByCaseId
(
String
caseId
);
}
src/main/java/com/platform/service/impl/CaseRuleServiceImpl.java
0 → 100644
View file @
9c52c47a
package
com.platform.service.impl
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.platform.mapper.CaseRuleConfigMapper
;
import
com.platform.model.entity.CaseRuleConfigEntity
;
import
com.platform.service.CaseRuleConfigService
;
import
org.springframework.stereotype.Service
;
@Service
public
class
CaseRuleServiceImpl
extends
ServiceImpl
<
CaseRuleConfigMapper
,
CaseRuleConfigEntity
>
implements
CaseRuleConfigService
{
@Override
public
CaseRuleConfigEntity
getByCaseId
(
String
caseId
)
{
return
baseMapper
.
selectOne
(
new
LambdaQueryWrapper
<
CaseRuleConfigEntity
>()
.
eq
(
CaseRuleConfigEntity:
:
getCaseId
,
caseId
));
}
}
src/main/java/com/platform/service/impl/CaseServiceImpl.java
View file @
9c52c47a
...
...
@@ -419,7 +419,7 @@ public class CaseServiceImpl extends ServiceImpl<CaseMapper, CasesEntity> implem
//获取节点数量
int
nodeNum
=
nodeDegreeMap
.
get
(
excelDataVO
.
getPayUserName
());
excelDataVO
.
setNodeNum
(
nodeNum
);
if
(
StringUtils
.
isNotEmpty
(
excelDataVO
.
getExternalChannel
()
))
{
if
(
excelDataVO
.
getPayeeName
().
contains
(
"公司"
))
{
excelDataVO
.
setAccountType
(
"银联"
);
}
else
{
excelDataVO
.
setAccountType
(
"个人"
);
...
...
@@ -449,7 +449,7 @@ public class CaseServiceImpl extends ServiceImpl<CaseMapper, CasesEntity> implem
result
.
add
(
person
);
NodeVO
org
=
new
NodeVO
();
if
(
StringUtils
.
isNotBlank
(
excelDataVO
.
getPayeeName
())
&&
excelDataVO
.
getPayeeName
().
contains
(
"公司"
))
{
if
(
excelDataVO
.
getPayeeName
().
contains
(
"公司"
))
{
org
.
setNode
(
excelDataVO
.
getPayeeName
());
org
.
setNodeNum
(
excelDataVO
.
getNodeNum
());
org
.
setBankCode
(
excelDataVO
.
getPayeeBankCard
());
...
...
@@ -468,10 +468,10 @@ public class CaseServiceImpl extends ServiceImpl<CaseMapper, CasesEntity> implem
if
(
caseDTO
.
getPrincipal
()
==
1
)
{
// 过滤掉收款人名称中带有公司的数据
return
!(
node
.
contains
(
"公司"
)
||
node
.
length
()
>
4
);
return
!(
node
.
contains
(
"公司"
));
}
else
{
// 过滤掉收款人名称中不含公司的数据
return
node
.
contains
(
"公司"
)
||
node
.
length
()
>
4
;
return
node
.
contains
(
"公司"
);
}
}
...
...
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