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
795abba1
Commit
795abba1
authored
Jul 26, 2022
by
zhaji
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into feature-zhaji
parents
1bf7b87d
ceb2d549
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
227 additions
and
74 deletions
+227
-74
ValidityConstants.java
....plus.v1/yifu/common/core/constant/ValidityConstants.java
+6
-0
ValidityUtil.java
...yifu/cloud/plus/v1/yifu/insurances/util/ValidityUtil.java
+43
-0
TInsuranceDetailServiceImpl.java
.../insurances/service/impl/TInsuranceDetailServiceImpl.java
+12
-1
TDispatchInfo.java
.../yifu/cloud/plus/v1/yifu/social/entity/TDispatchInfo.java
+45
-1
TSocialFundInfo.java
...ifu/cloud/plus/v1/yifu/social/entity/TSocialFundInfo.java
+4
-4
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+101
-66
TDispatchInfoMapper.xml
...ial-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
+16
-2
No files found.
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/constant/ValidityConstants.java
View file @
795abba1
...
@@ -55,4 +55,10 @@ public class ValidityConstants {
...
@@ -55,4 +55,10 @@ public class ValidityConstants {
/** 全汉字 最多20位 规则 */
/** 全汉字 最多20位 规则 */
public
static
final
String
CHINESE_PATTERN_20
=
"^[\\u4E00-\\u9FA5]{1,20}"
;
public
static
final
String
CHINESE_PATTERN_20
=
"^[\\u4E00-\\u9FA5]{1,20}"
;
/** 最多20位 规则 */
public
static
final
String
PATTERN_20
=
"^.{1,20}$"
;
/** 最多32位 规则 */
public
static
final
String
PATTERN_32
=
"^.{1,32}$"
;
/** 最多50位 规则 */
public
static
final
String
PATTERN_50
=
"^.{1,50}$"
;
}
}
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/util/ValidityUtil.java
View file @
795abba1
...
@@ -201,6 +201,7 @@ public class ValidityUtil {
...
@@ -201,6 +201,7 @@ public class ValidityUtil {
}
}
return
str
.
matches
(
ValidityConstants
.
CHINESE_PATTERN
)
;
return
str
.
matches
(
ValidityConstants
.
CHINESE_PATTERN
)
;
}
}
/**
/**
* 验证字符串是否全是汉字 最多20位
* 验证字符串是否全是汉字 最多20位
*
*
...
@@ -215,6 +216,48 @@ public class ValidityUtil {
...
@@ -215,6 +216,48 @@ public class ValidityUtil {
return
str
.
matches
(
ValidityConstants
.
CHINESE_PATTERN_20
)
;
return
str
.
matches
(
ValidityConstants
.
CHINESE_PATTERN_20
)
;
}
}
/**
* 验证字符串 最多20位
*
* @author licancan
* @param str
* @return {@link boolean}
*/
public
static
boolean
validate20
(
final
String
str
){
if
(
Common
.
isEmpty
(
str
)){
return
Boolean
.
FALSE
;
}
return
str
.
matches
(
ValidityConstants
.
PATTERN_20
)
;
}
/**
* 验证字符串 最多32位
*
* @author licancan
* @param str
* @return {@link boolean}
*/
public
static
boolean
validate32
(
final
String
str
){
if
(
Common
.
isEmpty
(
str
)){
return
Boolean
.
FALSE
;
}
return
str
.
matches
(
ValidityConstants
.
PATTERN_32
)
;
}
/**
* 验证字符串 最多50位
*
* @author licancan
* @param str
* @return {@link boolean}
*/
public
static
boolean
validate50
(
final
String
str
){
if
(
Common
.
isEmpty
(
str
)){
return
Boolean
.
FALSE
;
}
return
str
.
matches
(
ValidityConstants
.
PATTERN_50
)
;
}
/**
/**
* 校验用户姓名是否是初始化的值
* 校验用户姓名是否是初始化的值
*
*
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/impl/TInsuranceDetailServiceImpl.java
View file @
795abba1
...
@@ -344,9 +344,20 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -344,9 +344,20 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
}
}
if
(
byId
.
getBuyHandleStatus
()
==
CommonConstants
.
FOUR_INT
&&
byId
.
getBuyType
()
!=
CommonConstants
.
FOUR_INT
){
if
(
byId
.
getBuyHandleStatus
()
==
CommonConstants
.
FOUR_INT
&&
byId
.
getBuyType
()
!=
CommonConstants
.
FOUR_INT
){
// 身份证号位数校验(18 位合法)
// 身份证号位数校验(18 位合法)
if
(
ValidityUtil
.
validateIDCard
(
param
.
getEmpIdcardNo
())){
if
(
!
ValidityUtil
.
validateIDCard
(
param
.
getEmpIdcardNo
())){
return
R
.
failed
(
InsurancesConstants
.
EMP_IDCARD_NO_NOT_LEGITIMATE
);
return
R
.
failed
(
InsurancesConstants
.
EMP_IDCARD_NO_NOT_LEGITIMATE
);
}
}
//校验身份合法
TCheckIdCard
checkIdCard
=
new
TCheckIdCard
();
checkIdCard
.
setName
(
param
.
getEmpName
());
checkIdCard
.
setIdCard
(
param
.
getEmpIdcardNo
());
R
<
TCheckIdCard
>
tCheckIdCardR
=
checkDaprUtil
.
checkIdCardSingle
(
checkIdCard
);
if
(
null
!=
tCheckIdCardR
&&
tCheckIdCardR
.
getCode
()
==
CommonConstants
.
SUCCESS
){
TCheckIdCard
data
=
tCheckIdCardR
.
getData
();
if
(
CommonConstants
.
ONE_INT
!=
data
.
getIsTrue
()){
return
R
.
failed
(
InsurancesConstants
.
EMP_ID_CARD_NO_NOT_FIT
);
}
}
// 保单开始日期 > 当前派单日期
// 保单开始日期 > 当前派单日期
if
(!
LocalDateUtil
.
isDate
(
param
.
getPolicyStart
(),
LocalDateUtil
.
NORM_DATE_PATTERN
)){
if
(!
LocalDateUtil
.
isDate
(
param
.
getPolicyStart
(),
LocalDateUtil
.
NORM_DATE_PATTERN
)){
return
R
.
failed
(
InsurancesConstants
.
POLICY_START_PARSE_ERROR
);
return
R
.
failed
(
InsurancesConstants
.
POLICY_START_PARSE_ERROR
);
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TDispatchInfo.java
View file @
795abba1
...
@@ -101,7 +101,7 @@ public class TDispatchInfo extends BaseEntity {
...
@@ -101,7 +101,7 @@ public class TDispatchInfo extends BaseEntity {
@ExcelProperty
(
"员工类型"
)
@ExcelProperty
(
"员工类型"
)
private
String
empType
;
private
String
empType
;
/**
/**
* 员工电话
* 员工电话
(手机号码)
*/
*/
@Length
(
max
=
32
,
message
=
"员工电话 不能超过32个字符"
)
@Length
(
max
=
32
,
message
=
"员工电话 不能超过32个字符"
)
@ExcelAttribute
(
name
=
"员工电话"
,
maxLength
=
32
)
@ExcelAttribute
(
name
=
"员工电话"
,
maxLength
=
32
)
...
@@ -520,6 +520,50 @@ public class TDispatchInfo extends BaseEntity {
...
@@ -520,6 +520,50 @@ public class TDispatchInfo extends BaseEntity {
private
String
belongUnitName
;
private
String
belongUnitName
;
/**
* 学历
*/
@ExcelAttribute
(
name
=
"学历"
,
maxLength
=
32
)
@Schema
(
description
=
"学历"
,
name
=
"contractName"
)
private
String
educationName
;
/**
* 试用期(单位月)
*/
@Length
(
max
=
2
,
message
=
"试用期 不能超过2 个字符"
)
@ExcelAttribute
(
name
=
"试用期"
,
maxLength
=
32
)
@Schema
(
description
=
"试用期"
)
@ExcelProperty
(
"试用期"
)
private
String
tryPeriod
;
/**
* 身份证省
*/
@ExcelAttribute
(
name
=
"身份证省"
,
isArea
=
true
)
@Schema
(
description
=
"身份证省"
)
@ExcelProperty
(
"身份证省"
)
private
String
idCardProvince
;
/**
* 身份证市
*/
@ExcelAttribute
(
name
=
"身份证市"
,
isArea
=
true
,
parentField
=
"idCardProvince"
)
@Schema
(
description
=
"身份证市"
)
@ExcelProperty
(
"身份证市"
)
private
String
idCardCity
;
/**
* 身份证县
*/
@ExcelAttribute
(
name
=
"身份证县"
,
isArea
=
true
,
parentField
=
"idCardCity"
)
@Schema
(
description
=
"身份证县"
)
@ExcelProperty
(
"身份证县"
)
private
String
idCardTown
;
/**
* 身份证所在地
*/
@ExcelAttribute
(
name
=
"身份证所在地"
)
@Schema
(
description
=
"身份证所在地"
)
@ExcelProperty
(
"身份证所在地"
)
private
String
idCardAddress
;
}
}
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TSocialFundInfo.java
View file @
795abba1
...
@@ -964,18 +964,18 @@ public class TSocialFundInfo extends BaseEntity {
...
@@ -964,18 +964,18 @@ public class TSocialFundInfo extends BaseEntity {
private
BigDecimal
personalFundSum
;
private
BigDecimal
personalFundSum
;
/**
/**
* 社保状态:派增(0待审核、1待办理、2办理中 3办理成功、4部分办理失败 5 办理失败)、派减(6待审核 7待办理 8办理成功 9 办理失败)
* 社保状态:派增(0待审核、1待办理、2办理中 3办理成功、4部分办理失败 5 办理失败)、派减(6待审核 7待办理 8办理成功 9 办理失败
10 审核不通过
)
*/
*/
@ExcelAttribute
(
name
=
"社保状态"
,
maxLength
=
1
)
@ExcelAttribute
(
name
=
"社保状态"
,
maxLength
=
1
)
@Schema
(
description
=
"社保状态:派增(0待审核、1待办理、2办理中 3办理成功、4部分办理失败 5 办理失败)、派减(6待审核 7待办理 8办理成功 9 办理失败)"
)
@Schema
(
description
=
"社保状态:派增(0待审核、1待办理、2办理中 3办理成功、4部分办理失败 5 办理失败)、派减(6待审核 7待办理 8办理成功 9 办理失败
10 审核不通过
)"
)
@ExcelProperty
(
"社保派增状态"
)
@ExcelProperty
(
"社保派增状态"
)
private
String
socialStatus
;
private
String
socialStatus
;
/**
/**
* 公积金状态:派增(0待审核、1待办理、3办理成功、4办理失败)、派减(5待审核 6待办理 7 办理成功 8 办理失败)
* 公积金状态:派增(0待审核、1待办理、3办理成功、4办理失败)、派减(5待审核 6待办理 7 办理成功 8 办理失败
9 审核不通过
)
*/
*/
@Length
(
max
=
1
,
message
=
"公积金状态 不能超过1个字符"
)
@Length
(
max
=
1
,
message
=
"公积金状态 不能超过1个字符"
)
@ExcelAttribute
(
name
=
"公积金状态"
,
maxLength
=
1
)
@ExcelAttribute
(
name
=
"公积金状态"
,
maxLength
=
1
)
@Schema
(
description
=
"公积金状态:派增(0待审核、1待办理、3办理成功、4办理失败)、派减(5待审核 6待办理 7 办理成功 8 办理失败)"
)
@Schema
(
description
=
"公积金状态:派增(0待审核、1待办理、3办理成功、4办理失败)、派减(5待审核 6待办理 7 办理成功 8 办理失败
9 审核不通过
)"
)
@ExcelProperty
(
"公积金状态"
)
@ExcelProperty
(
"公积金状态"
)
private
String
fundStatus
;
private
String
fundStatus
;
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
795abba1
This diff is collapsed.
Click to expand it.
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
View file @
795abba1
...
@@ -86,6 +86,14 @@
...
@@ -86,6 +86,14 @@
<result
property=
"dispatchCode"
column=
"DISPATCH_CODE"
/>
<result
property=
"dispatchCode"
column=
"DISPATCH_CODE"
/>
<result
property=
"contractSubName"
column=
"CONTRACT_SUB_NAME"
/>
<result
property=
"contractSubName"
column=
"CONTRACT_SUB_NAME"
/>
<result
property=
"contractId"
column=
"CONTRACT_ID"
/>
<result
property=
"contractId"
column=
"CONTRACT_ID"
/>
<result
property=
"educationName"
column=
"EDUCATION_NAME"
/>
<result
property=
"tryPeriod"
column=
"TRY_PERIOD"
/>
<result
property=
"idCardProvince"
column=
"ID_CARD_PROVINCE"
/>
<result
property=
"idCardCity"
column=
"ID_CARD_CITY"
/>
<result
property=
"idCardTown"
column=
"ID_CARD_TOWN"
/>
<result
property=
"idCardAddress"
column=
"ID_CARD_ADDRESS"
/>
</resultMap>
</resultMap>
...
@@ -152,7 +160,13 @@
...
@@ -152,7 +160,13 @@
a.DISPATCH_CODE,
a.DISPATCH_CODE,
a.SETTLE_DOMAIN_CODE,
a.SETTLE_DOMAIN_CODE,
a.CONTRACT_SUB_NAME,
a.CONTRACT_SUB_NAME,
a.CONTRACT_ID
a.CONTRACT_ID,
a.EDUCATION_NAME,
a.TRY_PERIOD,
a.ID_CARD_PROVINCE,
a.ID_CARD_CITY,
a.ID_CARD_TOWN,
a.ID_CARD_ADDRESS
</sql>
</sql>
<sql
id=
"tDispatchInfo_where"
>
<sql
id=
"tDispatchInfo_where"
>
<if
test=
"tDispatchInfo != null"
>
<if
test=
"tDispatchInfo != null"
>
...
...
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