CustomerMapper.java 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. package com.dgtly.system.mapper;
  2. import com.dgtly.system.domain.Customer;
  3. import com.dgtly.system.domain.CustomersVo;
  4. import com.dgtly.system.domain.DataMasterCustomerVO;
  5. import org.apache.ibatis.annotations.MapKey;
  6. import java.util.List;
  7. import java.util.Map;
  8. /**
  9. * 经销商 Mapper接口
  10. *
  11. * @author dgtly
  12. * @date 2020-08-27
  13. */
  14. public interface CustomerMapper
  15. {
  16. /**
  17. * 查询经销商
  18. *
  19. * @param id 经销商 ID
  20. * @return 经销商
  21. */
  22. public Customer selectCustomersById(Long id);
  23. public Customer selectCustomersByChainsCode(String chainsCode);
  24. /**
  25. * 查询经销商 列表
  26. *
  27. * @param customers 经销商
  28. * @return 经销商 集合
  29. */
  30. public List<Customer> selectCustomersList(Customer customers);
  31. /**
  32. * 新增经销商
  33. *
  34. * @param customers 经销商
  35. * @return 结果
  36. */
  37. public int insertCustomers(Customer customers);
  38. /**
  39. * 修改经销商
  40. *
  41. * @param customers 经销商
  42. * @return 结果
  43. */
  44. public int updateCustomers(Customer customers);
  45. /**
  46. * 删除经销商
  47. *
  48. * @param id 经销商 ID
  49. * @return 结果
  50. */
  51. public int deleteCustomersById(Long id);
  52. /**
  53. * 批量删除经销商
  54. *
  55. * @param ids 需要删除的数据ID
  56. * @return 结果
  57. */
  58. public int deleteCustomersByIds(String[] ids);
  59. @MapKey("code")
  60. public Map<String, Customer> selectCustomerMapByCode();
  61. @MapKey("chainsCode")
  62. public Map<String, Customer> selectCustomerMapByChainsCode();
  63. public List<DataMasterCustomerVO> selectCustomerCodeByNotStart();
  64. /**
  65. * 新增经销商启用
  66. *
  67. * @param customersVo 经销商启用
  68. * @return 结果
  69. */
  70. public int insertCustomersStart(CustomersVo customersVo);
  71. //批量新增经销商启用
  72. int insertCustomersStartBatch(List<CustomersVo> list);
  73. }