SmartUserService.java 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. package com.template.services;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.template.model.dto.WarningUserDto;
  4. import com.template.model.pojo.SmartUser;
  5. import com.baomidou.mybatisplus.extension.service.IService;
  6. import com.template.model.result.PageUtils;
  7. import com.template.model.vo.*;
  8. import org.apache.ibatis.annotations.Param;
  9. import java.util.List;
  10. /**
  11. * <p>
  12. * 服务类
  13. * </p>
  14. *
  15. * @author ceshi
  16. * @since 2023-12-04
  17. */
  18. public interface SmartUserService extends IService<SmartUser> {
  19. int insertSmartUser(SmartUser rns);
  20. int updateSmartUser(SmartUser rns);
  21. PageUtils<SmartUser> queryPageSmartUsers(int currentPage, int pageCount, List<Integer> departmentIds);
  22. List<SmartUser> getSmartUserByIds(List<Integer> ids);
  23. List<SmartUser> getSmartUserIds(List<String> ids);
  24. int getSmartUserCountByIds(List<Integer> ids);
  25. boolean updateUserBatchById(List<SmartUser> users);
  26. Integer querySmartUserByCardNo(String cardNo);
  27. int deleteSmartUserById(int id);
  28. int deleteSmartUserByIds(List<Integer> ids);
  29. List<SmartUser> getSmartUserList(List<Integer> ids);
  30. List<AffiliateUserVo> queryAffiliateUserById(@Param("id") Integer id);
  31. PageUtils<UserVo> querySmartUserPages(int currentPage, int pageCount, List<Integer> departmentIds, String name);
  32. PageUtils<GradeVo> querySmartSecordPage(int currentPage, int pageCount, String name, Integer userId);
  33. List<SmartUser> querySmartUsers(List<Integer> departmentIds, String name);
  34. List<SmartUser> queryStudentDatas();
  35. List<SmartUser> queryStudentBySchoolClass(Integer schoolClass);
  36. PageUtils<WarningUserDto> warningUserList(int currentPage, int pageCount, String name);
  37. List<WarningUserDto> warningPushList();
  38. List<AffiliateParentVo> queryAffiliateParents(Integer userId);
  39. /**
  40. * 获取用户信息
  41. * @param name 姓名
  42. * @param cardNo 编号
  43. * @param idCard 身份证号
  44. * @return
  45. */
  46. SmartUser queryUserInfo(String name,String cardNo,String idCard);
  47. SmartUser getSmartById(Integer id);
  48. List<SmartUser> getSmartUserByxwuids(List<String> xwuids);
  49. /**
  50. * 获取可推送的人
  51. * @return
  52. */
  53. List<SmartUser> getListPush();
  54. /**
  55. * 通过id查找所关联的人
  56. * @param id
  57. * @return
  58. */
  59. List<SmartUser> getAffiliateList(Integer id);
  60. List<SmartUser> querySmartUserByCardNos(List<String> cardNos);
  61. SmartUserVo querySmartUserById(Integer id);
  62. int deleteUserBatch(List<deleteUserVo> list);
  63. PageUtils<UserDeleteVo> queryUserDeletePage(int currentPage, int pageCount);
  64. SmartStudentVo querySmartStudentById(Integer userId);
  65. List<SmartUser> queryStudentsByGrade(List<String> gradeIds);
  66. List<SmartUser> queryUsersByClass(Integer schoolClass);
  67. List<SmartUser> getListUser();
  68. /**
  69. * 通过手机号找到对应的人
  70. * @param phone
  71. * @return
  72. */
  73. SmartUser getPhoneUser(String phone);
  74. /**
  75. * 通过手机号找到对应的人
  76. * @param phone
  77. * @return
  78. */
  79. List<SmartUser> getPhoneUsers(String phone);
  80. /**
  81. * 通过关联人找到对应用户
  82. * @param affiliate
  83. * @return
  84. */
  85. List<SmartUser> getAffiliateUser(String affiliate);
  86. /**
  87. * 通过身份证号和学号查询对应的人
  88. * @param certificateNumber
  89. * @return
  90. */
  91. SmartUser getCard(String certificateNumber);
  92. /**
  93. * 通过百胜门禁编号查询对应的人
  94. * @param idNum
  95. * @return
  96. */
  97. SmartUser getBsStudentNo(String idNum);
  98. List<SmartUser> getChargeTeacher(Integer schoolClass);
  99. }