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.

68 lines
2.6 KiB

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