Commit 76639397 authored by chenyuxi's avatar chenyuxi

feat: 瓜子待签署时更新入职日期,推入职日期

parent ef1ff3a5
......@@ -2281,7 +2281,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
}
//更新瓜子offer状态
public void updateGzOfferStatus(TEmployeeContractInfo contractInfo,String preStatus,String updStatus, String userId, String nickname) {
private void updateGzOfferStatus(TEmployeeContractInfo contractInfo,String preStatus,String updStatus, String userId, String nickname) {
if(Common.isEmpty(contractInfo)){
return;
}
......@@ -2291,6 +2291,10 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
.eq(TGzOfferInfo::getDelFlag,CommonConstants.ZERO_STRING)
.last(CommonConstants.LAST_ONE_SQL));
if (Common.isNotNull(gzOfferInfo)) {
// updStatus == 13:待签署 更新 入职日期为合同开始时间
if(CommonConstants.THIRTEEN_STRING.equals(updStatus)){
gzOfferInfo.setExpEntryDate(contractInfo.getContractStart());
}
gzOfferInfo.setOfferStatus(updStatus);
gzOfferInfo.setUpdateBy(userId);
gzOfferInfo.setUpdateTime(LocalDateTime.now());
......
......@@ -2781,6 +2781,8 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
.eq(TGzOfferInfo::getDelFlag,CommonConstants.ZERO_STRING)
.last(CommonConstants.LAST_ONE_SQL));
if (Common.isNotNull(gzOfferInfo)) {
// 13:待签署 更新 入职日期为合同开始时间
gzOfferInfo.setExpEntryDate(contract.getContractStart());
gzOfferInfo.setOfferStatus(CommonConstants.THIRTEEN_STRING);
gzOfferInfoMapper.updateById(gzOfferInfo);
......
......@@ -190,6 +190,11 @@ public class TGzPushHandleServiceImpl implements TGzPushHandleService {
params.put("email", findOffer.getEmail());
}
// taskType == 13:待签署 推入职日期
if(CommonConstants.THIRTEEN_STRING.equals(pushInfo.getTaskType())){
params.put("entryDate", findOffer.getExpEntryDate());
}
// 调瓜子接口
Map<String,String> returnMap = gzConfig.updateGzOfferStatus(restTemplate, params);
// 公共处理瓜子返回的信息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment