StaffService.java 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. package com.fuint.common.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.fuint.framework.exception.BusinessCheckException;
  4. import com.fuint.framework.pagination.PaginationRequest;
  5. import com.fuint.framework.pagination.PaginationResponse;
  6. import com.fuint.repository.model.MtStaff;
  7. import java.util.List;
  8. import java.util.Map;
  9. /**
  10. * 店铺员工业务接口
  11. *
  12. * Created by FSQ
  13. * CopyRight https://www.fuint.cn
  14. */
  15. public interface StaffService extends IService<MtStaff> {
  16. /**
  17. * 员工查询列表
  18. *
  19. * @param paginationRequest
  20. * @return
  21. */
  22. PaginationResponse<MtStaff> queryStaffListByPagination(PaginationRequest paginationRequest) throws BusinessCheckException;
  23. /**
  24. * 保存员工信息
  25. *
  26. * @param reqStaff
  27. * @throws BusinessCheckException
  28. */
  29. MtStaff saveStaff(MtStaff reqStaff) throws BusinessCheckException;
  30. /**
  31. * 根据ID获取店铺信息
  32. *
  33. * @param id 员工id
  34. * @throws BusinessCheckException
  35. */
  36. MtStaff queryStaffById(Integer id) throws BusinessCheckException;
  37. /**
  38. * 审核更改状态(禁用,审核通过)
  39. *
  40. * @param id
  41. * @throws BusinessCheckException
  42. * @return
  43. */
  44. Integer updateAuditedStatus(Integer id, String statusEnum) throws BusinessCheckException;
  45. /**
  46. * 根据条件搜索员工
  47. *
  48. * @param params 请求参数
  49. * @return
  50. * */
  51. List<MtStaff> queryStaffByParams(Map<String, Object> params) throws BusinessCheckException;
  52. /**
  53. * 根据手机号获取员工信息
  54. *
  55. * @param mobile 手机
  56. * @throws BusinessCheckException
  57. * @return
  58. */
  59. MtStaff queryStaffByMobile(String mobile) throws BusinessCheckException;
  60. /**
  61. * 根据会员ID获取员工信息
  62. *
  63. * @param userId 会员ID
  64. * @throws BusinessCheckException
  65. * @return
  66. */
  67. MtStaff queryStaffByUserId(Integer userId) throws BusinessCheckException;
  68. }