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
14318d30
You need to sign in or sign up before continuing.
Commit
14318d30
authored
Jul 12, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
银行卡校验
parent
d9542189
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
98 additions
and
40 deletions
+98
-40
TEmpBadRecord.java
...ifu/cloud/plus/v1/yifu/archives/entity/TEmpBadRecord.java
+6
-0
TEmpDisabilityInfo.java
...loud/plus/v1/yifu/archives/entity/TEmpDisabilityInfo.java
+6
-0
TEmpEducation.java
...ifu/cloud/plus/v1/yifu/archives/entity/TEmpEducation.java
+6
-0
TEmpFamily.java
...m/yifu/cloud/plus/v1/yifu/archives/entity/TEmpFamily.java
+6
-0
TEmpProfessionalQualification.java
...1/yifu/archives/entity/TEmpProfessionalQualification.java
+6
-0
TEmpWorkRecording.java
...cloud/plus/v1/yifu/archives/entity/TEmpWorkRecording.java
+6
-0
TEmployeeProjectServiceImpl.java
...fu/archives/service/impl/TEmployeeProjectServiceImpl.java
+9
-5
TEmpBadRecordMapper.xml
...ves-biz/src/main/resources/mapper/TEmpBadRecordMapper.xml
+1
-0
TEmpDisabilityInfoMapper.xml
...iz/src/main/resources/mapper/TEmpDisabilityInfoMapper.xml
+1
-0
TEmpEducationMapper.xml
...ves-biz/src/main/resources/mapper/TEmpEducationMapper.xml
+1
-0
TEmpFamilyMapper.xml
...chives-biz/src/main/resources/mapper/TEmpFamilyMapper.xml
+2
-1
TEmpProfessionalQualification.xml
...c/main/resources/mapper/TEmpProfessionalQualification.xml
+1
-0
TEmpWorkRecordingMapper.xml
...biz/src/main/resources/mapper/TEmpWorkRecordingMapper.xml
+1
-0
TCheckBankNo.java
...ava/com/yifu/cloud/plus/v1/check/entity/TCheckBankNo.java
+8
-0
CheckBankNoVo.java
...n/java/com/yifu/cloud/plus/v1/check/vo/CheckBankNoVo.java
+19
-0
TCheckBankNoController.java
...loud/plus/v1/check/controller/TCheckBankNoController.java
+4
-26
TCheckBankNoService.java
...yifu/cloud/plus/v1/check/service/TCheckBankNoService.java
+2
-1
TCheckBankNoServiceImpl.java
...d/plus/v1/check/service/impl/TCheckBankNoServiceImpl.java
+13
-7
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmpBadRecord.java
View file @
14318d30
...
...
@@ -127,6 +127,12 @@ public class TEmpBadRecord extends BaseEntity {
@ExcelProperty
(
"其他损失"
)
private
BigDecimal
loseFeeOther
;
/**
* 项目ID
*/
@Schema
(
description
=
"项目ID"
)
private
String
settleDomain
;
/**
* @Author fxj
* @Description 附件ID
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmpDisabilityInfo.java
View file @
14318d30
...
...
@@ -103,6 +103,12 @@ public class TEmpDisabilityInfo extends BaseEntity {
@Schema
(
description
=
"职业病名称"
)
private
String
occupationalDisease
;
/**
* 项目ID
*/
@Schema
(
description
=
"项目ID"
)
private
String
settleDomain
;
/**
* 0删除作废1正常
*/
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmpEducation.java
View file @
14318d30
...
...
@@ -138,6 +138,12 @@ public class TEmpEducation extends BaseEntity {
*/
@Schema
(
description
=
"派单标识 1 代表派单生成, 派单审核通过后清空标识 专门用于派单作废"
)
private
String
dispatchFlag
;
/**
* 项目ID
*/
@Schema
(
description
=
"项目ID"
)
private
String
settleDomain
;
/**
* 证书名称
*/
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmpFamily.java
View file @
14318d30
...
...
@@ -110,4 +110,10 @@ public class TEmpFamily extends BaseEntity {
@Schema
(
description
=
"备注"
)
private
String
remark
;
/**
* 项目ID
*/
@Schema
(
description
=
"项目ID"
)
private
String
settleDomain
;
}
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmpProfessionalQualification.java
View file @
14318d30
...
...
@@ -107,6 +107,12 @@ public class TEmpProfessionalQualification extends BaseEntity {
@Schema
(
description
=
"是否最高资格0是/1否"
)
private
String
heightIdentification
;
/**
* 项目ID
*/
@Schema
(
description
=
"项目ID"
)
private
String
settleDomain
;
/**
* 0删除作废1正常
*/
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmpWorkRecording.java
View file @
14318d30
...
...
@@ -110,6 +110,12 @@ public class TEmpWorkRecording extends BaseEntity {
@Schema
(
description
=
"人员类型"
)
private
String
workingType
;
/**
* 项目ID
*/
@Schema
(
description
=
"项目ID"
)
private
String
settleDomain
;
/**
* 0删除作废1正常
*/
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeProjectServiceImpl.java
View file @
14318d30
...
...
@@ -29,6 +29,7 @@ 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.TCheckBankNo
;
import
com.yifu.cloud.plus.v1.check.vo.CheckBankNoVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.constants.EmployeeConstants
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TCustomerInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeInfo
;
...
...
@@ -176,13 +177,16 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
check
.
setBankNo
(
tEmployeeProject
.
getBankNo
());
check
.
setIdNum
(
tEmployeeProject
.
getEmpIdcard
());
check
.
setName
(
tEmployeeProject
.
getEmpName
());
R
<
TCheckBankN
o
>
checkListR
=
HttpDaprUtil
.
invokeMethodPost
(
daprCheckProperties
.
getAppUrl
(),
daprCheckProperties
.
getAppId
()
,
"/tcheckbankno/inner/checkBankNo"
,
check
,
TCheckBankN
o
.
class
,
SecurityConstants
.
FROM_IN
);
R
<
CheckBankNoV
o
>
checkListR
=
HttpDaprUtil
.
invokeMethodPost
(
daprCheckProperties
.
getAppUrl
(),
daprCheckProperties
.
getAppId
()
,
"/tcheckbankno/inner/checkBankNo"
,
check
,
CheckBankNoV
o
.
class
,
SecurityConstants
.
FROM_IN
);
if
(
checkListR
!=
null
&&
checkListR
.
getData
()
!=
null
)
{
check
=
checkListR
.
getData
();
if
(
check
==
null
||
Common
.
isEmpty
(
check
.
getResult
()))
{
CheckBankNoVo
vo
=
checkListR
.
getData
();
check
=
(
null
==
vo
.
getRes
())?
null
:
vo
.
getRes
().
getData
();
if
(
Common
.
isEmpty
(
vo
))
{
return
R
.
failed
(
EmployeeConstants
.
CHECK_NO_RESPONSE
);
}
else
if
(
check
.
getResult
().
equals
(
CommonConstants
.
ZERO_STRING
))
{
}
else
if
(!
CommonConstants
.
SUCCESS
.
equals
(
vo
.
getRes
().
getCode
()))
{
return
R
.
failed
(
vo
.
getRes
().
getMsg
());
}
else
if
(
Common
.
isEmpty
(
check
)
&&
!
check
.
getResult
().
equals
(
CommonConstants
.
ZERO_STRING
)){
return
R
.
failed
(
check
.
getMessage
());
}
}
else
{
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmpBadRecordMapper.xml
View file @
14318d30
...
...
@@ -34,6 +34,7 @@
<result
property=
"remark"
column=
"REMARK"
/>
<result
property=
"loseFee"
column=
"LOSE_FEE"
/>
<result
property=
"loseFeeOther"
column=
"LOSE_FEE_OTHER"
/>
<result
property=
"settleDomain"
column=
"SETTLE_DOMAIN"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmpDisabilityInfoMapper.xml
View file @
14318d30
...
...
@@ -35,6 +35,7 @@
<result
property=
"startTime"
column=
"START_TIME"
/>
<result
property=
"endTime"
column=
"END_TIME"
/>
<result
property=
"occupationalDisease"
column=
"OCCUPATIONAL_DISEASE"
/>
<result
property=
"settleDomain"
column=
"SETTLE_DOMAIN"
/>
<result
property=
"deleteFlag"
column=
"DELETE_FLAG"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmpEducationMapper.xml
View file @
14318d30
...
...
@@ -39,6 +39,7 @@
<result
property=
"collageSystem"
column=
"COLLAGE_SYSTEM"
/>
<result
property=
"deleteFlag"
column=
"DELETE_FLAG"
/>
<result
property=
"dispatchFlag"
column=
"DISPATCH_FLAG"
/>
<result
property=
"settleDomain"
column=
"SETTLE_DOMAIN"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmpFamilyMapper.xml
View file @
14318d30
...
...
@@ -34,7 +34,8 @@
<result
property=
"birthday"
column=
"BIRTHDAY"
/>
<result
property=
"workUnit"
column=
"WORK_UNIT"
/>
<result
property=
"contractTel"
column=
"CONTRACT_TEL"
/>
<result
property=
"deleteFlag"
column=
"DELETE_FLAG"
/>
<result
property=
"settleDomain"
column=
"SETTLE_DOMAIN"
/>
<result
property=
"deleteFlag"
column=
"DELETE_FLAG"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
<result
property=
"createName"
column=
"CREATE_NAME"
/>
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/
DictValidator
.xml
→
yifu-archives/yifu-archives-biz/src/main/resources/mapper/
TEmpProfessionalQualification
.xml
View file @
14318d30
...
...
@@ -36,6 +36,7 @@
<result
property=
"assessmentUnit"
column=
"ASSESSMENT_UNIT"
/>
<result
property=
"declareYear"
column=
"DECLARE_YEAR"
/>
<result
property=
"heightIdentification"
column=
"HEIGHT_IDENTIFICATION"
/>
<result
property=
"settleDomain"
column=
"SETTLE_DOMAIN"
/>
<result
property=
"deleteFlag"
column=
"DELETE_FLAG"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmpWorkRecordingMapper.xml
View file @
14318d30
...
...
@@ -36,6 +36,7 @@
<result
property=
"endDate"
column=
"END_DATE"
/>
<result
property=
"workingStatus"
column=
"WORKING_STATUS"
/>
<result
property=
"workingType"
column=
"WORKING_TYPE"
/>
<result
property=
"settleDomain"
column=
"SETTLE_DOMAIN"
/>
<result
property=
"deleteFlag"
column=
"DELETE_FLAG"
/>
<result
property=
"createBy"
column=
"CREATE_BY"
/>
<result
property=
"updateBy"
column=
"UPDATE_BY"
/>
...
...
yifu-check/yifu-check-api/src/main/java/com/yifu/cloud/plus/v1/check/entity/TCheckBankNo.java
View file @
14318d30
...
...
@@ -17,6 +17,7 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
check
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
...
...
@@ -110,5 +111,12 @@ public class TCheckBankNo extends BaseEntity {
@Schema
(
description
=
"身份证"
)
private
String
idNum
;
/**
* 手机号码
*/
@TableField
(
exist
=
false
)
@Schema
(
description
=
"手机号码"
)
private
String
mobile
;
}
yifu-check/yifu-check-api/src/main/java/com/yifu/cloud/plus/v1/check/vo/CheckBankNoVo.java
0 → 100644
View file @
14318d30
package
com
.
yifu
.
cloud
.
plus
.
v1
.
check
.
vo
;
import
com.yifu.cloud.plus.v1.check.entity.TCheckBankNo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @Author fxj
* @Date 2022/7/12
* @Description
* @Version 1.0
*/
@Data
public
class
CheckBankNoVo
implements
Serializable
{
private
R
<
TCheckBankNo
>
res
;
}
yifu-check/yifu-check-biz/src/main/java/com/yifu/cloud/plus/v1/check/controller/TCheckBankNoController.java
View file @
14318d30
...
...
@@ -21,6 +21,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.check.entity.TCheckBankNo
;
import
com.yifu.cloud.plus.v1.check.service.TCheckBankNoService
;
import
com.yifu.cloud.plus.v1.check.vo.CheckBankNoVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner
;
...
...
@@ -113,36 +114,13 @@ public class TCheckBankNoController {
/**
* 银行卡号校验
* @param name 姓名 是 [string]
* @param idNum 身份证号码,限单个 是 [string]
* @param cardNo 银行卡号,限单个 是 [string]
* @param mobile 银行预留手机号,仅支持国内11位号码
*/
@Operation
(
description
=
"银行卡号校验"
)
@SysLog
(
"银行卡号校验"
)
@GetMapping
(
"/checkBankNo"
)
public
R
<
TCheckBankNo
>
checkBankNo
(
@RequestParam
(
value
=
"name"
,
required
=
true
)
String
name
,
@RequestParam
(
value
=
"idNum"
,
required
=
true
)
String
idNum
,
@RequestParam
(
value
=
"cardNo"
,
required
=
true
)
String
cardNo
,
@RequestParam
(
value
=
"mobile"
,
required
=
false
)
String
mobile
)
{
return
tCheckBankNoService
.
checkBankNo
(
name
,
idNum
,
cardNo
,
mobile
);
}
/**
* 银行卡号校验
* @param name 姓名 是 [string]
* @param idNum 身份证号码,限单个 是 [string]
* @param cardNo 银行卡号,限单个 是 [string]
* @param mobile 银行预留手机号,仅支持国内11位号码
* @param checkBankNo 姓名 是 [string] 身份证号码,限单个 是 [string] 银行卡号,限单个 是 [string]银行预留手机号,仅支持国内11位号码
*/
@Operation
(
description
=
"银行卡号校验"
)
@SysLog
(
"银行卡号校验"
)
@Inner
@PostMapping
(
"/inner/checkBankNo"
)
public
R
<
TCheckBankNo
>
checkBankNoInner
(
@RequestParam
(
value
=
"name"
,
required
=
true
)
String
name
,
@RequestParam
(
value
=
"idNum"
,
required
=
true
)
String
idNum
,
@RequestParam
(
value
=
"cardNo"
,
required
=
true
)
String
cardNo
,
@RequestParam
(
value
=
"mobile"
,
required
=
false
)
String
mobile
)
{
return
tCheckBankNoService
.
checkBankNo
(
name
,
idNum
,
cardNo
,
mobile
);
public
CheckBankNoVo
checkBankNoInner
(
@RequestBody
TCheckBankNo
checkBankNo
)
{
return
tCheckBankNoService
.
checkBankNo
(
checkBankNo
.
getName
(),
checkBankNo
.
getIdNum
(),
checkBankNo
.
getBankNo
(),
checkBankNo
.
getMobile
());
}
}
yifu-check/yifu-check-biz/src/main/java/com/yifu/cloud/plus/v1/check/service/TCheckBankNoService.java
View file @
14318d30
...
...
@@ -19,6 +19,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,5 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
*/
public
interface
TCheckBankNoService
extends
IService
<
TCheckBankNo
>
{
R
<
TCheckBankNo
>
checkBankNo
(
String
name
,
String
idNum
,
String
cardNo
,
String
mobile
);
CheckBankNoVo
checkBankNo
(
String
name
,
String
idNum
,
String
cardNo
,
String
mobile
);
}
yifu-check/yifu-check-biz/src/main/java/com/yifu/cloud/plus/v1/check/service/impl/TCheckBankNoServiceImpl.java
View file @
14318d30
...
...
@@ -23,6 +23,7 @@ import com.yifu.cloud.plus.v1.check.mapper.TCheckBankNoMapper;
import
com.yifu.cloud.plus.v1.check.service.TCanCheckService
;
import
com.yifu.cloud.plus.v1.check.service.TCheckBankNoService
;
import
com.yifu.cloud.plus.v1.check.utils.ChecksUtil
;
import
com.yifu.cloud.plus.v1.check.vo.CheckBankNoVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.exception.ErrorCodes
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
...
...
@@ -44,9 +45,12 @@ public class TCheckBankNoServiceImpl extends ServiceImpl<TCheckBankNoMapper, TCh
private
final
TCanCheckService
canCheckService
;
@Override
public
R
<
TCheckBankNo
>
checkBankNo
(
String
name
,
String
idNum
,
String
cardNo
,
String
mobile
)
{
public
CheckBankNoVo
checkBankNo
(
String
name
,
String
idNum
,
String
cardNo
,
String
mobile
)
{
R
<
TCheckBankNo
>
res
;
CheckBankNoVo
vo
=
new
CheckBankNoVo
();
if
(
Common
.
isEmpty
(
name
)
||
Common
.
isEmpty
(
idNum
)
||
Common
.
isEmpty
(
cardNo
)){
return
R
.
failed
(
MsgUtils
.
getMessage
(
ErrorCodes
.
CHECKS_BANK_NO_REQUEST_PARAM_ERROR
));
vo
.
setRes
(
R
.
failed
(
MsgUtils
.
getMessage
(
ErrorCodes
.
CHECKS_BANK_NO_REQUEST_PARAM_ERROR
)));
return
vo
;
}
synchronized
(
this
){
TCheckBankNo
checkBankNo
=
baseMapper
.
selectOne
(
Wrappers
.<
TCheckBankNo
>
query
().
lambda
()
...
...
@@ -55,13 +59,15 @@ public class TCheckBankNoServiceImpl extends ServiceImpl<TCheckBankNoMapper, TCh
.
eq
(
TCheckBankNo:
:
getIdNum
,
idNum
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isNotNull
(
checkBankNo
)){
return
R
.
ok
(
checkBankNo
);
vo
.
setRes
(
R
.
ok
(
checkBankNo
));
return
vo
;
}
R
<
TCheckBankNo
>
res
=
ChecksUtil
.
checkBankNo
(
name
,
idNum
,
cardNo
,
mobile
,
canCheckService
.
getCanCheck
());
if
(
Common
.
isNotNull
(
res
)
&&
Common
.
isNotNull
(
res
.
getData
())){
baseMapper
.
insert
(
res
.
getData
());
R
<
TCheckBankNo
>
res
R
=
ChecksUtil
.
checkBankNo
(
name
,
idNum
,
cardNo
,
mobile
,
canCheckService
.
getCanCheck
());
if
(
Common
.
isNotNull
(
res
R
)
&&
Common
.
isNotNull
(
resR
.
getData
())){
baseMapper
.
insert
(
res
R
.
getData
());
}
return
res
;
vo
.
setRes
(
resR
);
return
vo
;
}
}
}
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