xiaoyong931011
2021-01-28 968f77fbe04b387274522ad5e682bacdbbcbe9bc
src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java
@@ -176,16 +176,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);
                 }
                 FollowTraderProfitInfoVo.setLabels(labelsName);
                 FollowTraderProfitInfoVo.setLabels(arrayList);
              }
              
           }
@@ -194,7 +193,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 +783,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);
   }