xiaoyong931011
2021-01-26 5003922498b3780660217ef2c77c50b836e166a3
src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java
@@ -182,8 +182,8 @@
                 for(int i = 0;i < length;i++) {
                    String string = split[i];
                    FollowTraderLabelEntity selectById = followTraderLabelDao.selectById(Long.parseLong(string));
                    labelsName = selectById.getLabels();
                    labelsName += (labelsName + ",");
                    String labelsNames = selectById.getLabels();
                    labelsName += (labelsNames + ",");
                 }
                 FollowTraderProfitInfoVo.setLabels(labelsName);
              }
@@ -194,7 +194,7 @@
   }
   
   public static void main(String[] args) {
      String labels = "";
      String labels = "1,2,3";
      if(StrUtil.isNotEmpty(labels)) {
         String labelsName = "";
         String[] split = labels.split(",");
@@ -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);
   }