| | |
| | | private final MallRegisterAppealMapper mallRegisterAppealMapper; |
| | | private final MallMemberBankMapper mallMemberBankMapper; |
| | | private final IMallMoneyFlowService mallMoneyFlowService; |
| | | private final MallProductBuyRecordMapper mallProductBuyRecordMapper; |
| | | private final MallProductBuyMapper mallProductBuyMapper; |
| | | |
| | | |
| | | @Value("${spring.profiles.active}") |
| | |
| | | MallMemberAmount mallMemberAmount = new MallMemberAmount(); |
| | | mallMemberAmount.setMemberId(mallMember.getId()); |
| | | mallMemberAmountMapper.insert(mallMemberAmount); |
| | | return new FebsResponse().success().message("注册成功"); |
| | | |
| | | MallMemberPayment mallMemberPayment = new MallMemberPayment(); |
| | | mallMemberPayment.setMemberId(mallMember.getId()); |
| | | mallMemberPaymentMapper.insert(mallMemberPayment); |
| | | |
| | | ApiRegisterVo apiRegisterVo = new ApiRegisterVo(); |
| | | apiRegisterVo.setAccount(accountLogin); |
| | | apiRegisterVo.setAccount(userKey); |
| | | return new FebsResponse().success().data(apiRegisterVo); |
| | | } |
| | | |
| | | @Override |
| | |
| | | BigDecimal nftFeePercent = ObjectUtil.isEmpty(nftFeeDic) ? new BigDecimal(20) : new BigDecimal(nftFeeDic.getValue()); |
| | | mallMemberVo.setNftFee(nftFeePercent); |
| | | |
| | | DataDictionaryCustom memberFrozenFcmCntDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.MEMBER_FROZEN_FCM_CNT.getType(), |
| | | DataDictionaryEnum.MEMBER_FROZEN_FCM_CNT.getCode() |
| | | ); |
| | | BigDecimal memberFrozenFcmCnt = ObjectUtil.isEmpty(memberFrozenFcmCntDic) ? new BigDecimal(100) : new BigDecimal(memberFrozenFcmCntDic.getValue()); |
| | | mallMemberVo.setUnfrozenCnt(memberFrozenFcmCnt); |
| | | |
| | | DataDictionaryCustom dic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(AppContants.AGENT_LEVEL, mallMember.getLevel()); |
| | | if (dic != null) { |
| | | mallMemberVo.setLevelName(dic.getDescription()); |
| | |
| | | DataDictionaryEnum.YU_YUE_END_TIME.getCode() |
| | | ); |
| | | mallMemberVo.setEndTime(endTimeDic.getValue()); |
| | | |
| | | Integer pickCount = mallProductBuyMapper.selectListByMemberIdAndState(id,ProductEnum.PRODUCT_BUY_SUCCESS.getValue()); |
| | | mallMemberVo.setPickCount(pickCount); |
| | | return new FebsResponse().success().data(mallMemberVo); |
| | | } |
| | | |
| | |
| | | IPage<MoneyFlowVo> page = new Page<>(moneyFlowDto.getPageNum(), moneyFlowDto.getPageSize()); |
| | | Long id = LoginUserUtil.getLoginUser().getId(); |
| | | moneyFlowDto.setMemberId(id); |
| | | IPage<MoneyFlowVo> pages = mallMoneyFlowMapper.selectApiMoneyFlowInPage(page, moneyFlowDto); |
| | | // IPage<MoneyFlowVo> pages = mallMoneyFlowMapper.selectApiMoneyFlowInPage(page, moneyFlowDto); |
| | | IPage<MoneyFlowVo> pages = mallMoneyFlowMapper.selectApiFcmMoneyFlowInPage(page, moneyFlowDto); |
| | | return new FebsResponse().success().data(pages); |
| | | } |
| | | |
| | |
| | | BigDecimal amount = transferDto.getAmount(); |
| | | int type = transferDto.getType(); |
| | | |
| | | if(1 != type || 2 != type){ |
| | | if(1 != type && 2 != type){ |
| | | throw new FebsException("请选择互转类型"); |
| | | } |
| | | Integer insideWith = loginMember.getInsideWith() == null ? 2 :loginMember.getInsideWith(); |