...
|
...
|
@@ -639,6 +639,8 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
int result = unionShareUserMapper.insertSelective(unionShareUser);
|
|
|
if (result > 0) {
|
|
|
logger.info("relateUnionType,begin to send message,uid is {},unionType is {}", uid,unionDepartmentUrl.getUnionType());
|
|
|
//
|
|
|
sendMessageHelper.sendMessage(uid,1,unionShareUser.getCreateTime(),null);
|
|
|
//发送联盟用户申请成功短信
|
|
|
sendSmsService.smsSendByMobile(UNION_SHARE_USER_APPLY_PASS_SMS_CONTENT, Lists.newArrayList(mobile));
|
|
|
}
|
...
|
...
|
@@ -1703,7 +1705,8 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
return;
|
|
|
}
|
|
|
logger.info("sendUidAoumtMessage,startTime is {},endTime is {},uids is {}.",startTime,endTime,uids);
|
|
|
uids.forEach(u->sendMessageHelper.sendMessage(u.getPromoteUid(),1,u));
|
|
|
int now = DateUtil.getCurrentTimeSecond();
|
|
|
uids.forEach(u->sendMessageHelper.sendMessage(u.getPromoteUid(),1,now,u.getAmount()));
|
|
|
}
|
|
|
/**
|
|
|
* 发送可结算佣金提醒
|
...
|
...
|
@@ -1715,7 +1718,8 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
return;
|
|
|
}
|
|
|
logger.info("sendUidSettlementMessage,startTime is {},endTime is {},uids is {}.",startTime,endTime,uids);
|
|
|
uids.forEach(u->sendMessageHelper.sendMessage(u.getPromoteUid(),3,u));
|
|
|
int now = DateUtil.getCurrentTimeSecond();
|
|
|
uids.forEach(u->sendMessageHelper.sendMessage(u.getPromoteUid(),3,now,u.getAmount()));
|
|
|
}
|
|
|
|
|
|
//查询已结束等待发放奖励的普通额外返活动
|
...
|
...
|
@@ -2471,7 +2475,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
unionShareOrdersMapper.updateStatusByCode(bo.getSettlementCode(), ShareOrdersStatusEnum.SETTLE.getCode(), ShareOrdersStatusEnum.HAS_SETTLE.getCode(), updateReq.getUpdateTime());
|
|
|
|
|
|
//todo 发送打款公众号消息
|
|
|
sendMessageHelper.sendMessage(bo.getPromoteUid(),2,bo);
|
|
|
sendMessageHelper.sendMessage(bo.getPromoteUid(),2,updateReq.getUpdateTime(),bo.getSettlementAmount());
|
|
|
//清缓存
|
|
|
clearShareOrderRedis(unionShareSettlement.getPromoteUid());
|
|
|
}
|
...
|
...
|
@@ -2687,7 +2691,10 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
logger.info("addMessage.req is {}",record);
|
|
|
record.setCreateTime(DateUtils.getCurrentTimeSecond());
|
|
|
record.setUpdateTime(DateUtils.getCurrentTimeSecond());
|
|
|
|
|
|
//列表页有固定的分享id
|
|
|
if (record.getType() == 3 && record.getSomeKey() == null) {
|
|
|
record.setSomeKey(configReader.getInt(UNION_SHAREID, 0));
|
|
|
}
|
|
|
return unionShareMessageMapper.insert(record);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -2706,7 +2713,10 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
if(null == record || null == record.getId()) {
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
//列表页有固定的分享id
|
|
|
if (record.getType() == 3 && record.getSomeKey() == null) {
|
|
|
record.setSomeKey(configReader.getInt(UNION_SHAREID, 0));
|
|
|
}
|
|
|
record.setUpdateTime(DateUtils.getCurrentTimeSecond());
|
|
|
return unionShareMessageMapper.updateByPrimaryKeySelective(record);
|
|
|
}
|
...
|
...
|
|