|
@@ -248,7 +248,7 @@ public class MerchantApplyServiceImpl implements MerchantApplyService {
|
|
|
alert += "\n审核时间: " + LocalDateTime.now().format(formatter);
|
|
|
|
|
|
List<String> userRsgIds = memberUserService.getUserRsgIds(null, merchantApply.getApplyMemberUserId());
|
|
|
- if (userRsgIds != null) {
|
|
|
+ if (userRsgIds != null && !userRsgIds.isEmpty()) {
|
|
|
String url = jPushUtils.getUrl(title, merchantApply.getId(), null);
|
|
|
RequestBody requestBody = jPushUtils.getRequestBody(userRsgIds, alert, title, url);
|
|
|
jPushUtils.jPush(requestBody, merchantApply.getApplyMemberUserId(), null, merchantApply.getId());
|
|
@@ -294,7 +294,7 @@ public class MerchantApplyServiceImpl implements MerchantApplyService {
|
|
|
return;
|
|
|
}
|
|
|
List<String> userRsgIds = memberUserService.getUserRsgIds(sentSystemUserId, null);
|
|
|
- if (userRsgIds != null) {
|
|
|
+ if (userRsgIds != null && !userRsgIds.isEmpty()) {
|
|
|
String url = jPushUtils.getUrl(title, merchantApply.getId(), sentSystemUserId);
|
|
|
RequestBody requestBody = jPushUtils.getRequestBody(userRsgIds, alert, title, url);
|
|
|
jPushUtils.jPush(requestBody, merchantApply.getApplyMemberUserId(), sentSystemUserId, merchantApply.getId());
|