7 files modified
3 files added
| | |
| | | public FebsResponse updatePassword(@RequestBody ApiUpdatePasswordDto apiUpdatePasswordDto) { |
| | | return dappWalletService.updatePassword(apiUpdatePasswordDto); |
| | | } |
| | | |
| | | @ApiOperation(value ="IGT银行卡-列表分页", notes = "银行卡-列表分页") |
| | | @ApiResponses(value = { |
| | | @ApiResponse(code = 200, message = "success", response = ApiBankListVo.class) |
| | | }) |
| | | @PostMapping(value = "/bankList") |
| | | public FebsResponse bankList(@RequestBody ApiBankListDto apiBankListDto) { |
| | | Map<String, Object> data = getDataTable(dappMemberService.getBankListInPage(apiBankListDto)); |
| | | return new FebsResponse().success().data(data); |
| | | } |
| | | } |
| New file |
| | |
| | | package cc.mrbird.febs.dapp.dto; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "ApiBankListDto", description = "银行卡列表接收参数类") |
| | | public class ApiBankListDto { |
| | | |
| | | @ApiModelProperty(value = "页码") |
| | | private Integer pageNum = 1; |
| | | |
| | | @ApiModelProperty(value = "每页数量") |
| | | private Integer pageSize = 10; |
| | | |
| | | @TableField(exist = false) |
| | | private Long memberId; |
| | | } |
| | |
| | | public class DappBank extends BaseEntity { |
| | | private Long member_id;// |
| | | private Integer type;//银行卡类型 1:个人 2:商务 |
| | | private String memberName;//持卡人姓名 |
| | | private String cardCode;//银行卡号 |
| | | private String bankName;//银行名称 |
| | | private String bankOtherName;//支行名称 |
| | |
| | | package cc.mrbird.febs.dapp.mapper; |
| | | |
| | | import cc.mrbird.febs.dapp.dto.ApiBankListDto; |
| | | import cc.mrbird.febs.dapp.entity.DappBank; |
| | | import cc.mrbird.febs.dapp.vo.ApiBankListVo; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | public interface DappBankDao extends BaseMapper<DappBank> { |
| | | |
| | | IPage<ApiBankListVo> selectBankListInPage(@Param("record")ApiBankListDto apiBankListDto, Page<ApiBankListVo> page); |
| | | |
| | | } |
| | |
| | | FebsResponse amountType(); |
| | | |
| | | IPage<ApiMyTeammateAmountChangeListVo> findTeammateChangeListInPage(ApiAmountChangeDto apiAmountChangeDto); |
| | | |
| | | IPage<ApiBankListVo> getBankListInPage(ApiBankListDto apiBankListDto); |
| | | } |
| | |
| | | dappWalletCoinDao.addTotalAndaddAvailableById(memberId,total); |
| | | //生成流水记录 |
| | | BigDecimal add = availableAmount.add(total); |
| | | DappAccountMoneyChangeEntity dappAccountMoneyChangeEntity = new DappAccountMoneyChangeEntity(memberId, availableAmount, total, add, "挂机收益", 5); |
| | | DappAccountMoneyChangeEntity dappAccountMoneyChangeEntity = new DappAccountMoneyChangeEntity(memberId, availableAmount, total, add, "投注盈利", 5); |
| | | dappAccountMoneyChangeDao.insert(dappAccountMoneyChangeEntity); |
| | | //更新用户表是否正在挂机状态字段为否 |
| | | DappMemberEntity dappMember= dappMemberDao.selectById(memberId); |
| | |
| | | private final DataDictionaryCustomMapper dataDictionaryCustomMapper; |
| | | private final PlatformBannerMapper platformBannerMapper; |
| | | private final DappAccountMoneyChangeDao dappAccountMoneyChangeDao; |
| | | private final DappMemberService dappMemberService; |
| | | private final DappBankDao dappBankDao; |
| | | |
| | | private final RedisTemplate<String, Object> redisTemplate; |
| | | |
| | |
| | | return amountChangeList; |
| | | } |
| | | |
| | | @Override |
| | | public IPage<ApiBankListVo> getBankListInPage(ApiBankListDto apiBankListDto) { |
| | | DappMemberEntity member = LoginUserUtil.getAppUser(); |
| | | Page<ApiBankListVo> page = new Page<>(apiBankListDto.getPageNum(), apiBankListDto.getPageSize()); |
| | | apiBankListDto.setMemberId(member.getId()); |
| | | IPage<ApiBankListVo> apiBankListVoIPage = dappBankDao.selectBankListInPage(apiBankListDto,page); |
| | | return apiBankListVoIPage; |
| | | } |
| | | |
| | | public String generateAsaToken(String token) { |
| | | RSA rsa = new RSA(null, AppContants.PUBLIC_KEY); |
| | | return rsa.encryptBase64(token + "_" + System.currentTimeMillis(), KeyType.PublicKey); |
| New file |
| | |
| | | package cc.mrbird.febs.dapp.vo; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "ApiBankListVo", description = "银行卡列表") |
| | | public class ApiBankListVo { |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "持卡人姓名") |
| | | private String memberName; |
| | | |
| | | @ApiModelProperty(value = "银行卡号") |
| | | private String cardCode; |
| | | } |
| | |
| | | |
| | | BigDecimal add = availableAmount.add(total); |
| | | |
| | | DappAccountMoneyChangeEntity dappAccountMoneyChangeEntity = new DappAccountMoneyChangeEntity(memberId, availableAmount, total, add, "挂机收益", 5); |
| | | DappAccountMoneyChangeEntity dappAccountMoneyChangeEntity = new DappAccountMoneyChangeEntity(memberId, availableAmount, total, add, "投注盈利", 5); |
| | | dappAccountMoneyChangeDao.insert(dappAccountMoneyChangeEntity); |
| | | } |
| | | |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="cc.mrbird.febs.dapp.mapper.DappBankDao"> |
| | | |
| | | <select id="selectBankListInPage" resultType="cc.mrbird.febs.dapp.vo.ApiBankListVo"> |
| | | select |
| | | concat(left(a.card_code,4), '******', right(a.card_code,4)) cardCode, |
| | | a.member_name memberName, |
| | | a.id id |
| | | from dapp_bank a |
| | | where a.member_id=#{record.memberId} |
| | | order by a.create_time desc |
| | | </select> |
| | | |
| | | |
| | | </mapper> |