TbCostomerMapper.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package com.pj.project.tb_costomer;
  2. import java.util.List;
  3. import org.apache.ibatis.annotations.Mapper;
  4. import com.pj.utils.so.*;
  5. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  6. import org.apache.ibatis.annotations.Param;
  7. import org.springframework.stereotype.Repository;
  8. /**
  9. * Mapper: tb_costomer -- 客户管理
  10. * @author qzy
  11. */
  12. @Mapper
  13. @Repository
  14. public interface TbCostomerMapper extends BaseMapper <TbCostomer> {
  15. /**
  16. * 增
  17. * @param t 实体对象
  18. * @return 受影响行数
  19. */
  20. int add(TbCostomer t);
  21. /**
  22. * 删
  23. * @param id 要删除的数据id
  24. * @return 受影响行数
  25. */
  26. int delete(String id);
  27. /**
  28. * 改
  29. * @param t 实体对象
  30. * @return 受影响行数
  31. */
  32. int update(TbCostomer t);
  33. /**
  34. * 查 - 根据id
  35. * @param id 要查询的数据id
  36. * @return 实体对象
  37. */
  38. TbCostomer getById(String id);
  39. /**
  40. * 查集合 - 根据条件(参数为空时代表忽略指定条件)
  41. * @param so 参数集合
  42. * @return 数据列表
  43. */
  44. List<TbCostomer> getList(SoMap so);
  45. List<String> findByBusinessTypeOpenid(@Param("businessType") String businessType, @Param("bigBusinessType") Integer bigBusinessType);
  46. }