| | |
| | | |
| | | List<DappStorage> selectByAmountDesc(@Param("date") Date date,@Param("offset")int offset,@Param("count")int count); |
| | | |
| | | DappStorage selectAmountByAmountDesc(@Param("offset")int offset,@Param("count")int count); |
| | | DappStorage selectAmountByAmountDesc(@Param("memberId")Long memberId,@Param("offset")int offset,@Param("count")int count); |
| | | |
| | | IPage<DappStorage> selectListInPage(@Param("record")DappStorage dappStorage, Page<DappStorage> page); |
| | | |
| | |
| | | throw new FebsException("存储数量必须是"+bigDecimal+"的整数倍"); |
| | | } |
| | | |
| | | DappStorage dappStorage = dappStorageMapper.selectAmountByAmountDesc(0, 1); |
| | | DappStorage dappStorage = dappStorageMapper.selectAmountByAmountDesc(member.getId(),0, 1); |
| | | if(ObjectUtil.isNotEmpty(dappStorage)){ |
| | | if(amount.compareTo(dappStorage.getAmount()) < 0){ |
| | | throw new FebsException("存储数量必须大于:"+dappStorage.getAmount()); |
| | |
| | | * |
| | | from |
| | | dapp_storage |
| | | where |
| | | member_id = #{memberId} |
| | | order by amount desc |
| | | limit #{offset},#{count} |
| | | </select> |