Commit e40c0e72 authored by hongguangwu's avatar hongguangwu

MVP1.7.6-医保死亡转人工

parent 2181cd78
......@@ -223,39 +223,47 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
R<String> urlR;
for (SociaFriendYgsAddVo vo : ysdAddlist) {
// 0:未到时间不动; 1:推送; 2:转人工
canPushType = this.getCanPushTypeYsd(socialSetMap, vo);
if (1 == canPushType) {
try {
socialInfo = new TSocialInfo();
socialInfo.setId(vo.getSocialId());
// 房工接口,获取 企业职工基本医疗保险参保登记表 url
urlR = doExportRoster(vo.getSocialId(), String.valueOf(type), vo.getUnitCreditCode());
if (urlR != null && urlR.getCode() == 200 && Common.isNotNull(urlR.getData())) {
vo.setQyzgjbylbxcbdjb(urlR.getData());
if ("劳动者死亡".equals(vo.getTbyy())) {
remark = "劳动者死亡,转人工!";
socialInfo = new TSocialInfo();
socialInfo.setId(vo.getSocialId());
socialInfo.setYsdHandleStatus(CommonConstants.FIVE_STRING);
renGongList.add(socialInfo);
} else {
canPushType = this.getCanPushTypeYsd(socialSetMap, vo);
if (1 == canPushType) {
try {
socialInfo = new TSocialInfo();
socialInfo.setId(vo.getSocialId());
// 房工接口,获取 企业职工基本医疗保险参保登记表 url
urlR = doExportRoster(vo.getSocialId(), String.valueOf(type), vo.getUnitCreditCode());
if (urlR != null && urlR.getCode() == 200 && Common.isNotNull(urlR.getData())) {
vo.setQyzgjbylbxcbdjb(urlR.getData());
}
requestId = socialFriendConfig.pushFriendByInfo(restTemplate, vo, type, thisTime, backLogList);
if (Common.isEmpty(requestId)) {
socialInfo.setYsdRequestId("推送税友失败");
socialInfo.setYsdHandleStatus(CommonConstants.FIVE_STRING);
remark = "推送税友失败,转人工处理!";
} else {
socialInfo.setYsdRequestId(requestId);
socialInfo.setYsdHandleStatus(CommonConstants.TWO_STRING);
remark = "已推送提交任务!";
}
tSocialInfoService.updateById(socialInfo);
} catch (Exception e) {
remark = "提交社保士兵异常!";
}
requestId = socialFriendConfig.pushFriendByInfo(restTemplate, vo, type, thisTime, backLogList);
if (Common.isEmpty(requestId)) {
socialInfo.setYsdRequestId("推送税友失败");
socialInfo.setYsdHandleStatus(CommonConstants.FIVE_STRING);
remark = "推送税友失败,转人工处理!";
} else {
if (0 == canPushType) {
remark = "未到时间,不推送!";
} else {
socialInfo.setYsdRequestId(requestId);
socialInfo.setYsdHandleStatus(CommonConstants.TWO_STRING);
remark = "已推送提交任务!";
remark = "无时间配置或超出办理截止时间,转人工!";
socialInfo = new TSocialInfo();
socialInfo.setId(vo.getSocialId());
socialInfo.setYsdHandleStatus(CommonConstants.FIVE_STRING);
renGongList.add(socialInfo);
}
tSocialInfoService.updateById(socialInfo);
} catch (Exception e) {
remark = "提交社保士兵异常!";
}
} else {
if (0 == canPushType) {
remark = "未到时间,不推送!";
} else {
remark = "无时间配置或超出办理截止时间,转人工!";
socialInfo = new TSocialInfo();
socialInfo.setId(vo.getSocialId());
socialInfo.setYsdHandleStatus(CommonConstants.FIVE_STRING);
renGongList.add(socialInfo);
}
}
socialLog = tSocialSoldierLogService.getFriendLog(vo, typeStr, "医保", remark);
......
......@@ -75,7 +75,7 @@
when '2' then '无固定期限劳动合同'
else '固定期限劳动合同' end contractTypeTwo,
a.CONTRACT_END contractEnd,
if(a.REDUCE_REASON = '16','死亡或失踪','在职人员主动解除劳动合同') tbyy,
if(a.REDUCE_REASON = '16','其他原因中断缴费','在职人员主动解除劳动合同') tbyy,
case a.REDUCE_REASON
when '21' then '职工与用人单位协商一致解除劳动合同(18条1款)'
when '5' then '第四十四条第二项,劳动者开始依法享受基本养老保险待遇'
......@@ -213,7 +213,7 @@
when '2' then '无固定期限劳动合同'
else '固定期限劳动合同' end contractTypeTwo,
a.CONTRACT_END contractEnd,
if(a.REDUCE_REASON = '16','人员失踪','在职人员解除/终止劳动合同') tbyy,
if(a.REDUCE_REASON = '16','劳动者死亡','在职人员解除/终止劳动合同') tbyy,
case a.REDUCE_REASON
when '21' then '职工与用人单位协商一致解除劳动合同(18条1款)'
when '5' then '第四十四条第二项,劳动者开始依法享受基本养老保险待遇'
......
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