| | |
| | | */ |
| | | @ApiOperation(value = "新币列表") |
| | | @GetMapping("list") |
| | | public Result<Page<Ico>> list(IcoQuery icoQuery, Page<Ico> page) throws Exception { |
| | | QueryWrapper queryWrapper = QueryWrapperGenerator.buildQueryCondition (icoQuery, IcoQuery.class); |
| | | public Result<Page<Ico>> list(ItemQuery icoQuery, Page<Ico> page) throws Exception { |
| | | QueryWrapper queryWrapper = QueryWrapperGenerator.buildQueryCondition (icoQuery, ItemQuery.class); |
| | | Page<Ico> result = icoService.page(page, queryWrapper); |
| | | return Result.ok(result); |
| | | } |
| | |
| | | @Autowired |
| | | private RedissonClient redissonClient; |
| | | |
| | | @ApiOperation(value = "新币列表,配置列表") |
| | | @ApiOperation(value = "新币列表") |
| | | @GetMapping("list") |
| | | public Result<Page<Ico>> list(ItemQuery itemQuery, Page<Ico> page) throws Exception { |
| | | QueryWrapper queryWrapper = QueryWrapperGenerator.buildQueryCondition (itemQuery, ItemQuery.class); |
| | | public Result<Page<Ico>> list(ItemQuery icoQuery, Page<Ico> page) throws Exception { |
| | | QueryWrapper queryWrapper = QueryWrapperGenerator.buildQueryCondition (icoQuery, ItemQuery.class); |
| | | Page<Ico> result = icoService.page(page, queryWrapper); |
| | | return Result.ok(result); |
| | | } |
| | |
| | | throw new YamiShopBindException("请重新登录"); |
| | | } |
| | | queryWrapper.eq("u.user_id", partyId); |
| | | System.out.println(queryWrapper.getSqlSegment()); |
| | | Page<UserSubscriptionDTO> result = userSubscriptionService.findPage(page, queryWrapper); |
| | | return Result.ok(result); |
| | | } |
| | |
| | | * name |
| | | */ |
| | | @ApiParam(value = "name") |
| | | @Query(type = QueryType.LIKE) |
| | | @Query(type = QueryType.LIKE, tableColumn = "t.name") |
| | | private String name; |
| | | |
| | | /** |
| | | * 代码 |
| | | */ |
| | | @ApiParam(value = "symbol") |
| | | @Query(type = QueryType.LIKE) |
| | | @Query(type = QueryType.LIKE, tableColumn = "t.symbol") |
| | | private String symbol; |
| | | |
| | | /** |
| | | * 数据源编码 |
| | | */ |
| | | @ApiParam(value = "数据源编码") |
| | | @Query(type = QueryType.LIKE) |
| | | @Query(type = QueryType.LIKE, tableColumn = "t.symbol_data") |
| | | private String symbolData; |
| | | |
| | | |
| | | @ApiParam("状态:1、已认购,2、未中签,3、已中签,4、已缴纳 5.已分发") |
| | | @Query(type = QueryType.EQ) |
| | | @Query(type = QueryType.EQ, tableColumn = "u.status") |
| | | private Integer status; |
| | | |
| | | @ApiParam(value = "userId") |
| | |
| | | if (subtract.compareTo(BigDecimal.ZERO) > 0) { |
| | | //放入待补 |
| | | wallet.setMoney(BigDecimal.ZERO); |
| | | wallet.setAmountToBeCovered(subtract); |
| | | wallet.setAmountToBeCovered(wallet.getAmountToBeCovered().add(subtract)); |
| | | if (!walletService.updateById(wallet)) { |
| | | throw new YamiShopBindException("操作钱包失败!"); |
| | | } |