| | |
| | | import com.xcong.excoin.modules.contract.dao.ContractHoldOrderDao;
|
| | | import com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity;
|
| | | import com.xcong.excoin.modules.contract.entity.ContractOrderEntity;
|
| | | import com.xcong.excoin.modules.documentary.dao.FollowFollowerNoticeDao;
|
| | | import com.xcong.excoin.modules.documentary.dao.FollowFollowerOrderRelationDao;
|
| | | import com.xcong.excoin.modules.documentary.dao.FollowFollowerProfitDao;
|
| | | import com.xcong.excoin.modules.documentary.dao.FollowFollowerSettingDao;
|
| | |
| | | import com.xcong.excoin.modules.documentary.dto.TradeOrderInfoDto;
|
| | | import com.xcong.excoin.modules.documentary.dto.UpdateDocumentaryOrderSetDto;
|
| | | import com.xcong.excoin.modules.documentary.dto.UpdateTradeSetInfoDto;
|
| | | import com.xcong.excoin.modules.documentary.entity.FollowFollowerNoticeEntity;
|
| | | import com.xcong.excoin.modules.documentary.entity.FollowFollowerOrderRelationEntity;
|
| | | import com.xcong.excoin.modules.documentary.entity.FollowFollowerProfitEntity;
|
| | | import com.xcong.excoin.modules.documentary.entity.FollowFollowerSettingEntity;
|
| | |
| | | import com.xcong.excoin.modules.documentary.service.DocumentaryService;
|
| | | import com.xcong.excoin.modules.documentary.vo.DocumentaryOrderInfoVo;
|
| | | import com.xcong.excoin.modules.documentary.vo.DocumentaryOrderSetInfoVo;
|
| | | import com.xcong.excoin.modules.documentary.vo.FollowFollowerNoticeVo;
|
| | | import com.xcong.excoin.modules.documentary.vo.FollowInfoVo;
|
| | | import com.xcong.excoin.modules.documentary.vo.FollowRecordsVo;
|
| | | import com.xcong.excoin.modules.documentary.vo.FollowTraderProfitInfoVo;
|
| | |
| | | private FollowFollowerSettingDao followFollowerSettingDao;
|
| | | @Resource
|
| | | private FollowFollowerOrderRelationDao followFollowerOrderRelationDao;
|
| | | |
| | | private FollowFollowerNoticeDao followFollowerNoticeDao;
|
| | |
|
| | |
|
| | | @Override
|
| | |
| | | Long followMemberId = followFollowerProfitEntity.getMemberId();
|
| | | Long tradeId = followFollowerProfitEntity.getTradeId();
|
| | | columnMap.put("member_id", followMemberId);
|
| | | columnMap.put("trade_id", tradeId);
|
| | | columnMap.put("trader_id", tradeId);
|
| | | List<FollowFollowerSettingEntity> selectByMap = followFollowerSettingDao.selectByMap(columnMap);
|
| | | if(CollUtil.isNotEmpty(selectByMap)) {
|
| | | for(FollowFollowerSettingEntity followFollowerSettingEntity : selectByMap) {
|
| | |
| | | return Result.ok(MessageSourceUtils.getString("member_service_0026"));
|
| | | }
|
| | |
|
| | | @Override
|
| | | public Result getFollowFollowerNoticeList() {
|
| | | //获取用户ID
|
| | | Long memberId = LoginUserUtils.getAppLoginUser().getId();
|
| | | List<FollowFollowerNoticeVo> arrayList = new ArrayList<>();
|
| | | |
| | | Map<String, Object> columnMap = new HashMap<>();
|
| | | columnMap.put("member_id", memberId);
|
| | | List<FollowFollowerNoticeEntity> selectByMap = followFollowerNoticeDao.selectByMap(columnMap );
|
| | | if(CollUtil.isNotEmpty(selectByMap)) {
|
| | | for(FollowFollowerNoticeEntity followFollowerNoticeEntity : selectByMap) {
|
| | | FollowFollowerNoticeVo followFollowerNoticeVo = new FollowFollowerNoticeVo();
|
| | | String title = followFollowerNoticeEntity.getTitle();
|
| | | followFollowerNoticeVo.setTitle(title);
|
| | | String content = followFollowerNoticeEntity.getContent();
|
| | | followFollowerNoticeVo.setContent(content);
|
| | | arrayList.add(followFollowerNoticeVo);
|
| | | }
|
| | | }
|
| | | |
| | | return Result.ok(arrayList);
|
| | | }
|
| | | |
| | |
|
| | |
|
| | |
|