You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.6 KiB

6 months ago
  1. package com.example.demo.service.cash;
  2. import com.example.demo.domain.DTO.AddFundsDTO;
  3. import com.example.demo.domain.DTO.PerformanceAdjustmentDTO;
  4. import com.example.demo.domain.DTO.PerformanceDTO;
  5. import com.example.demo.domain.entity.CashRecord;
  6. import com.example.demo.domain.entity.GOrder;
  7. import com.example.demo.domain.entity.RechargeActivity;
  8. import com.example.demo.domain.vo.cash.*;
  9. import com.example.demo.domain.vo.coin.Result;
  10. import com.github.pagehelper.PageInfo;
  11. import java.util.List;
  12. /**
  13. * @program: gold-java
  14. * @ClassName cashCollectionService
  15. * @description:
  16. * @author: Ethan
  17. * @create: 202509-26 11:23
  18. * @Version 1.0
  19. **/
  20. public interface CashCollectionService {
  21. //新增收款订单
  22. String add(CashCollection cashCollection,String lang);
  23. //赠送免费金币
  24. String addFreeCoin(CashCollection cashCollection,String lang);
  25. //撤回未审核的收款订单
  26. String cancel(String orderCode);
  27. //编辑并重新提交收款订单
  28. String reSubmit(CashRecord cashRecord,String lang);
  29. //多条件查询收款订单列表
  30. PageInfo<CashCollection> selectCollection(Integer pageNum, Integer pageSize, CashCollection cashCollection);
  31. //补全手续费等
  32. String complete(CashRecord cashRecord);
  33. //根据精网号获取姓名和地区
  34. Result getNameAndMarket(Integer jwcode,String lang);
  35. //获取活动列表
  36. List<RechargeActivity> getActivityList();
  37. //同步g_order订单到cash_record表
  38. Object syncToCashRecord();
  39. //根据id查询收款订单
  40. CashCollection selectById(CashCollection cashCollection);
  41. //根据goldcoin订单号查询收款订单
  42. CashCollection selectByGoldCoinOrderCode(String orderNo);
  43. //同步事务方法
  44. void processBatch(List<GOrder> gOrders);
  45. PageInfo<PerformanceVO> performanceSelect(Integer pageNum, Integer pageSize, PerformanceDTO performanceDTO);
  46. // 根据精网号和钱包 ID 查询用户钱包明细列表(分页)
  47. PageInfo<UserWalletRecordVO> selectWalletRecordsByJwcodeAndWalletId(
  48. Integer pageNum, Integer pageSize, Integer jwcode, Integer walletId);
  49. // 根据精网号和地区查询用户的所有钱包 ID 和金币数量(包含用户名和地区)(分页)
  50. PageInfo<UserWalletVO> selectUserWallets(Integer jwcode, String market, Integer pageNum, Integer pageSize, String sortField, String sortOrder, Integer sortWalletId);
  51. // 添加流水--其他收入
  52. String addExFund(CashCollection addFundsDTO);
  53. // 调整业绩
  54. void adjust(PerformanceAdjustmentDTO adjustDTO);
  55. //添加iPay88手续费
  56. String addIpay88Fee(CashCollection cashCollection);
  57. }