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
ab377cf7
Commit
ab377cf7
authored
Jul 29, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量办理 100%
parent
fea7a90f
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
128 additions
and
14 deletions
+128
-14
ErrorCodes.java
....cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
+12
-0
messages_zh_CN.properties
...on-core/src/main/resources/i18n/messages_zh_CN.properties
+8
-0
TDispatchImportVo.java
.../yifu/cloud/plus/v1/yifu/social/vo/TDispatchImportVo.java
+1
-1
TDispatchInfoController.java
...us/v1/yifu/social/controller/TDispatchInfoController.java
+2
-1
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+104
-10
TPreDispatchInfoServiceImpl.java
...yifu/social/service/impl/TPreDispatchInfoServiceImpl.java
+1
-1
Controller.java.vm
...fu-codegen/src/main/resources/template/Controller.java.vm
+0
-1
No files found.
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
View file @
ab377cf7
...
...
@@ -436,4 +436,16 @@ public interface ErrorCodes {
* 派增异常: 社保派单基数不可小于最低基数且不可大于最高基数
*/
String
EMP_DISPATCH_SOCIAL_LIMIT_ERROR
=
"emp.dispatch.social.limit.error"
;
/**
* 派增异常: 公积金派单基数不可小于最低基数且不可大于最高基数
*/
String
EMP_DISPATCH_FUND_LIMIT_ERROR
=
"emp.dispatch.fund.limit.error"
;
/**
* 派增异常: 社保各项基数不一致,委托备注必填
*/
String
EMP_DISPATCH_SOCIAL_BASE_LIMIT_ERROR
=
"emp.dispatch.social.base.limit.error"
;
/**
* 派增异常: 社保各项起缴日不一致,委托备注必填
*/
String
EMP_DISPATCH_SOCIAL_DATE_LIMIT_ERROR
=
"emp.dispatch.social.date.limit.error"
;
}
yifu-common/yifu-common-core/src/main/resources/i18n/messages_zh_CN.properties
View file @
ab377cf7
...
...
@@ -161,6 +161,14 @@ emp.dispatch.emp.not.used=\u6D3E\u589E\u5F02\u5E38\uFF1A \u5BF9\u5E94\u8EAB\u4EF
emp.dispatch.social.limit.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
793E
\u
4FDD
\u
6D3E
\u5355\u
57FA
\u6570\u
4E0D
\u
53EF
\u
5C0F
\u
4E8E
\u6700\u
4F4E
\u
57FA
\u6570\u
4E14
\u
4E0D
\u
53EF
\u5927\u
4E8E
\u6700\u
9AD8
\u
57FA
\u6570
emp.dispatch.fund.limit.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
516C
\u
79EF
\u
91D1
\u
6D3E
\u5355\u
57FA
\u6570\u
4E0D
\u
53EF
\u
5C0F
\u
4E8E
\u6700\u
4F4E
\u
57FA
\u6570\u
4E14
\u
4E0D
\u
53EF
\u5927\u
4E8E
\u6700\u
9AD8
\u
57FA
\u6570
emp.dispatch.social.base.limit.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
793E
\u
4FDD
\u5404\u9879\u
57FA
\u6570\u
4E0D
\u
4E00
\u
81F4
\u
FF0C
\u
59D4
\u6258\u5907\u
6CE8
\u
5FC5
\u
586B
emp.dispatch.social.date.limit.error
=
\u
6D3E
\u
589E
\u
5F02
\u
5E38
\u
FF1A
\u
793E
\u
4FDD
\u5404\u9879\u
8D77
\u
7F34
\u
65E5
\u
4E0D
\u
4E00
\u
81F4
\u
FF0C
\u
59D4
\u6258\u5907\u
6CE8
\u
5FC5
\u
586B
...
...
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/vo/TDispatchImportVo.java
View file @
ab377cf7
...
...
@@ -252,7 +252,7 @@ public class TDispatchImportVo extends RowIndex implements Serializable {
@ExcelAttribute
(
name
=
"备案基数"
,
isFloat
=
true
,
max
=
"999999999.99"
)
@Schema
(
description
=
"备案基数:购买社保时必填"
)
@ExcelProperty
(
"备案基数"
)
private
String
recordBase
;
private
BigDecimal
recordBase
;
/**
* 社保户
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TDispatchInfoController.java
View file @
ab377cf7
...
...
@@ -113,7 +113,8 @@ public class TDispatchInfoController {
@Operation
(
description
=
"简单分页查询--审核"
)
@GetMapping
(
"/pageAudit"
)
public
R
<
IPage
<
TDispatchInfo
>>
getTDispatchAuditPage
(
Page
<
TDispatchInfo
>
page
,
TDispatchInfoSearchVo
tDispatchInfo
)
{
tDispatchInfo
.
setDeleteFlag
(
CommonConstants
.
ONE_STRING
);
tDispatchInfo
.
setDeleteFlag
(
CommonConstants
.
ZERO_STRING
);
tDispatchInfo
.
setStatus
(
CommonConstants
.
ONE_STRING
);
return
new
R
<>(
tDispatchInfoService
.
getTDispatchInfoPage
(
page
,
tDispatchInfo
));
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
ab377cf7
...
...
@@ -716,6 +716,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
socialFund
.
setLowerLimit
(
socialSet
.
getLowerLimit
());
socialFund
.
setUpperLimit
(
socialSet
.
getUpperLimit
());
socialFund
.
setPayPolicy
(
socialSet
.
getPayPolicy
());
socialFund
.
setLatestCardinality
(
socialSet
.
getInsuranceIsLatestCardinality
());
}
}
if
(
Common
.
isNotNull
(
excel
.
getProvidentHousehold
())){
...
...
@@ -725,6 +726,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
socialFund
.
setUnitName
(
setInfoVo
.
getCustomerName
());
socialFund
.
setUnitIdFund
(
setInfoVo
.
getCustomerId
());
socialFund
.
setFundStatus
(
CommonConstants
.
ZERO_STRING
);
socialFund
.
setProvidentStart
(
excel
.
getProvidentStart
());
if
(
Common
.
isNotNull
(
fundSet
)){
socialFund
.
setProvidentHousehold
(
fundSet
.
getDepartId
());
socialFund
.
setProvidentHouseholdName
(
fundSet
.
getDepartName
());
...
...
@@ -734,7 +736,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
socialFund
.
setLowerLimitFund
(
fundSet
.
getLowerLimit
());
socialFund
.
setUpperLimitFund
(
fundSet
.
getUpperLimit
());
socialFund
.
setPayPolicyFund
(
fundSet
.
getPayPolicy
());
socialFund
.
set
ProvidentStart
(
excel
.
getProvidentStart
());
socialFund
.
set
LatestCardinalityFund
(
fundSet
.
getInsuranceIsLatestCardinality
());
}
}
...
...
@@ -948,7 +950,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
social
.
setWorkInjuryHandle
(
CommonConstants
.
ZERO_STRING
);
social
.
setUnemployHandle
(
CommonConstants
.
ZERO_STRING
);
social
.
setPaymentType
(
excel
.
getPaymentType
());
social
.
setRecordBase
(
excel
.
getRecordBase
());
social
.
setRecordBase
(
excel
.
getRecordBase
()
.
toString
()
);
social
.
setPensionStart
(
excel
.
getPensionStart
());
social
.
setMedicalStart
(
ServiceUtil
.
ifNull
(
excel
.
getMedicalStart
(),
excel
.
getPensionStart
()));
social
.
setUnemployStart
(
ServiceUtil
.
ifNull
(
excel
.
getUnemployStart
(),
excel
.
getPensionStart
()));
...
...
@@ -1407,7 +1409,6 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
&&
(
CommonConstants
.
SIX_STRING
.
equals
(
socialFund
.
getSocialStatus
())
||
CommonConstants
.
SEVEN_STRING
.
equals
(
socialFund
.
getSocialStatus
())
||
CommonConstants
.
NINE_STRING
.
equals
(
socialFund
.
getSocialStatus
())
||
CommonConstants
.
TEN_STRING
.
equals
(
socialFund
.
getSocialStatus
())
||
CommonConstants
.
ZERO_STRING
.
equals
(
socialFund
.
getSocialStatus
())
||
CommonConstants
.
ONE_STRING
.
equals
(
socialFund
.
getSocialStatus
())
||
CommonConstants
.
THREE_STRING
.
equals
(
socialFund
.
getSocialStatus
())
...
...
@@ -1429,9 +1430,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}
}
}
if
(
Common
.
isNotNull
(
excel
.
getSocialHousehold
())
&&
Common
.
isNotNull
(
socialSet
)
&&
CommonConstants
.
ONE_STRING
.
equals
(
excel
.
getPaymentType
())){
if
(
(
Common
.
isNotNull
(
excel
.
getPensionCardinal
())
if
(
Common
.
isNotNull
(
excel
.
getSocialHousehold
())
){
if
(
Common
.
isNotNull
(
socialSet
)
&&
CommonConstants
.
ONE_STRING
.
equals
(
excel
.
getPaymentType
())
&&
(
Common
.
isNotNull
(
excel
.
getPensionCardinal
())
&&
excel
.
getPensionCardinal
().
compareTo
(
socialSet
.
getUpperLimit
())
>
CommonConstants
.
ZERO_INT
&&
excel
.
getPensionCardinal
().
compareTo
(
socialSet
.
getLowerLimit
())<
CommonConstants
.
ZERO_INT
)
||(
Common
.
isNotNull
(
excel
.
getMedicalCardinal
())
...
...
@@ -1453,10 +1454,102 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_SOCIAL_LIMIT_ERROR
)));
return
true
;
}
// 备案基数和养老基数 养老起缴日期 必填在前面已必填校验,这里不重复校验
if
(
Common
.
isEmpty
(
excel
.
getRecordBase
())
&&
Common
.
isEmpty
(
excel
.
getSocialHousehold
())){
boolean
flag
=
false
;
// 各个社保基数和日期空 默认养老日期和基数
initExcelBaseAndDate
(
excel
);
// 自定义 只要有一个不相当同的 日期或基数 就要提示
if
(
CommonConstants
.
ONE_STRING
.
equals
(
excel
.
getPaymentType
())
&&
(
excel
.
getPensionCardinal
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
||
excel
.
getMedicalCardinal
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
||
excel
.
getUnemploymentCardinal
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
||
excel
.
getWorkInjuryCardinal
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
||
excel
.
getBirthCardinal
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
||
excel
.
getBigailmentCardinal
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
)){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_SOCIAL_BASE_LIMIT_ERROR
)));
return
true
;
}
Date
temp
=
new
Date
();
if
(
Common
.
isEmpty
(
empVo
)){
temp
=
excel
.
getContractStart
();
}
else
if
(
Common
.
isNotNull
(
empVo
)
&&
Common
.
isNotNull
(
empVo
.
getContractStart
())){
temp
=
empVo
.
getContractStart
();
}
else
{
temp
=
excel
.
getContractStart
();
}
if
(
CommonConstants
.
ONE_STRING
.
equals
(
excel
.
getPaymentType
())
&&
(
excel
.
getPensionStart
().
equals
(
temp
)
||
excel
.
getMedicalStart
().
equals
(
temp
)
||
excel
.
getUnemployStart
().
equals
(
temp
)
||
excel
.
getWorkInjuryStart
().
equals
(
temp
)
||
excel
.
getBirthStart
().
equals
(
temp
)
||
excel
.
getBigailmentStart
().
equals
(
temp
)
)){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_SOCIAL_DATE_LIMIT_ERROR
)));
return
true
;
}
// 其他 只用判断对应养老基数和时间 与合同时间 即可
if
(!
CommonConstants
.
ONE_STRING
.
equals
(
excel
.
getPaymentType
())
&&
(
excel
.
getPensionStart
().
equals
(
temp
)
)){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_SOCIAL_DATE_LIMIT_ERROR
)));
return
true
;
}
if
(!
CommonConstants
.
ONE_STRING
.
equals
(
excel
.
getPaymentType
())
&&
excel
.
getPensionCardinal
().
compareTo
(
excel
.
getRecordBase
())
!=
CommonConstants
.
ZERO_INT
){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_SOCIAL_BASE_LIMIT_ERROR
)));
return
true
;
}
}
}
if
(
Common
.
isNotNull
(
excel
.
getProvidentHousehold
())
&&
Common
.
isNotNull
(
fundSet
)
&&
Common
.
isNotNull
(
excel
.
getProvidentCardinal
())
&&
excel
.
getProvidentCardinal
().
compareTo
(
fundSet
.
getUpperLimit
())
>
CommonConstants
.
ZERO_INT
&&
excel
.
getProvidentCardinal
().
compareTo
(
fundSet
.
getLowerLimit
())<
CommonConstants
.
ZERO_INT
){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_FUND_LIMIT_ERROR
)));
return
true
;
}
return
false
;
}
private
void
initExcelBaseAndDate
(
TDispatchImportVo
excel
)
{
if
(
Common
.
isEmpty
(
excel
.
getMedicalCardinal
())){
excel
.
setMedicalCardinal
(
excel
.
getPensionCardinal
());
}
if
(
Common
.
isEmpty
(
excel
.
getUnemploymentCardinal
())){
excel
.
setUnemploymentCardinal
(
excel
.
getPensionCardinal
());
}
if
(
Common
.
isEmpty
(
excel
.
getWorkInjuryCardinal
())){
excel
.
setWorkInjuryCardinal
(
excel
.
getPensionCardinal
());
}
if
(
Common
.
isEmpty
(
excel
.
getBirthCardinal
())){
excel
.
setBirthCardinal
(
excel
.
getPensionCardinal
());
}
if
(
Common
.
isEmpty
(
excel
.
getBigailmentCardinal
())){
excel
.
setBigailmentCardinal
(
excel
.
getPensionCardinal
());
}
if
(
Common
.
isEmpty
(
excel
.
getMedicalStart
())){
excel
.
setMedicalStart
(
excel
.
getPensionStart
());
}
if
(
Common
.
isEmpty
(
excel
.
getUnemployStart
())){
excel
.
setUnemployStart
(
excel
.
getPensionStart
());
}
if
(
Common
.
isEmpty
(
excel
.
getWorkInjuryStart
())){
excel
.
setWorkInjuryStart
(
excel
.
getPensionStart
());
}
if
(
Common
.
isEmpty
(
excel
.
getBirthStart
())){
excel
.
setBirthStart
(
excel
.
getPensionStart
());
}
if
(
Common
.
isEmpty
(
excel
.
getBigailmentStart
())){
excel
.
setBigailmentStart
(
excel
.
getPensionStart
());
}
}
@Override
public
R
<
List
<
ErrorMessage
>>
importReduceDiy
(
InputStream
inputStream
)
{
...
...
@@ -1810,8 +1903,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
socialInfo
.
setDeleteFlag
(
CommonConstants
.
ONE_STRING
);
// 作废更新:社保状态、同步预估数据 审核不通过直接作废 TODO 预估数据
socialInfo
.
setAuditStatus
(
CommonConstants
.
TWO_STRING
);
socialInfo
.
setDeleteFlag
(
CommonConstants
.
ZERO
_STRING
);
sf
.
setSocialAddStatus
(
CommonConstants
.
F
OUR
_STRING
);
socialInfo
.
setDeleteFlag
(
CommonConstants
.
ONE
_STRING
);
sf
.
setSocialAddStatus
(
CommonConstants
.
F
IVE
_STRING
);
sf
.
setSocialStatus
(
CommonConstants
.
TEN_STRING
);
}
socialInfo
.
setAuditTime
(
now
);
...
...
@@ -1884,9 +1977,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}
}
// 审核不通过 直接作废 要考虑 部分派增的情况
if
(
CommonConstants
.
ONE_INT
==
flag
.
intValue
())
{
/*
if (CommonConstants.ONE_INT == flag.intValue()) {
dis.setDeleteFlag(CommonConstants.ONE_STRING);
}
}
*/
//派单类型信息拼接
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
dis
.
getType
()))
{
remark
+=
DispatchConstants
.
DISPATCH_ADD
;
...
...
@@ -1919,6 +2012,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
dis
.
setAuditUser
(
user
.
getId
());
dis
.
setAuditTime
(
now
);
baseMapper
.
updateById
(
dis
);
socialFundMapper
.
updateById
(
sf
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
DispatchConstants
.
DISPATCH_AUDIT_ERROR
,
e
);
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TPreDispatchInfoServiceImpl.java
View file @
ab377cf7
...
...
@@ -2176,7 +2176,7 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
importVo
.
setEmpNational
(
CommonConstants
.
ONE_STRING
);
importVo
.
setEducationName
(
CommonConstants
.
FIVE_STRING
);
if
(
null
!=
preInfo
.
getPensionBase
()){
importVo
.
setRecordBase
(
preInfo
.
getPensionBase
()
.
toString
()
);
importVo
.
setRecordBase
(
preInfo
.
getPensionBase
());
}
// 封装合同信息
initDispatchContractVo
(
preInfo
,
importVo
);
...
...
yifu-visual/yifu-codegen/src/main/resources/template/Controller.java.vm
View file @
ab377cf7
...
...
@@ -45,7 +45,6 @@ import org.springframework.web.bind.annotation.*;
@
RequiredArgsConstructor
@
RequestMapping
(
"/${pathName}"
)
@
Tag
(
name
=
"${comments}管理"
)
@
SecurityRequirement
(
name
=
HttpHeaders
.
AUTHORIZATION
)
public
class
${
className
}
Controller
{
private
final
${
className
}
Service
${
classname
}
Service
;
...
...
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