From 04dae77fdfb98be5614e63f6698ef74a374bad8f Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 26 Jan 2021 17:55:37 +0800 Subject: [PATCH] 20210126 --- src/main/java/com/xcong/excoin/modules/documentary/vo/TradeSetInfoVo.java | 6 ++++-- src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java | 7 +++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java b/src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java index 23d1783..44af655 100644 --- a/src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java +++ b/src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java @@ -784,16 +784,15 @@ String labels = followTraderInfoEntity.getLabels(); if(StrUtil.isNotEmpty(labels)) { - String labelsName = ""; + ArrayList<FollowTraderLabelEntity> arrayList = new ArrayList<>(); String[] split = labels.split(","); int length = split.length; for(int i = 0;i < length;i++) { String string = split[i]; FollowTraderLabelEntity selectById = followTraderLabelDao.selectById(Long.parseLong(string)); - labelsName = selectById.getLabels(); - labelsName += (labelsName + ","); + arrayList.add(selectById); } - tradeSetInfoVo.setLabels(labelsName); + tradeSetInfoVo.setFollowTraderLabelEntitys(arrayList); } return Result.ok(tradeSetInfoVo); } diff --git a/src/main/java/com/xcong/excoin/modules/documentary/vo/TradeSetInfoVo.java b/src/main/java/com/xcong/excoin/modules/documentary/vo/TradeSetInfoVo.java index 1f0d0a7..59ef975 100644 --- a/src/main/java/com/xcong/excoin/modules/documentary/vo/TradeSetInfoVo.java +++ b/src/main/java/com/xcong/excoin/modules/documentary/vo/TradeSetInfoVo.java @@ -1,12 +1,14 @@ package com.xcong.excoin.modules.documentary.vo; +import java.util.List; + import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @Data @ApiModel(value = "TradeSetInfoVo", description = "返回类") -public class TradeSetInfoVo { +public class TradeSetInfoVo<FollowTraderLabelEntity> { @ApiModelProperty(value = "交易员ID") private Long tradeId; @@ -24,7 +26,7 @@ private String declaration; @ApiModelProperty("标签") - private String labels; + private List<FollowTraderLabelEntity> FollowTraderLabelEntitys; -- Gitblit v1.9.1