SpAdminMapper.java 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package com.pj.project4sp.admin;
  2. import java.util.List;
  3. import org.apache.ibatis.annotations.Mapper;
  4. import com.pj.utils.so.SoMap;
  5. import org.apache.ibatis.annotations.Param;
  6. /**
  7. * Mapper: 系统管理员表
  8. * @author kong
  9. */
  10. @Mapper
  11. public interface SpAdminMapper {
  12. /**
  13. * 增 #{name}, #{password}, #{roleId}
  14. * @param obj
  15. * @return
  16. */
  17. int add(SpAdmin obj);
  18. /**
  19. * 删
  20. * @param id
  21. * @return
  22. */
  23. int delete(long id);
  24. /**
  25. * 改
  26. * @param obj
  27. * @return
  28. */
  29. int update(SpAdmin obj);
  30. /**
  31. * 查
  32. * @param id
  33. * @return
  34. */
  35. SpAdmin getById(long id);
  36. /**
  37. * 查
  38. * @param so
  39. * @return
  40. */
  41. List<SpAdmin> getList(SoMap so);
  42. /**
  43. * 查询,根据name
  44. * @param name
  45. * @return
  46. */
  47. SpAdmin getByName(String name);
  48. /**
  49. * 查询,根据 phone
  50. * @param phone
  51. * @return
  52. */
  53. SpAdmin getByPhone(String phone);
  54. void setRole(@Param("id") Long id,@Param("roleId") String roleId);
  55. void removeByCustomerId(@Param("customerId") String customerId);
  56. void updateCustomerAdmin(@Param("customerId")String customerId, @Param("status")int status);
  57. }