Commit 39d45009 authored by huyuchen's avatar huyuchen

huych-合同自动化代码提交

parent 9c4411a0
......@@ -547,20 +547,20 @@ public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGz
employeeService.save(smsEmployee);
params.add(paramVo);
res = sendMessage(phones, params,CommonConstants.TWO_STRING);
//更新Offer信息接收表发送状态为已发送
LambdaUpdateWrapper<TGzOfferInfo> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.eq(TGzOfferInfo::getId, sendVo.getId())
.eq(TGzOfferInfo::getOfferSendStatus, CommonConstants.ONE_STRING)
.set(TGzOfferInfo::getOfferSendStatus, CommonConstants.ZERO_STRING)
.set(TGzOfferInfo::getUpdateTime, LocalDateTime.now())
.set(TGzOfferInfo::getUpdateBy, user.getId());
// 执行更新操作
this.update(updateWrapper);
if (null != res && null != res.getBizId()) {
//发送成功
smsEmployee.setBizId(res.getBizId());
smsEmployee.setMessage(res.getMessage());
employeeService.updateById(smsEmployee);
//更新Offer信息接收表发送状态为已发送
LambdaUpdateWrapper<TGzOfferInfo> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.eq(TGzOfferInfo::getId, sendVo.getId())
.eq(TGzOfferInfo::getOfferSendStatus, CommonConstants.ONE_STRING)
.set(TGzOfferInfo::getOfferSendStatus, CommonConstants.ZERO_STRING)
.set(TGzOfferInfo::getUpdateTime, LocalDateTime.now())
.set(TGzOfferInfo::getUpdateBy, user.getId());
// 执行更新操作
this.update(updateWrapper);
// 记录发送短信成功的offerId 到集合
successOfferIds.add(sendVo.getId());
......
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