Quellcode durchsuchen

Merge branch 'hotfix'

tags/v1.9.0
wanghaoran vor 1 Jahr
Ursprung
Commit
0fc891b235
2 geänderte Dateien mit 16 neuen und 16 gelöschten Zeilen
  1. +8
    -8
      tuoheng-api/src/main/java/com/tuoheng/api/service/impl/WestreamActivityApplyServiceImpl.java
  2. +8
    -8
      tuoheng-api/src/main/java/com/tuoheng/api/service/impl/WestreamSuggestServiceImpl.java

+ 8
- 8
tuoheng-api/src/main/java/com/tuoheng/api/service/impl/WestreamActivityApplyServiceImpl.java Datei anzeigen

@@ -55,14 +55,14 @@ public class WestreamActivityApplyServiceImpl extends BaseServiceImpl<WestreamAc
}
super.add(entity);
//向对应的审批人发送短信,获取手机号
Tenant tenant = tenantMapper.selectById(entity.getTenantId());
User user = userMapper.selectOne(Wrappers.<User>lambdaQuery().eq(User::getUsername, tenant.getUsername()).eq(User::getMark, 1));
String mobile = user.getMobile();
if (StringUtils.isNotEmpty(mobile)) {
List<String> list = Arrays.stream(mobile.split(",")).collect(Collectors.toList());
//发送短信
textMessageService.sendMessage(list);
}
// Tenant tenant = tenantMapper.selectById(entity.getTenantId());
// User user = userMapper.selectOne(Wrappers.<User>lambdaQuery().eq(User::getUsername, tenant.getUsername()).eq(User::getMark, 1));
// String mobile = user.getMobile();
// if (StringUtils.isNotEmpty(mobile)) {
// List<String> list = Arrays.stream(mobile.split(",")).collect(Collectors.toList());
// //发送短信
// textMessageService.sendMessage(list);
// }

return JsonResult.success();
}

+ 8
- 8
tuoheng-api/src/main/java/com/tuoheng/api/service/impl/WestreamSuggestServiceImpl.java Datei anzeigen

@@ -55,14 +55,14 @@ public class WestreamSuggestServiceImpl extends BaseServiceImpl<WestreamSuggestM
return JsonResult.error("openid为空!");
}
//向对应的审批人发送短信,获取手机号
Tenant tenant = tenantMapper.selectById(entity.getTenantId());
User user = userMapper.selectOne(Wrappers.<User>lambdaQuery().eq(User::getUsername, tenant.getUsername()).eq(User::getMark, 1));
String mobile = user.getMobile();
if (StringUtils.isNotEmpty(mobile)) {
List<String> list = Arrays.stream(mobile.split(",")).collect(Collectors.toList());
//发送短信
textMessageService.sendMessage(list);
}
// Tenant tenant = tenantMapper.selectById(entity.getTenantId());
// User user = userMapper.selectOne(Wrappers.<User>lambdaQuery().eq(User::getUsername, tenant.getUsername()).eq(User::getMark, 1));
// String mobile = user.getMobile();
// if (StringUtils.isNotEmpty(mobile)) {
// List<String> list = Arrays.stream(mobile.split(",")).collect(Collectors.toList());
// //发送短信
// textMessageService.sendMessage(list);
// }
return super.add(entity);
}


Laden…
Abbrechen
Speichern