|
|
|
@@ -101,7 +101,8 @@ public class WxCouponPresentServiceImpl implements WxCouponPresentService { |
|
|
|
} |
|
|
|
//添加记录 |
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
record.setId(idWorker.nextId()); |
|
|
|
long id = idWorker.nextId(); |
|
|
|
record.setId(id); |
|
|
|
record.setCouponName(wxCoupon.getTitle()); |
|
|
|
record.setSendAmount(phoneSet.size()); |
|
|
|
wxCouponPresentMapper.insertSelective(record); |
|
|
|
@@ -117,6 +118,7 @@ public class WxCouponPresentServiceImpl implements WxCouponPresentService { |
|
|
|
//发送 |
|
|
|
sendMsg(tenantId, phone, title, name, couponPassword.getPassword(), couponPassword.getId().toString()); |
|
|
|
//记录发送数据便于更新状态 |
|
|
|
couponPassword.setPresentId(id); |
|
|
|
couponPassword.setSendedPhone(phone); |
|
|
|
tempList.add(couponPassword); |
|
|
|
i++; |
|
|
|
|