StaffService.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. * @param operator 操作人
  28. * @throws BusinessCheckException
  29. * @return
  30. */
  31. MtStaff saveStaff(MtStaff reqStaff, String operator) throws BusinessCheckException;
  32. /**
  33. * 根据ID获取店铺信息
  34. *
  35. * @param id 员工id
  36. * @throws BusinessCheckException
  37. */
  38. MtStaff queryStaffById(Integer id) throws BusinessCheckException;
  39. /**
  40. * 审核更改状态(禁用,审核通过)
  41. *
  42. * @param id
  43. * @throws BusinessCheckException
  44. * @return
  45. */
  46. Integer updateAuditedStatus(Integer id, String statusEnum) throws BusinessCheckException;
  47. /**
  48. * 根据条件搜索员工
  49. *
  50. * @param params 请求参数
  51. * @return
  52. * */
  53. List<MtStaff> queryStaffByParams(Map<String, Object> params) throws BusinessCheckException;
  54. /**
  55. * 根据手机号获取员工信息
  56. *
  57. * @param mobile 手机
  58. * @throws BusinessCheckException
  59. * @return
  60. */
  61. MtStaff queryStaffByMobile(String mobile) throws BusinessCheckException;
  62. /**
  63. * 根据会员ID获取员工信息
  64. *
  65. * @param userId 会员ID
  66. * @throws BusinessCheckException
  67. * @return
  68. */
  69. MtStaff queryStaffByUserId(Integer userId) throws BusinessCheckException;
  70. }