CustomerCarRecMapper.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. package com.jkcredit.invoice.mapper.customer;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.baomidou.mybatisplus.core.metadata.IPage;
  4. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  5. import com.jkcredit.invoice.model.entity.customer.CustomerCarRec;
  6. import com.jkcredit.invoice.model.vo.CompanyVo;
  7. import org.apache.ibatis.annotations.Param;
  8. import org.springframework.stereotype.Repository;
  9. import java.util.List;
  10. @Repository
  11. public interface CustomerCarRecMapper extends BaseMapper<CustomerCarRec> {
  12. /**
  13. * 客户注册信息新增
  14. *
  15. * @param record
  16. * @return
  17. */
  18. @Override
  19. int insert(CustomerCarRec record);
  20. /**
  21. * 客户注册信息按条件新增
  22. * @param record
  23. * @return
  24. */
  25. int insertSelective(CustomerCarRec record);
  26. /**
  27. * 根据Appkey查询客户注册信息列表
  28. * @param customerName
  29. * @return
  30. */
  31. List<CustomerCarRec> selectByCustName(String customerName);
  32. /**
  33. * 根据ect卡号查询客户列表
  34. * @param etcNum
  35. * @return
  36. */
  37. CustomerCarRec selectByEtc(String etcNum);
  38. /**
  39. * 根据ect卡号查询客户列表 (防止事物问题)
  40. * @param etcNum
  41. * @return
  42. */
  43. CustomerCarRec selectByEtcForLock(String etcNum);
  44. /**
  45. * 根据车牌号查询无车客户列表
  46. * @param carNum
  47. * @return
  48. */
  49. List<CustomerCarRec> selectByCarNum(String carNum);
  50. /**
  51. * 根据车牌号查询自有车客户列表 只查询注册成功客户
  52. * @param carNum
  53. * @return
  54. */
  55. List<CustomerCarRec> selectBySelfCarNum(String carNum);
  56. /**
  57. * 根据车牌号查询自有车客户列表
  58. * @param carNum
  59. * @return
  60. */
  61. List<CustomerCarRec> selectAllEtcBySelfCarNum(String carNum);
  62. /**
  63. * 更新自有车客户信息
  64. * @param record
  65. * @return
  66. */
  67. int updateByPrimaryKeySelective(CustomerCarRec record);
  68. /**
  69. * 更新客户信息
  70. * @param record
  71. * @return
  72. */
  73. int updateByPrimaryKey(CustomerCarRec record);
  74. /**
  75. * 根据etc卡号更新无车客户信息
  76. * @param record
  77. * @return
  78. */
  79. int updateEtcByPrimaryKeySelective(CustomerCarRec record);
  80. /**
  81. * 更新客户信息
  82. * @param record
  83. * @return
  84. */
  85. int updateEtcByPrimaryKey(CustomerCarRec record);
  86. /**
  87. * 根据etc卡号更新成功过的客户信息
  88. * @param record
  89. * @return
  90. */
  91. int updateWaitEtcStatus(CustomerCarRec record);
  92. /**
  93. * 查询所有客户列表
  94. * @return
  95. */
  96. List<CustomerCarRec> selectAllBindEtcNoGetInvoice();
  97. /**
  98. * 客户列表分页查询
  99. * @param page
  100. * @param customerCarRec
  101. * @return
  102. */
  103. IPage<List<CustomerCarRec>> selectAllByPage(Page page, @Param("query") CustomerCarRec customerCarRec);
  104. /**
  105. * 根据企业名称更新客户列表
  106. * @param companyVo
  107. * @return
  108. */
  109. int upDateCompanySelf(CompanyVo companyVo);
  110. /**
  111. * 根据企业编码更新客户列表
  112. * @param companyVo
  113. * @return
  114. */
  115. int upDateCompanyNo(CompanyVo companyVo);
  116. /**
  117. * 根据企业名称查询所有自有车企业列表
  118. * @param companyName
  119. * @return
  120. */
  121. List<CustomerCarRec> selectAllEtcByCompany(String companyName);
  122. /**
  123. * 根据etc卡号删除客户列表
  124. * @param etcNum
  125. */
  126. void deleteByEtcCard(String etcNum);
  127. }