| | |
| | | import javax.annotation.Resource;
|
| | | import javax.validation.Valid;
|
| | |
|
| | | import com.xcong.excoin.modules.documentary.common.NoticeConstant;
|
| | | import com.xcong.excoin.utils.*;
|
| | | import org.springframework.stereotype.Service;
|
| | | import org.springframework.transaction.annotation.Transactional;
|
| | |
|
| | |
| | | import com.xcong.excoin.modules.member.entity.MemberLevelRateEntity;
|
| | | import com.xcong.excoin.modules.member.entity.MemberWalletContractEntity;
|
| | | import com.xcong.excoin.modules.platform.entity.PlatformTradeSettingEntity;
|
| | | import com.xcong.excoin.utils.CacheSettingUtils;
|
| | | import com.xcong.excoin.utils.CoinTypeConvert;
|
| | | import com.xcong.excoin.utils.MessageSourceUtils;
|
| | | import com.xcong.excoin.utils.RedisUtils;
|
| | |
|
| | | import cn.hutool.core.collection.CollUtil;
|
| | | import cn.hutool.core.util.ObjectUtil;
|
| | |
| | | myFollowOrderVo.setLeverRatio(leverRatio);
|
| | | BigDecimal rewardAmount = contractOrderEntity.getRewardAmount().setScale(2, BigDecimal.ROUND_DOWN);
|
| | | myFollowOrderVo.setRewardAmount(rewardAmount);
|
| | | BigDecimal rewardRatio = contractOrderEntity.getRewardRatio().setScale(2, BigDecimal.ROUND_DOWN);
|
| | | BigDecimal rewardRatio = contractOrderEntity.getRewardRatio().setScale(4, BigDecimal.ROUND_DOWN);
|
| | | myFollowOrderVo.setRewardRatio(rewardRatio);
|
| | | int symbolCnt = contractOrderEntity.getSymbolCnt();
|
| | | myFollowOrderVo.setSymbolCnt(symbolCnt);
|
| | |
| | | FollowFollowerProfitEntity followFollowerProfitEntity = followFollowerProfitDao.selectById(id);
|
| | | followFollowerProfitEntity.setIsFollow(FollowFollowerProfitEntity.IS_FOLLOW_N);
|
| | | followFollowerProfitDao.updateById(followFollowerProfitEntity);
|
| | | |
| | |
|
| | | //删除【跟随者设置】
|
| | | Map<String, Object> columnMap = new HashMap<>();
|
| | | Long followMemberId = followFollowerProfitEntity.getMemberId();
|
| | |
| | | followFollowerSettingDao.deleteById(followFollowerSettingEntity.getId());
|
| | | }
|
| | | }
|
| | | |
| | |
|
| | | FollowTraderInfoEntity traderInfoEntity = followTraderInfoDao.selectTraderInfoByMemberId(memberId);
|
| | |
|
| | | if (traderInfoEntity != null) {
|
| | | LogRecordUtils.insertFollowerNotice(memberId, NoticeConstant.STOP_FOLLOW_TITLE, StrUtil.format(NoticeConstant.STOP_FOLLOW_CONTENT, traderInfoEntity.getNickname()));
|
| | | }
|
| | | return Result.ok(MessageSourceUtils.getString("member_service_0026"));
|
| | | }
|
| | |
|