|
@@ -88,8 +88,8 @@ public class GamePolicyConfigServiceImpl extends ServiceImpl<GamePolicyConfigMap
|
|
|
.type(param.getType())
|
|
|
.configParam(configParam)
|
|
|
.configExplain(param.getConfigExplain())
|
|
|
- .userIds(CollectionUtils.isEmpty(param.getUserIds()) ? null : StringUtils.join(param.getUserIds().toArray(), ","))
|
|
|
- .tagIds(CollectionUtils.isEmpty(param.getTagIds()) ? null : StringUtils.join(param.getTagIds().toArray(), ","))
|
|
|
+ .userIds(CollectionUtils.isEmpty(param.getUserIds()) ? null : StringUtils.join(param.getUserIds().toArray(), "-"))
|
|
|
+ .tagIds(CollectionUtils.isEmpty(param.getTagIds()) ? null : StringUtils.join(param.getTagIds().toArray(), "-"))
|
|
|
.updateBy(sysUserId)
|
|
|
.updateTime(now)
|
|
|
.build();
|
|
@@ -138,13 +138,13 @@ public class GamePolicyConfigServiceImpl extends ServiceImpl<GamePolicyConfigMap
|
|
|
GameDTO game = gameService.getById(vo.getSuperGameId());
|
|
|
String superGameName = null == gameSupper ? (null == game ? null : game.getName()) : gameSupper.getName();
|
|
|
List<Long> userIds = StringUtils.isNotBlank(vo.getUserIds()) ?
|
|
|
- Arrays.stream(vo.getUserIds().split(",")).map(Long::valueOf).collect(Collectors.toList()) : null;
|
|
|
+ Arrays.stream(vo.getUserIds().split("-")).map(Long::valueOf).collect(Collectors.toList()) : null;
|
|
|
List<Long> tagIds = StringUtils.isNotBlank(vo.getTagIds()) ?
|
|
|
- Arrays.stream(vo.getTagIds().split(",")).map(Long::valueOf).collect(Collectors.toList()) : null;
|
|
|
+ Arrays.stream(vo.getTagIds().split("-")).map(Long::valueOf).collect(Collectors.toList()) : null;
|
|
|
//告警人员名称
|
|
|
StringBuilder userNameStr = new StringBuilder();
|
|
|
if (StringUtils.isNotBlank(vo.getUserIds())) {
|
|
|
- String[] ids = vo.getUserIds().split(",");
|
|
|
+ String[] ids = vo.getUserIds().split("-");
|
|
|
for (int i = 0; i < ids.length; i++) {
|
|
|
userNameStr.append(sysUserRpc.getById(Long.valueOf(ids[i])).getData().getNickname());
|
|
|
if (i != ids.length -1) {
|
|
@@ -155,7 +155,7 @@ public class GamePolicyConfigServiceImpl extends ServiceImpl<GamePolicyConfigMap
|
|
|
//排除标签名称
|
|
|
StringBuilder tagNameStr = new StringBuilder();
|
|
|
if (StringUtils.isNotBlank(vo.getTagIds())) {
|
|
|
- String[] tIds = vo.getTagIds().split(",");
|
|
|
+ String[] tIds = vo.getTagIds().split("-");
|
|
|
for (int i = 0; i < tIds.length; i++) {
|
|
|
tagNameStr.append(ExcludeTagsEnum.getTagName(Integer.valueOf(tIds[i])));
|
|
|
if (i != tIds.length -1) {
|