Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Y
yifu-mvp
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
c7d2638e
You need to sign in or sign up before continuing.
Commit
c7d2638e
authored
Jan 13, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.4-salary代发户3次上传代码-加上校验银行卡
parent
ca10ff2c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
0 deletions
+48
-0
TCheckBankNoController.java
...loud/plus/v1/check/controller/TCheckBankNoController.java
+14
-0
TCheckBankNoService.java
...yifu/cloud/plus/v1/check/service/TCheckBankNoService.java
+9
-0
TCheckBankNoServiceImpl.java
...d/plus/v1/check/service/impl/TCheckBankNoServiceImpl.java
+25
-0
No files found.
yifu-check/yifu-check-biz/src/main/java/com/yifu/cloud/plus/v1/check/controller/TCheckBankNoController.java
View file @
c7d2638e
...
...
@@ -121,4 +121,18 @@ public class TCheckBankNoController {
public
CheckBankNoVo
checkBankNoInner
(
@RequestBody
TCheckBankNo
checkBankNo
)
{
return
tCheckBankNoService
.
checkBankNoTwo
(
checkBankNo
.
getName
(),
checkBankNo
.
getBankNo
());
}
/**
* @Description: 代发户调用银行卡校验--如果其他接口也要调用,加上信息
* @Author: hgw
* @Date: 2023/1/13 9:41
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<com.yifu.cloud.plus.v1.check.entity.TCheckBankNo>
**/
@Operation
(
description
=
"调用银行卡校验"
)
@SysLog
(
"调用银行卡校验"
)
@PostMapping
(
"/checkBankNo"
)
public
R
<
TCheckBankNo
>
checkBankNo
(
@RequestParam
String
name
,
@RequestParam
String
bankNo
)
{
return
tCheckBankNoService
.
checkBankNo
(
name
,
bankNo
);
}
}
yifu-check/yifu-check-biz/src/main/java/com/yifu/cloud/plus/v1/check/service/TCheckBankNoService.java
View file @
c7d2638e
...
...
@@ -20,6 +20,7 @@ package com.yifu.cloud.plus.v1.check.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.check.entity.TCheckBankNo
;
import
com.yifu.cloud.plus.v1.check.vo.CheckBankNoVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
/**
* 银行卡卡号 校验
...
...
@@ -29,5 +30,13 @@ import com.yifu.cloud.plus.v1.check.vo.CheckBankNoVo;
*/
public
interface
TCheckBankNoService
extends
IService
<
TCheckBankNo
>
{
/**
* @Description: 代发户调用银行卡校验
* @Author: hgw
* @Date: 2023/1/13 9:39
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<com.yifu.cloud.plus.v1.check.entity.TCheckBankNo>
**/
R
<
TCheckBankNo
>
checkBankNo
(
String
name
,
String
cardNo
);
CheckBankNoVo
checkBankNoTwo
(
String
name
,
String
cardNo
);
}
yifu-check/yifu-check-biz/src/main/java/com/yifu/cloud/plus/v1/check/service/impl/TCheckBankNoServiceImpl.java
View file @
c7d2638e
...
...
@@ -44,6 +44,31 @@ public class TCheckBankNoServiceImpl extends ServiceImpl<TCheckBankNoMapper, TCh
private
final
TCanCheckService
canCheckService
;
@Override
public
R
<
TCheckBankNo
>
checkBankNo
(
String
name
,
String
cardNo
)
{
if
(
Common
.
isEmpty
(
name
)
||
Common
.
isEmpty
(
cardNo
)){
R
.
failed
(
MsgUtils
.
getMessage
(
ErrorCodes
.
CHECKS_BANK_NO_REQUEST_PARAM_ERROR
));
}
synchronized
(
this
){
TCheckBankNo
checkBankNo
=
baseMapper
.
selectOne
(
Wrappers
.<
TCheckBankNo
>
query
().
lambda
()
.
eq
(
TCheckBankNo:
:
getBankNo
,
cardNo
)
.
eq
(
TCheckBankNo:
:
getName
,
name
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isNotNull
(
checkBankNo
)){
if
(
"01"
.
equals
(
checkBankNo
.
getResult
()))
{
R
.
ok
(
checkBankNo
);
}
else
{
R
.
failed
(
checkBankNo
);
}
}
R
<
TCheckBankNo
>
resR
=
ChecksUtil
.
checkBankNoTwo
(
name
,
cardNo
,
canCheckService
.
getCanCheck
());
if
(
Common
.
isNotNull
(
resR
)
&&
Common
.
isNotNull
(
resR
.
getData
())){
baseMapper
.
insert
(
resR
.
getData
());
}
return
resR
;
}
}
@Override
public
CheckBankNoVo
checkBankNoTwo
(
String
name
,
String
cardNo
)
{
CheckBankNoVo
vo
=
new
CheckBankNoVo
();
...
...
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