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.

60 lines
2.3 KiB

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