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.

83 lines
3.4 KiB

4 months ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
4 months ago
  1. package com.example.demo.mapper.cash;
  2. //import com.example.demo.domain.DTO.PaymentDTO;
  3. import com.example.demo.domain.DTO.FirstdataDTO;
  4. import com.example.demo.domain.DTO.Ipay88DTO;
  5. import com.example.demo.domain.DTO.PaymentDTO;
  6. import com.example.demo.domain.DTO.StripeDTO;
  7. import com.example.demo.domain.entity.CashRecord;
  8. import com.example.demo.domain.entity.GOrder;
  9. import com.example.demo.domain.entity.RechargeActivity;
  10. import com.example.demo.domain.vo.cash.CashCollection;
  11. import org.apache.ibatis.annotations.Mapper;
  12. import org.apache.ibatis.annotations.Param;
  13. import java.time.LocalDateTime;
  14. import java.util.List;
  15. import java.util.Set;
  16. /**
  17. * @program: gold-java
  18. * @ClassName CashCollectionMapper
  19. * @description:
  20. * @author: Ethan
  21. * @create: 202509-26 17:17
  22. * @Version 1.0
  23. **/
  24. @Mapper
  25. public interface CashCollectionMapper {
  26. //ceshi
  27. //根据jwcode获取所属地区
  28. String getMarketByJwcode(@Param("jwcode") Integer jwcode);
  29. //新增收款订单
  30. void add(CashRecord cashRecord);
  31. //根据订单号获取订单id,状态
  32. CashRecord selectByOrderCode(@Param("orderCode") String orderCode);
  33. //更新订单状态
  34. int updateStatus(@Param("orderCode") String orderCode,
  35. @Param("status") Integer status);
  36. //编辑订单
  37. // 编辑订单(状态=5)后重新提交
  38. int updateByOrderCode(@Param("cashRecordCollection") CashRecord cashRecord);
  39. //多条件查询收款订单列表
  40. List<CashCollection> selectCollection1(@Param("pageNum") Integer pageNum,
  41. @Param("pageSize") Integer pageSize,
  42. @Param("cashCollection") CashCollection cashCollection);
  43. //根据订单号查询待审核的现金收款订单
  44. CashRecord selectAuditByOrderCode(@Param("orderCode") String orderCode);
  45. //补全手续费等信息
  46. int complete(@Param("cashRecordCollection") CashRecord cashRecord);
  47. //根据精网号获取姓名
  48. String getNameByJwcode(@Param("jwcode") Integer jwcode);
  49. //根据精网号获取市场名
  50. String getMarketNameByJwcode(Integer jwcode);
  51. //获取收款活动列表
  52. List<RechargeActivity> getActivityList(@Param("now")LocalDateTime now);
  53. //查找未同步的订单
  54. List<GOrder>getUnSync(@Param("size")int size);
  55. //给同步过去的gOrder设置同步状态
  56. int markSynced(@Param("orderId") Integer orderId);
  57. //根据id查询收款订单
  58. CashCollection selectById(Integer id);
  59. List<CashCollection> selectBatchIds(Set<Integer> relatedIds);
  60. //根据glodcoin订单号查询收款订单
  61. CashCollection selectByGoldCoinOrderCode(String orderNo);
  62. /**
  63. * 带版本号的审核更新
  64. * @return 更新成功返回 1失败返回 0
  65. */
  66. int updateOrderWithVersion(@Param("orderCode") String orderCode,
  67. @Param("status") Integer status,
  68. @Param("auditId") Integer auditId,
  69. @Param("version") Integer version);
  70. CashCollection selectByBankCode(String bankCode);
  71. void updateByGoldCoinOrderCodeByPayment(PaymentDTO paymentDTO);
  72. void updateByGoldCoinOrderCodeByStripe(StripeDTO stripeDTO);
  73. void updateByGoldCoinOrderCodeByFirstdata(FirstdataDTO firstdataDTO);
  74. void updateByGoldCoinOrderCodeByIpay88(Ipay88DTO ipay88DTO);
  75. List<String> selectFirstdataList();
  76. List<CashCollection> selectIpayList();
  77. }