Commit 31253d4f by zhiwj

账户余额不足7天发一次

parent 79cf2681
...@@ -257,14 +257,14 @@ public class BillingAccountApiServiceImpl implements BillingAccountApiService { ...@@ -257,14 +257,14 @@ public class BillingAccountApiServiceImpl implements BillingAccountApiService {
RedisUtil.setCache("message:" + enterpriseId, 1, 1L, TimeUnit.DAYS); RedisUtil.setCache("message:" + enterpriseId, 1, 1L, TimeUnit.DAYS);
} }
} else if (account.getAccountBalance() < ACCOUNT_NOTICE_LINE) { } else if (account.getAccountBalance() < ACCOUNT_NOTICE_LINE) {
Object cache = RedisUtil.getCache("message:" + enterpriseId); Object cache = RedisUtil.getCache("insufficientAccountBalanceMessage:" + enterpriseId);
if (cache == null) { if (cache == null) {
String content = "您的达摩账户余额已不足1000元,若账户欠费将中断部分正常业务,请及时<a href='" + config.getHost() + "cost-center/billing-center/recharge'>充值</a>"; String content = "您的达摩账户余额已不足1000元,若账户欠费将中断部分正常业务,请及时<a href='" + config.getHost() + "cost-center/billing-center/recharge'>充值</a>";
this.pushMessageApiService.pushMessage(enterpriseId, "系统消息", "商户欠费", content); this.pushMessageApiService.pushMessage(enterpriseId, "系统消息", "商户欠费", content);
sendSms(enterpriseId, "GICJFZX001"); sendSms(enterpriseId, "GICJFZX001");
// 待办事项 // 待办事项
sendTotoItem(enterpriseId, "您的达摩账户余额已不足1000元"); sendTotoItem(enterpriseId, "您的达摩账户余额已不足1000元");
RedisUtil.setCache("message:" + enterpriseId, 1, 1L, TimeUnit.DAYS); RedisUtil.setCache("insufficientAccountBalanceMessage:" + enterpriseId, 1, 7L, TimeUnit.DAYS);
} }
} }
} }
......
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