Commit 732b9e86 authored by chenyuxi's avatar chenyuxi

feat: 瓜子档案、合同、合同附件推送成功后,更新档案里的状态

parent 6959d953
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
*/ */
package com.yifu.cloud.plus.v1.yifu.archives.service.impl; package com.yifu.cloud.plus.v1.yifu.archives.service.impl;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.yifu.cloud.plus.v1.yifu.archives.config.GzConfig; import com.yifu.cloud.plus.v1.yifu.archives.config.GzConfig;
import com.yifu.cloud.plus.v1.yifu.archives.entity.*; import com.yifu.cloud.plus.v1.yifu.archives.entity.*;
...@@ -263,6 +264,14 @@ public class TGzPushHandleServiceImpl implements TGzPushHandleService { ...@@ -263,6 +264,14 @@ public class TGzPushHandleServiceImpl implements TGzPushHandleService {
// 公共处理瓜子返回的信息 // 公共处理瓜子返回的信息
this.handlePushReturnCommon(pushInfo, returnMap); this.handlePushReturnCommon(pushInfo, returnMap);
// 改档案里的【档案推送状态】为 已推送
if(CommonConstants.GZ_SUCCESS_CODE.equals(returnMap.get("responseCode"))){
LambdaUpdateWrapper<TGzEmpInfo> updateEmpWrapper = new LambdaUpdateWrapper<>();
updateEmpWrapper.eq(TGzEmpInfo::getBizId, pushInfo.getBizId())
.set(TGzEmpInfo::getEmpPushStatus, CommonConstants.ZERO_STRING);
tGzEmpInfoService.update(null, updateEmpWrapper);
}
} }
} }
...@@ -281,6 +290,14 @@ public class TGzPushHandleServiceImpl implements TGzPushHandleService { ...@@ -281,6 +290,14 @@ public class TGzPushHandleServiceImpl implements TGzPushHandleService {
// 公共处理瓜子返回的信息 // 公共处理瓜子返回的信息
this.handlePushReturnCommon(pushInfo, returnMap); this.handlePushReturnCommon(pushInfo, returnMap);
// 改档案里的【合同信息推送状态】状态为 已推送
if(CommonConstants.GZ_SUCCESS_CODE.equals(returnMap.get("responseCode"))){
LambdaUpdateWrapper<TGzEmpInfo> updateEmpWrapper = new LambdaUpdateWrapper<>();
updateEmpWrapper.eq(TGzEmpInfo::getBizId, pushInfo.getBizId())
.set(TGzEmpInfo::getContractPushStatus, CommonConstants.ZERO_STRING);
tGzEmpInfoService.update(null, updateEmpWrapper);
}
} }
} }
...@@ -354,6 +371,15 @@ public class TGzPushHandleServiceImpl implements TGzPushHandleService { ...@@ -354,6 +371,15 @@ public class TGzPushHandleServiceImpl implements TGzPushHandleService {
// 公共处理瓜子返回的信息 // 公共处理瓜子返回的信息
this.handlePushReturnCommon(pushInfo, returnMap); this.handlePushReturnCommon(pushInfo, returnMap);
// 改档案里的【合同附件推送状态】为 已推送
if(CommonConstants.GZ_SUCCESS_CODE.equals(returnMap.get("responseCode"))){
LambdaUpdateWrapper<TGzEmpInfo> updateEmpWrapper = new LambdaUpdateWrapper<>();
updateEmpWrapper.eq(TGzEmpInfo::getBizId, pushInfo.getBizId())
.set(TGzEmpInfo::getContractAttaPushStatus, CommonConstants.ZERO_STRING);
tGzEmpInfoService.update(null, updateEmpWrapper);
}
} catch (Exception e) { } catch (Exception e) {
log.error("瓜子附件推送失败!"); log.error("瓜子附件推送失败!");
pushInfo.setPushStatus(CommonConstants.ONE_STRING); pushInfo.setPushStatus(CommonConstants.ONE_STRING);
......
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