服务指令bug

This commit is contained in:
1378012178@qq.com 2025-08-08 14:06:03 +08:00
parent 5c55d2d11b
commit 4019d59af3
1 changed files with 2 additions and 11 deletions

View File

@ -80,17 +80,8 @@ public class DirectiveMQListener {
canAddDirective.setCategory(dto.getCategoryName());
canAddDirective.setType(dto.getTypeName());
canAddDirective.setCycleType(dto.getCycleTypeName());
List<Map> bodyTagsList = JSON.parseArray(dto.getBodyTagsObj(), Map.class);
String bodyTags = bodyTagsList.stream()
.map(map -> map.get("label").toString())
.collect(Collectors.joining(","));
canAddDirective.setBodyTags(bodyTags);
List<Map> emotionTagsList = JSON.parseArray(dto.getEmotionTagsObj(), Map.class);
String emotionTags = emotionTagsList.stream()
.map(map -> map.get("label").toString())
.collect(Collectors.joining(","));
canAddDirective.setEmotionTags(emotionTags);
canAddDirective.setBodyTags(dto.getBodyTags());
canAddDirective.setEmotionTags(dto.getEmotionTags());
canAddDirective.setOrgCode(dto.getSysOrgCode());
canAddDirective.setDelFlag("0");
canAddDirectiveService.save(canAddDirective);