服务指令bug
This commit is contained in:
parent
5c55d2d11b
commit
4019d59af3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue