| | |
| | | @ApiOperation(value = "提币币种可用资金", notes = "提币币种可用资金")
|
| | | @ApiResponses({@ApiResponse( code = 200, message = "success", response = MemberAvivableCoinInfoVo.class)})
|
| | | @ApiImplicitParams({
|
| | | @ApiImplicitParam(name = "symbol", value = "币种", required = true, dataType = "String", paramType="query")
|
| | | @ApiImplicitParam(name = "symbol", value = "币种", required = true, dataType = "String", paramType="query"),
|
| | | @ApiImplicitParam(name = "label", value = "label", required=false, dataType = "String", paramType="query")
|
| | | })
|
| | | @GetMapping(value = "/memberAvivableCoinInfo")
|
| | | public Result memberAvivableCoinInfo(String symbol) {
|
| | | return memberService.memberAvivableCoinInfo(symbol);
|
| | | public Result memberAvivableCoinInfo(String symbol,String label) {
|
| | | return memberService.memberAvivableCoinInfo(symbol,label);
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | |
|
| | | public Result memberCoinInfoList();
|
| | |
|
| | | public Result memberAvivableCoinInfo(String symbol);
|
| | | public Result memberAvivableCoinInfo(String symbol,String label);
|
| | |
|
| | | public NeedMoneyMemberVo selectFriendRelationUserByMemberId(Long memberId);
|
| | |
|
| | |
| | | } |
| | | |
| | | @Override |
| | | public Result memberAvivableCoinInfo(String symbol) { |
| | | public Result memberAvivableCoinInfo(String symbol,String lable) { |
| | | //获取用户ID |
| | | Long memberId = LoginUserUtils.getAppLoginUser().getId(); |
| | | MemberWalletCoinEntity walletCoin = memberWalletCoinDao.selectWalletCoinBymIdAndCode(memberId, symbol); |
| | |
| | | List<MemberAvivableCoinInfoVo> arrayList = new ArrayList<>(); |
| | | |
| | | |
| | | List<PlatformFeeSettingEntity> feeSettingByTypeAndSymbolLable = platformFeeSettingDao.getFeeSettingsByTypeAndSymbol(2, symbol); |
| | | List<PlatformFeeSettingEntity> feeSettingByTypeAndSymbolLable = platformFeeSettingDao.getFeeSettingsByTypeAndSymbol(2, symbol,lable); |
| | | if (CollUtil.isEmpty(feeSettingByTypeAndSymbolLable)) { |
| | | return Result.fail(MessageSourceUtils.getString("member_service_0087")); |
| | | } |
| | |
| | |
|
| | | PlatformFeeSettingEntity getFeeSettingByTypeAndSymbol(@Param("type")Integer type,@Param("symbol")String symbol);
|
| | |
|
| | | List<PlatformFeeSettingEntity> getFeeSettingsByTypeAndSymbol(@Param("type")int i,@Param("symbol")String symbol);
|
| | | List<PlatformFeeSettingEntity> getFeeSettingsByTypeAndSymbol(@Param("type")int i,@Param("symbol")String symbol,@Param("lable")String lable);
|
| | |
|
| | | }
|
| | |
| | | <if test="symbol != null and symbol != ''">
|
| | | and symbol = #{symbol}
|
| | | </if>
|
| | | <if test="lable != null and lable != ''">
|
| | | and lable = #{lable}
|
| | | </if>
|
| | | </where>
|
| | | </select>
|
| | |
|