Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
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
e88a10bd
Commit
e88a10bd
authored
Jun 22, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VO调整
parent
2fb6df10
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
62 additions
and
16 deletions
+62
-16
TCheckIdCardController.java
...loud/plus/v1/check/controller/TCheckIdCardController.java
+15
-0
TCheckIdCardService.java
...yifu/cloud/plus/v1/check/service/TCheckIdCardService.java
+1
-0
TCheckBankNoServiceImpl.java
...d/plus/v1/check/service/impl/TCheckBankNoServiceImpl.java
+14
-12
TCheckIdCardServiceImpl.java
...d/plus/v1/check/service/impl/TCheckIdCardServiceImpl.java
+24
-1
TCheckMobileServiceImpl.java
...d/plus/v1/check/service/impl/TCheckMobileServiceImpl.java
+1
-1
CommonConstants.java
...ud.plus.v1/yifu/common/core/constant/CommonConstants.java
+7
-2
No files found.
yifu-check/yifu-check-biz/src/main/java/com/yifu/cloud/plus/v1/check/controller/TCheckIdCardController.java
View file @
e88a10bd
...
...
@@ -147,4 +147,19 @@ public class TCheckIdCardController {
public
R
<
List
<
TCheckIdCard
>>
checkIdCardInner
(
@RequestBody
List
<
TCheckIdCard
>
checkList
)
{
return
tCheckIdCardService
.
checkIdCard
(
checkList
);
}
/**
* @Author fxj
* @Description 校验姓名身份证 --- 单个
* @Date 16:52 2022/6/22
* @Param
* @return
**/
@Operation
(
description
=
"校验姓名身份证 --- 单个"
)
@SysLog
(
"校验姓名身份证 --- 单个"
)
//@Inner
@PostMapping
(
"/inner/checkIdCardSingle"
)
public
R
<
TCheckIdCard
>
checkIdCardSingle
(
String
idCard
,
String
name
)
{
return
tCheckIdCardService
.
checkIdCardSingle
(
idCard
,
name
);
}
}
yifu-check/yifu-check-biz/src/main/java/com/yifu/cloud/plus/v1/check/service/TCheckIdCardService.java
View file @
e88a10bd
...
...
@@ -45,4 +45,5 @@ public interface TCheckIdCardService extends IService<TCheckIdCard> {
**/
R
<
List
<
TCheckIdCard
>>
checkIdCard
(
List
<
TCheckIdCard
>
checkList
);
R
<
TCheckIdCard
>
checkIdCardSingle
(
String
idCard
,
String
name
);
}
yifu-check/yifu-check-biz/src/main/java/com/yifu/cloud/plus/v1/check/service/impl/TCheckBankNoServiceImpl.java
View file @
e88a10bd
...
...
@@ -48,18 +48,20 @@ public class TCheckBankNoServiceImpl extends ServiceImpl<TCheckBankNoMapper, TCh
if
(
Common
.
isEmpty
(
name
)
||
Common
.
isEmpty
(
idNum
)
||
Common
.
isEmpty
(
cardNo
)){
return
R
.
failed
(
MsgUtils
.
getMessage
(
ErrorCodes
.
CHECKS_BANK_NO_REQUEST_PARAM_ERROR
));
}
TCheckBankNo
checkBankNo
=
baseMapper
.
selectOne
(
Wrappers
.<
TCheckBankNo
>
query
().
lambda
()
.
eq
(
TCheckBankNo:
:
getBankNo
,
cardNo
)
.
eq
(
TCheckBankNo:
:
getName
,
name
)
.
eq
(
TCheckBankNo:
:
getIdNum
,
idNum
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isNotNull
(
checkBankNo
)){
return
R
.
ok
(
checkBankNo
);
synchronized
(
this
){
TCheckBankNo
checkBankNo
=
baseMapper
.
selectOne
(
Wrappers
.<
TCheckBankNo
>
query
().
lambda
()
.
eq
(
TCheckBankNo:
:
getBankNo
,
cardNo
)
.
eq
(
TCheckBankNo:
:
getName
,
name
)
.
eq
(
TCheckBankNo:
:
getIdNum
,
idNum
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isNotNull
(
checkBankNo
)){
return
R
.
ok
(
checkBankNo
);
}
R
<
TCheckBankNo
>
res
=
ChecksUtil
.
checkBankNo
(
name
,
idNum
,
cardNo
,
mobile
,
canCheckService
.
getCanCheck
());
if
(
Common
.
isNotNull
(
res
)
&&
Common
.
isNotNull
(
res
.
getData
())){
baseMapper
.
insert
(
res
.
getData
());
}
return
res
;
}
R
<
TCheckBankNo
>
res
=
ChecksUtil
.
checkBankNo
(
name
,
idNum
,
cardNo
,
mobile
,
canCheckService
.
getCanCheck
());
if
(
Common
.
isNotNull
(
res
)
&&
Common
.
isNotNull
(
res
.
getData
())){
baseMapper
.
insert
(
res
.
getData
());
}
return
res
;
}
}
yifu-check/yifu-check-biz/src/main/java/com/yifu/cloud/plus/v1/check/service/impl/TCheckIdCardServiceImpl.java
View file @
e88a10bd
package
com
.
yifu
.
cloud
.
plus
.
v1
.
check
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.check.entity.TCheckApiNum
;
...
...
@@ -189,7 +190,7 @@ public class TCheckIdCardServiceImpl extends ServiceImpl<TCheckIdCardMapper, TCh
return
R
.
failed
(
"数据为空!"
);
}
/**
/**
* @param content
* @Description: 判断身份证格式:18位数字,17位数字+X,15位数字,14位数字+X
* 格式正确返回true
...
...
@@ -224,4 +225,26 @@ public class TCheckIdCardServiceImpl extends ServiceImpl<TCheckIdCardMapper, TCh
return
flag
;
}
@Override
public
R
<
TCheckIdCard
>
checkIdCardSingle
(
String
idCard
,
String
name
)
{
if
(
Common
.
isEmpty
(
idCard
)
||
Common
.
isEmpty
(
name
)){
return
R
.
failed
(
CommonConstants
.
PARAM_IS_NOT_EMPTY
);
}
synchronized
(
this
){
TCheckIdCard
checkIdCard
=
baseMapper
.
selectOne
(
Wrappers
.<
TCheckIdCard
>
query
().
lambda
()
.
eq
(
TCheckIdCard:
:
getIdCard
,
idCard
)
.
eq
(
TCheckIdCard:
:
getIsTrue
,
CommonConstants
.
ONE_STRING
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isNotNull
(
checkIdCard
)){
return
R
.
ok
(
checkIdCard
);
}
TCheckIdCard
c
=
new
TCheckIdCard
();
c
.
setIdCard
(
idCard
);
c
.
setName
(
name
);
ChecksUtil
.
checkIdCard
(
c
,
canCheckService
.
getCanCheck
());
baseMapper
.
insert
(
c
);
return
R
.
ok
(
c
);
}
}
}
yifu-check/yifu-check-biz/src/main/java/com/yifu/cloud/plus/v1/check/service/impl/TCheckMobileServiceImpl.java
View file @
e88a10bd
...
...
@@ -54,7 +54,7 @@ public class TCheckMobileServiceImpl extends ServiceImpl<TCheckMobileMapper, TCh
* @Date 19:18 2022/6/20
**/
@Override
public
R
<
Map
<
String
,
TCheckMobile
>>
checkMobiles
(
String
mobiles
){
public
synchronized
R
<
Map
<
String
,
TCheckMobile
>>
checkMobiles
(
String
mobiles
){
R
<
Map
<
String
,
TCheckMobile
>>
mobileMapR
=
null
;
Map
<
String
,
TCheckMobile
>
checkMobileMap
=
null
;
Map
<
String
,
TCheckMobile
>
existMap
=
new
HashMap
<>();
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/constant/CommonConstants.java
View file @
e88a10bd
...
...
@@ -216,8 +216,10 @@ public interface CommonConstants {
* @Author pwang
* @Date 2020-05-14 14:10
**/
public
static
final
int
EMPLOYEE_INIT_NO_START
=
7
;
int
EMPLOYEE_INIT_NO_START
=
7
;
String
SAVE_FAILED
=
"保存失败!"
;
String
RESULT_EMPTY
=
"获取结果为空"
;
/**
...
...
@@ -225,6 +227,9 @@ public interface CommonConstants {
* @Date 2020-03-12 14:48
* @return
**/
public
static
final
String
RESULT_DATA_FAIL
=
"操作失败"
;
String
RESULT_DATA_FAIL
=
"操作失败"
;
String
SAVE_SUCCESS
=
"保存成功!"
;
String
PARAM_IS_NOT_EMPTY
=
"参数不可为空"
;
}
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