SysUserService.java 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. package net.chenlin.dp.modules.sys.service;
  2. import net.chenlin.dp.common.entity.Page;
  3. import net.chenlin.dp.common.entity.R;
  4. import net.chenlin.dp.modules.api.vo.Customer;
  5. import net.chenlin.dp.modules.api.vo.YonyouSaleOrder;
  6. import net.chenlin.dp.modules.sys.entity.SysUserEntity;
  7. import net.chenlin.dp.modules.sys.entity.SysUserTokenEntity;
  8. import org.apache.ibatis.annotations.Param;
  9. import java.util.List;
  10. import java.util.Map;
  11. import java.util.Set;
  12. /**
  13. * 系统用户
  14. * @author zcl<yczclcn@163.com>
  15. */
  16. public interface SysUserService {
  17. /**
  18. * 分页查询用户列表
  19. * @param params
  20. * @return
  21. */
  22. Page<SysUserEntity> listUser(Map<String, Object> params);
  23. /**
  24. * 新增用户
  25. * @param user
  26. * @return
  27. */
  28. R saveUser(SysUserEntity user);
  29. /**
  30. * 根据id查询用户
  31. * @param userId
  32. * @return
  33. */
  34. R getUserById(Long userId);
  35. /**
  36. * 修改用户
  37. * @param user
  38. * @return
  39. */
  40. R updateUser(SysUserEntity user);
  41. /**
  42. * 删除用户
  43. * @param id
  44. * @return
  45. */
  46. R batchRemove(Long[] id);
  47. /**
  48. * 查询用户权限集合
  49. * @param userId
  50. * @return
  51. */
  52. Set<String> listUserPerms(Long userId);
  53. /**
  54. * 查询用户角色集合
  55. * @param userId
  56. * @return
  57. */
  58. Set<String> listUserRoles(Long userId);
  59. /**
  60. * 用户修改密码
  61. * @param user
  62. * @return
  63. */
  64. R updatePswdByUser(SysUserEntity user);
  65. /**
  66. * 启用用户
  67. * @param id
  68. * @return
  69. */
  70. R updateUserEnable(Long[] id);
  71. /**
  72. * 禁用用户
  73. * @param id
  74. * @return
  75. */
  76. R updateUserDisable(Long[] id);
  77. /**
  78. * 重置用户密码
  79. * @param user
  80. * @return
  81. */
  82. R updatePswd(SysUserEntity user);
  83. /**
  84. * 根据用户名查询用户信息
  85. * @param username
  86. * @return
  87. */
  88. SysUserEntity getByUserName(String username);
  89. /**
  90. * 用户所有机构id
  91. * @param userId
  92. * @return
  93. */
  94. List<Long> listAllOrgId(Long userId);
  95. /**
  96. * 保存用户token
  97. * @param userId
  98. * @return
  99. */
  100. int saveOrUpdateToken(Long userId, String token);
  101. /**
  102. * 根据token查询
  103. * @param token
  104. * @return
  105. */
  106. SysUserTokenEntity getUserTokenByToken(String token);
  107. /**
  108. * 根据userId查询
  109. * @param userId
  110. * @return
  111. */
  112. SysUserTokenEntity getUserTokenByUserId(Long userId);
  113. /**
  114. * 根据userId查询:用于token校验
  115. * @param userId
  116. * @return
  117. */
  118. SysUserEntity getUserByIdForToken(Long userId);
  119. int Ordershenhe(String code, String dverifysystime, String dverifydate
  120. , String state, String cVerifier);
  121. int Purchaseshenhe(String code, String dverifysystime,String dverifydate
  122. , String state,String cVerifier);
  123. int Payrequestshenhe(String code,String dverifysystime,String dverifydate
  124. ,String cVerifier);
  125. List<String>querySaleOrderDate();
  126. List<String>queryPurchaseOrderDate();
  127. List<String>queryPayrequestDate();
  128. int autoRIdBySale(String cSOCode,String instanceId);
  129. int autoRIdByOrder(String cSOCode,String instanceId);
  130. int autoRIdByPayequest(String cSOCode,String instanceId);
  131. }