xiaoyong931011
2021-03-04 a95ecaf7c67dc3fd872d1c9fa176b49294365ff1
src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java
@@ -60,6 +60,7 @@
import com.xcong.excoin.modules.documentary.entity.FollowTraderLabelEntity;
import com.xcong.excoin.modules.documentary.entity.FollowTraderProfitInfoEntity;
import com.xcong.excoin.modules.documentary.service.DocumentaryService;
import com.xcong.excoin.modules.documentary.vo.BeTraderConditionVo;
import com.xcong.excoin.modules.documentary.vo.DocumentaryOrderInfoVo;
import com.xcong.excoin.modules.documentary.vo.DocumentaryOrderSetInfoVo;
import com.xcong.excoin.modules.documentary.vo.FollowFollowerNoticeVo;
@@ -621,8 +622,11 @@
        documentaryOrderSetInfoVo.setFollowCnt(followCnt);
        
        Integer maxFollowCnt = followFollowerSettingEntity.getMaxFollowCnt();
        documentaryOrderSetInfoVo.setMaxFollowCnt(maxFollowCnt);
        if(maxFollowCnt == 0){
           documentaryOrderSetInfoVo.setMaxFollowCnt(null);
      }
        documentaryOrderSetInfoVo.setMaxFollowCnt(maxFollowCnt.toString());
        log.info(memberId + "-最大持仓张数-"+maxFollowCnt.toString());
      return Result.ok(documentaryOrderSetInfoVo);
   }
@@ -1131,6 +1135,7 @@
      }
      MemberSettingEntity memberSettingEntity = memberSettingDao.selectMemberSettingByMemberId(memberId);
      if(ObjectUtil.isNotEmpty(memberSettingEntity)) {
         log.info(memberId + "的消息提醒状态变更");
         memberSettingEntity.setMessageReminder(0);
         memberSettingDao.updateById(memberSettingEntity);
      }
@@ -1158,6 +1163,13 @@
      }
      return Result.ok(arrayList);
   }
   @Override
   public Result beTraderCondition() {
      String type = "apply_trader_rule";
      List<BeTraderConditionVo> beTraderConditionVos = followTraderInfoDao.selectBeTraderCondition(type);
      return Result.ok(beTraderConditionVos);
   }