xiaoyong931011
2021-01-26 04dae77fdfb98be5614e63f6698ef74a374bad8f
20210126
2 files modified
13 ■■■■ changed files
src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java 7 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/documentary/vo/TradeSetInfoVo.java 6 ●●●●● patch | view | raw | blame | history
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);
    }
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;