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
dbce2f03
Commit
dbce2f03
authored
Jan 23, 2026
by
hongguangwu
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.7.19' into MVP1.7.19
parents
afb35874
9783fe98
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
288 additions
and
43 deletions
+288
-43
TEmployeeContractPreController.java
...u/archives/controller/TEmployeeContractPreController.java
+11
-0
TEmployeeContractPreService.java
...v1/yifu/archives/service/TEmployeeContractPreService.java
+2
-0
EmployeeRegistrationPreServiceImpl.java
...ives/service/impl/EmployeeRegistrationPreServiceImpl.java
+12
-0
TEmployeeContractPreServiceImpl.java
...rchives/service/impl/TEmployeeContractPreServiceImpl.java
+9
-1
CommonConstants.java
...ud/plus/v1/yifu/common/core/constant/CommonConstants.java
+1
-1
BaseSearchVO.java
.../yifu/cloud/plus/v1/yifu/common/core/vo/BaseSearchVO.java
+3
-0
InsuranceDaprUtil.java
...loud/plus/v1/yifu/common/dapr/util/InsuranceDaprUtil.java
+15
-1
EmployeeRegistration.java
...m/yifu/cloud/plus/v1/csp/entity/EmployeeRegistration.java
+4
-0
EmployeeRegistrationController.java
...lus/v1/csp/controller/EmployeeRegistrationController.java
+14
-0
EmployeeRegistrationService.java
...loud/plus/v1/csp/service/EmployeeRegistrationService.java
+1
-0
EmployeeRegistrationServiceImpl.java
.../v1/csp/service/impl/EmployeeRegistrationServiceImpl.java
+20
-1
EkpStatusParamVo.java
...fu/cloud/plus/v1/yifu/insurances/vo/EkpStatusParamVo.java
+9
-0
TEmployeeInsurancePreController.java
...nsurances/controller/TEmployeeInsurancePreController.java
+29
-0
TEmployeeInsurancePreService.java
...ances/service/insurance/TEmployeeInsurancePreService.java
+5
-0
TEmployeeInsurancePreServiceImpl.java
...vice/insurance/impl/TEmployeeInsurancePreServiceImpl.java
+24
-2
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+74
-34
TInsurancePreRenewDetailServiceImpl.java
...e/insurance/impl/TInsurancePreRenewDetailServiceImpl.java
+2
-2
DoJointInsuranceTask.java
...ud/plus/v1/yifu/insurances/util/DoJointInsuranceTask.java
+31
-1
TDispatchInfoPreController.java
...v1/yifu/social/controller/TDispatchInfoPreController.java
+12
-0
TDispatchInfoPreService.java
.../plus/v1/yifu/social/service/TDispatchInfoPreService.java
+3
-0
TDispatchInfoPreServiceImpl.java
...yifu/social/service/impl/TDispatchInfoPreServiceImpl.java
+7
-0
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmployeeContractPreController.java
View file @
dbce2f03
...
...
@@ -334,4 +334,15 @@ public class TEmployeeContractPreController {
public
R
contractUrg
(
@RequestParam
String
id
)
{
return
tEmployeeContractPreService
.
contractUrg
(
id
);
}
/**
* 通过id查询合同待签订任务记录表
* @param registId
* @return R
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询"
)
@GetMapping
(
"/getInfoByRegistId "
)
public
R
<
TEmployeeContractPre
>
getInfoByRegistId
(
@RequestParam
(
"registId"
)
String
registId
)
{
return
tEmployeeContractPreService
.
getInfoByRegistId
(
registId
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TEmployeeContractPreService.java
View file @
dbce2f03
...
...
@@ -103,4 +103,6 @@ public interface TEmployeeContractPreService extends IService<TEmployeeContractP
* @return
*/
R
contractUrg
(
String
id
);
R
<
TEmployeeContractPre
>
getInfoByRegistId
(
String
registId
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/EmployeeRegistrationPreServiceImpl.java
View file @
dbce2f03
...
...
@@ -23,6 +23,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.*;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.alisms.AliSmsResult
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.alisms.RegistParamVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.alisms.YiFuSmsUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.BaseSearchVO
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.config.DaprCheckProperties
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.config.DaprInsurancesProperties
;
...
...
@@ -274,6 +275,17 @@ public class EmployeeRegistrationPreServiceImpl extends ServiceImpl<EmployeeRegi
try
{
//调用csp服务更新状态和新增操作记录
cspDaprUtils
.
updateRegistByPreInfo
(
receiveVo
);
//处理合同待办信息
contractPreMapper
.
delete
(
Wrappers
.<
TEmployeeContractPre
>
query
().
lambda
()
.
eq
(
TEmployeeContractPre:
:
getRegisterId
,
updatePre
.
getId
()));
//处理商险待办信息
BaseSearchVO
insuranceSearchVo
=
new
BaseSearchVO
();
insuranceSearchVo
.
setRegisterId
(
updatePre
.
getId
());
insuranceDaprUtil
.
getInsurancesStatus
(
insuranceSearchVo
);
//处理社保待办信息
socialDaprUtils
.
deleteUnProcessSocialPreInfo
(
updatePre
.
getId
());
//处理公积金待办信息
socialDaprUtils
.
deleteUnProcessFundPreInfo
(
updatePre
.
getId
());
}
catch
(
Exception
e
)
{
log
.
error
(
"调用csp服务更新数据异常"
,
e
);
}
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeContractPreServiceImpl.java
View file @
dbce2f03
...
...
@@ -1244,5 +1244,13 @@ public class TEmployeeContractPreServiceImpl extends ServiceImpl<TEmployeeContra
}
}
}
@Override
public
R
<
TEmployeeContractPre
>
getInfoByRegistId
(
String
registId
)
{
if
(
Common
.
isEmpty
(
registId
))
{
return
R
.
failed
(
CommonConstants
.
PARAM_INFO_ERROR
);
}
return
R
.
ok
(
baseMapper
.
selectOne
(
Wrappers
.<
TEmployeeContractPre
>
query
().
lambda
()
.
eq
(
TEmployeeContractPre:
:
getRegisterId
,
registId
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
)));
}
}
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/constant/CommonConstants.java
View file @
dbce2f03
...
...
@@ -644,7 +644,7 @@ public interface CommonConstants {
List
<
String
>
processStatus
=
Stream
.
of
(
"0"
,
"1"
).
collect
(
Collectors
.
toList
());
List
<
String
>
insuranceAutoProcessStatus
=
Stream
.
of
(
"0"
,
"1"
,
"2"
,
"5"
).
collect
(
Collectors
.
toList
());
List
<
String
>
insuranceAutoProcessStatus
=
Stream
.
of
(
"0"
,
"1"
,
"2"
,
"5"
,
"7"
).
collect
(
Collectors
.
toList
());
List
<
String
>
processPreStatus
=
Stream
.
of
(
"1"
).
collect
(
Collectors
.
toList
());
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/vo/BaseSearchVO.java
View file @
dbce2f03
...
...
@@ -65,4 +65,7 @@ public class BaseSearchVO implements Serializable {
private
Date
startDate
;
//入职登记表ID
private
String
registerId
;
}
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/InsuranceDaprUtil.java
View file @
dbce2f03
...
...
@@ -112,7 +112,21 @@ public class InsuranceDaprUtil {
}
return
res
;
}
/**
* @Author fxj
* @Description 通过如入职ID删除商险待办数据
* @Date 20:28 2026/1/22
* @Param
* @return
**/
public
R
<
Boolean
>
delInsurancePreByRegisterId
(
BaseSearchVO
paramVo
)
{
R
<
Boolean
>
res
=
HttpDaprUtil
.
invokeMethodPost
(
daprInsurancesProperties
.
getAppUrl
(),
daprInsurancesProperties
.
getAppId
()
,
"/temployeeinsurancepre/inner/delInsurancePreByRegisterId"
,
paramVo
,
Boolean
.
class
,
SecurityConstants
.
FROM_IN
);
if
(
Common
.
isEmpty
(
res
)){
return
R
.
failed
(
"通过如入职ID删除商险待办数据!"
);
}
return
res
;
}
/**
* @param paramVo 查询参数,主要是身份证与项目编码
* @Description: 查询人员的已减完成的商险(返回值,则表示有未减完成的商险
...
...
yifu-csp/yifu-csp-api/src/main/java/com/yifu/cloud/plus/v1/csp/entity/EmployeeRegistration.java
View file @
dbce2f03
...
...
@@ -128,4 +128,8 @@ public class EmployeeRegistration extends BaseEntity {
@Schema
(
description
=
"离职处理状态:0待确认1待处理2处理中3已处理"
)
private
String
leaveStatus
;
@TableField
(
exist
=
false
)
@Schema
(
description
=
"拒绝入职原因"
)
private
String
leaveReason
;
}
yifu-csp/yifu-csp-biz/src/main/java/com/yifu/cloud/plus/v1/csp/controller/EmployeeRegistrationController.java
View file @
dbce2f03
...
...
@@ -132,6 +132,20 @@ public class EmployeeRegistrationController {
return
employeeRegistrationService
.
updateRegist
(
employeeRegistration
);
}
/**
* @Author fxj
* @Description 拒绝入职
* @Date 20:08 2026/1/22
* @Param
* @return
**/
@Operation
(
summary
=
"拒绝入职"
)
@SysLog
(
"拒绝入职"
)
@PostMapping
(
"/refuseOffer"
)
public
R
refuseOffer
(
@RequestBody
EmployeeRegistration
employeeRegistration
)
{
return
employeeRegistrationService
.
refuseOffer
(
employeeRegistration
);
}
/**
* 单个更新,更新入离职日期和手机号码
*
...
...
yifu-csp/yifu-csp-biz/src/main/java/com/yifu/cloud/plus/v1/csp/service/EmployeeRegistrationService.java
View file @
dbce2f03
...
...
@@ -181,4 +181,5 @@ public interface EmployeeRegistrationService extends IService<EmployeeRegistrati
EkpDeptContractInfoVo
selectContractInfoByDetptNo
(
EkpDeptContractInfoVo
vo
);
R
refuseOffer
(
EmployeeRegistration
employeeRegistration
);
}
yifu-csp/yifu-csp-biz/src/main/java/com/yifu/cloud/plus/v1/csp/service/impl/EmployeeRegistrationServiceImpl.java
View file @
dbce2f03
...
...
@@ -2384,5 +2384,24 @@ public class EmployeeRegistrationServiceImpl extends ServiceImpl<EmployeeRegistr
}
}
}
/**
* @Author fxj
* @Description 拒绝入职--入职待确认列表
* @Date 20:14 2026/1/22
* @Param
* @return
**/
@Override
public
R
refuseOffer
(
EmployeeRegistration
registration
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
EmployeeRegistration
registrationNow
=
baseMapper
.
selectById
(
registration
.
getId
());
if
(
Common
.
isEmpty
(
registrationNow
))
{
return
R
.
failed
(
RegistConstants
.
NO_DATA_TO_HANDLE
);
}
registrationNow
.
setProcessStatus
(
CommonConstants
.
THREE_STRING
);
logService
.
saveLog
(
registration
.
getId
(),
CommonConstants
.
ZERO_STRING
,
RegistConstants
.
BACK_RECEIVE
,
LocalDateTime
.
now
(),
user
.
getNickname
(),
registration
.
getLeaveReason
());
baseMapper
.
updateById
(
registrationNow
);
return
R
.
ok
();
}
}
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/EkpStatusParamVo.java
View file @
dbce2f03
...
...
@@ -33,4 +33,13 @@ public class EkpStatusParamVo implements Serializable {
*/
private
String
callBackFlag
;
/**
* 收款结算单退单或款项撤销表示 商险ID
*/
private
String
detailIds
;
/**
* 0代表收款结算单已收或垫付
*/
private
String
paymentStatsus
;
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TEmployeeInsurancePreController.java
View file @
dbce2f03
...
...
@@ -4,8 +4,10 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.csp.vo.EmployeeRegistrationCustomerUserUpdateVo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.EmployeeRegistrationPre
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractPre
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.EmployeeRegistrationPreVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.BaseSearchVO
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.MenuUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
...
...
@@ -312,4 +314,31 @@ public class TEmployeeInsurancePreController {
return
tEmployeeInsurancePreService
.
getExitInsuranceListByEmpPreId
(
empPreId
);
}
/**
* @Author fxj
* @Description 通过如入职ID删除商险待办数据
* @Date 20:31 2026/1/22
* @Param
* @return
**/
@Operation
(
description
=
"通过如入职ID删除商险待办数据"
)
@Inner
@PostMapping
(
"/inner/delInsurancePreByRegisterId"
)
public
Boolean
delInsurancePreByRegisterId
(
@RequestBody
BaseSearchVO
preVo
)
{
if
(
null
==
preVo
||
preVo
.
getRegisterId
()
==
null
){
return
false
;
}
return
tEmployeeInsurancePreService
.
delInsurancePreByRegisterId
(
preVo
);
}
/**
* 通过id查询商险待签订任务记录表
* @param registId
* @return R
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询"
)
@GetMapping
(
"/getInfoByRegistId "
)
public
R
<
TEmployeeInsurancePre
>
getInfoByRegistId
(
@RequestParam
(
"registId"
)
String
registId
)
{
return
tEmployeeInsurancePreService
.
getInfoByRegistId
(
registId
);
}
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/TEmployeeInsurancePreService.java
View file @
dbce2f03
...
...
@@ -7,6 +7,7 @@ import com.yifu.cloud.plus.v1.csp.vo.EmployeeRegistrationCustomerUserUpdateVo;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.EmployeeRegistrationPre
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.EmployeeRegistrationPreVo
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.BaseSearchVO
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TEmployeeInsurancePre
;
import
com.yifu.cloud.plus.v1.yifu.insurances.vo.*
;
...
...
@@ -131,4 +132,8 @@ public interface TEmployeeInsurancePreService extends IService<TEmployeeInsuranc
**/
List
<
InsuranceAutoParam
>
getInsuranceAutoParamList
(
List
<
InsuranceAddParam
>
addParamList
,
List
<
InsuranceBatchParam
>
batchParamList
,
List
<
InsuranceReplaceParam
>
replaceParamList
);
Boolean
delInsurancePreByRegisterId
(
BaseSearchVO
preVo
);
R
<
TEmployeeInsurancePre
>
getInfoByRegistId
(
String
registId
);
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TEmployeeInsurancePreServiceImpl.java
View file @
dbce2f03
...
...
@@ -21,6 +21,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.Common;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.DateUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.LocalDateTimeUtils
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.BaseSearchVO
;
import
com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.ArchivesDaprUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.UpmsDaprUtils
;
...
...
@@ -299,10 +300,10 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
).
collect
(
Collectors
.
toList
());
if
(
autoAddParamList
.
isEmpty
())
{
LambdaUpdateWrapper
<
TEmployeeInsurancePre
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
/*
LambdaUpdateWrapper<TEmployeeInsurancePre> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.in(TEmployeeInsurancePre::getId,pushIdList)
.set(TEmployeeInsurancePre::getProcessStatus, CommonConstants.THREE_STRING);
this
.
update
(
updateWrapper
);
this.update(updateWrapper);
*/
}
else
{
// 将 autoAddParamList 中的id等信息提取出来,放入一个 Set 中
Set
<
String
>
autoAddParamSet
=
new
HashSet
<>();
...
...
@@ -812,6 +813,7 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
).
collect
(
Collectors
.
toList
());
}
private
InsuranceAutoParam
convertAddParam
(
InsuranceAddParam
addParam
)
{
InsuranceAutoParam
autoParam
=
new
InsuranceAutoParam
();
// 复制InsuranceAddParam的字段
...
...
@@ -986,5 +988,25 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
vo
.
setPreList
(
preList
);
return
vo
;
}
/**
* @Author fxj
* @Description 通过如入职ID删除商险待办数据
* @Date 20:31 2026/1/22
* @Param
* @return
**/
@Override
public
Boolean
delInsurancePreByRegisterId
(
BaseSearchVO
preVo
)
{
return
this
.
remove
(
Wrappers
.<
TEmployeeInsurancePre
>
query
().
lambda
()
.
eq
(
TEmployeeInsurancePre:
:
getRegisterId
,
preVo
.
getRegisterId
()));
}
@Override
public
R
<
TEmployeeInsurancePre
>
getInfoByRegistId
(
String
registId
)
{
if
(
Common
.
isEmpty
(
registId
)){
return
R
.
failed
(
CommonConstants
.
PARAM_INFO_ERROR
);
}
return
R
.
ok
(
baseMapper
.
selectOne
(
Wrappers
.<
TEmployeeInsurancePre
>
query
().
lambda
()
.
eq
(
TEmployeeInsurancePre:
:
getRegisterId
,
registId
).
last
(
CommonConstants
.
LAST_ONE_SQL
)));
}
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
dbce2f03
This diff is collapsed.
Click to expand it.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsurancePreRenewDetailServiceImpl.java
View file @
dbce2f03
...
...
@@ -379,10 +379,10 @@ public class TInsurancePreRenewDetailServiceImpl extends ServiceImpl<TInsuranceP
List
<
InsuranceAutoParam
>
autoAddParamList
=
this
.
getInsuranceAutoParamList
(
paramList
,
batchParamList
,
replaceParamList
);
if
(
autoAddParamList
.
isEmpty
())
{
LambdaUpdateWrapper
<
TInsurancePreRenewDetail
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
/*
LambdaUpdateWrapper<TInsurancePreRenewDetail> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.in(TInsurancePreRenewDetail::getId, pushIdList)
.set(TInsurancePreRenewDetail::getProcessStatus, CommonConstants.THREE_STRING);
this
.
update
(
updateWrapper
);
this.update(updateWrapper);
*/
}
else
{
// 将 autoAddParamList 中的id等信息提取出来,放入一个 Set 中
Set
<
String
>
autoAddParamSet
=
new
HashSet
<>();
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/util/DoJointInsuranceTask.java
View file @
dbce2f03
...
...
@@ -17,9 +17,12 @@ import com.yifu.cloud.plus.v1.yifu.ekp.constant.EkpConstants;
import
com.yifu.cloud.plus.v1.yifu.insurances.constants.InsurancesConstants
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.*
;
import
com.yifu.cloud.plus.v1.yifu.insurances.mapper.ekp.EkpInsurancesInfoMapper
;
import
com.yifu.cloud.plus.v1.yifu.insurances.mapper.insurances.TEmployeeInsurancePreMapper
;
import
com.yifu.cloud.plus.v1.yifu.insurances.mapper.insurances.TInsuranceDetailMapper
;
import
com.yifu.cloud.plus.v1.yifu.insurances.mapper.insurances.TInsurancePreRenewDetailMapper
;
import
com.yifu.cloud.plus.v1.yifu.insurances.mapper.insurances.TUpdateStatusErrorMapper
;
import
com.yifu.cloud.plus.v1.yifu.insurances.service.ekp.EkpSettleService
;
import
com.yifu.cloud.plus.v1.yifu.insurances.service.insurance.TBusinessOperateService
;
import
com.yifu.cloud.plus.v1.yifu.insurances.service.insurance.TInsuranceEkpService
;
import
com.yifu.cloud.plus.v1.yifu.insurances.service.insurance.TInsuranceSettleCancelService
;
import
com.yifu.cloud.plus.v1.yifu.insurances.service.insurance.TInsuranceSettleService
;
...
...
@@ -78,7 +81,14 @@ public class DoJointInsuranceTask {
@Autowired
private
EkpInsurancesInfoMapper
insurancesInfoMapper
;
@Autowired
private
TEmployeeInsurancePreMapper
tEmployeeInsurancePreMapper
;
@Autowired
private
TInsurancePreRenewDetailMapper
tInsurancePreRenewDetailMapper
;
@Autowired
private
TBusinessOperateService
tBusinessOperateService
;
/**
* @Description: 商险明细推送
* @Author: huyc
...
...
@@ -240,6 +250,8 @@ public class DoJointInsuranceTask {
detail
=
insuranceDetailMapper
.
selectById
(
insuranceId
);
log
.
error
(
"更新状态商险ID:"
+
detail
.
getId
()
+
"|"
+
insuranceId
);
if
(
Common
.
isNotNull
(
detail
))
{
TInsuranceDetail
detailOld
=
new
TInsuranceDetail
();
BeanCopyUtils
.
copyProperties
(
detail
,
detailOld
);
//判断订单类型是预估还是实缴
if
(
InsurancesConstants
.
ACTUAL_SETTLE_BILL
.
equals
(
viewVo
.
getOrderType
()))
{
//判断是收入还是支出结算单号
...
...
@@ -254,19 +266,37 @@ public class DoJointInsuranceTask {
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
vo
.
getPayFlag
()))
{
detail
.
setIncomeSettleFlag
(
viewVo
.
getIncomeSettleFlag
());
detail
.
setIncomeCollectFlag
(
viewVo
.
getIncomeCollectFlag
());
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
detail
.
getIsJfcd
())){
// 这里就是EKP 同步已收及垫付后同步HRO的特殊处理
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
detail
.
getIsJfcd
())
&&
"0"
.
equals
(
vo
.
getPaymentStatsus
())){
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
detail
.
getPaymentStatus
())
&&(
"0"
.
equals
(
viewVo
.
getIncomeCollectFlag
())
||
"2"
.
equals
(
viewVo
.
getIncomeCollectFlag
()))){
detail
.
setBuyHandleStatus
(
CommonConstants
.
ONE_INT
);
detail
.
setPaymentStatus
(
CommonConstants
.
ONE_STRING
);
detail
.
setPaymentTime
(
DateUtil
.
formatDatePatten
(
new
Date
(),
DateUtil
.
DATETIME_PATTERN_SECOND
));
detail
.
setUpdateBy
(
"05501879fed711eca3540242ac110010"
);
detail
.
setUpdateTime
(
LocalDateTime
.
now
());
//添加日期
tBusinessOperateService
.
saveModificationRecord
(
detail
.
getId
(),
detailOld
,
detail
,
"收款结算单已收或垫付同步更新投保状态为待投保"
);
//更新自动化
LambdaUpdateWrapper
<
TEmployeeInsurancePre
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
eq
(
TEmployeeInsurancePre:
:
getInsurancesId
,
detail
.
getId
());
updateWrapper
.
set
(
TEmployeeInsurancePre:
:
getProcessStatus
,
CommonConstants
.
THREE_STRING
);
tEmployeeInsurancePreMapper
.
update
(
null
,
updateWrapper
);
LambdaUpdateWrapper
<
TInsurancePreRenewDetail
>
updateReNewInfoWrapper
=
new
LambdaUpdateWrapper
<>();
updateReNewInfoWrapper
.
eq
(
TInsurancePreRenewDetail:
:
getInsurancesId
,
detail
.
getId
())
.
set
(
TInsurancePreRenewDetail:
:
getProcessStatus
,
CommonConstants
.
SEVEN_STRING
);
tInsurancePreRenewDetailMapper
.
update
(
null
,
updateReNewInfoWrapper
);
}
if
(
CommonConstants
.
ONE_STRING
.
equals
(
detail
.
getPaymentStatus
())
&&
"1"
.
equals
(
viewVo
.
getIncomeCollectFlag
())){
detail
.
setBuyHandleStatus
(
CommonConstants
.
SIX_INT
);
detail
.
setPaymentStatus
(
CommonConstants
.
ZERO_STRING
);
detail
.
setPaymentTime
(
CommonConstants
.
EMPTY_STRING
);
detail
.
setUpdateBy
(
"05501879fed711eca3540242ac110010"
);
detail
.
setUpdateTime
(
LocalDateTime
.
now
());
tBusinessOperateService
.
saveModificationRecord
(
detail
.
getId
(),
detailOld
,
detail
,
"收款结算单退单或撤销匹配同步更新投保状态为待缴费"
);
}
}
}
else
{
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TDispatchInfoPreController.java
View file @
dbce2f03
...
...
@@ -13,6 +13,7 @@ import com.yifu.cloud.plus.v1.yifu.common.dapr.util.MenuUtil;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner
;
import
com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils
;
import
com.yifu.cloud.plus.v1.yifu.insurances.entity.TEmployeeInsurancePre
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.TDispatchInfoPre
;
import
com.yifu.cloud.plus.v1.yifu.social.service.TDispatchInfoPreService
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.TDispatchInfoPreSearchVo
;
...
...
@@ -402,4 +403,15 @@ public class TDispatchInfoPreController {
public
void
pushDisConfrimSocial
()
{
tDispatchInfoPreService
.
pushDisConfrimSocial
();
}
/**
* 通过id查询社保或公积金待签订任务记录表
* @param registId
* @return R
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询"
)
@GetMapping
(
"/getInfoByRegistId "
)
public
R
<
TDispatchInfoPre
>
getInfoByRegistId
(
@RequestParam
(
"registId"
)
String
registId
,
@RequestParam
(
"type"
)
String
type
)
{
return
tDispatchInfoPreService
.
getInfoByRegistId
(
registId
,
type
);
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TDispatchInfoPreService.java
View file @
dbce2f03
...
...
@@ -106,4 +106,7 @@ public interface TDispatchInfoPreService extends IService<TDispatchInfoPre> {
R
confirmFund
(
List
<
String
>
idList
);
Boolean
getFundPreStatus
(
String
id
);
R
<
TDispatchInfoPre
>
getInfoByRegistId
(
String
registId
,
String
type
);
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoPreServiceImpl.java
View file @
dbce2f03
...
...
@@ -1062,4 +1062,11 @@ public class TDispatchInfoPreServiceImpl extends ServiceImpl<TDispatchInfoPreMap
}
}
}
@Override
public
R
<
TDispatchInfoPre
>
getInfoByRegistId
(
String
registId
,
String
type
)
{
if
(
Common
.
isEmpty
(
registId
)
||
Common
.
isEmpty
(
type
))
{
return
R
.
failed
(
CommonConstants
.
PARAM_INFO_ERROR
);
}
return
R
.
ok
(
baseMapper
.
selectOne
(
Wrappers
.<
TDispatchInfoPre
>
query
().
lambda
().
eq
(
TDispatchInfoPre:
:
getTypeSub
,
type
).
eq
(
TDispatchInfoPre:
:
getRegisterId
,
registId
).
last
(
CommonConstants
.
LAST_ONE_SQL
)));
}
}
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