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.

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