Commit 5287943f by guojuxing

查询所有的用户:gic管理员/运营实施管理员

parent 1d0570e5
...@@ -156,4 +156,14 @@ public interface UserApiService { ...@@ -156,4 +156,14 @@ public interface UserApiService {
* @return com.gic.api.base.commons.ServiceResponse<java.lang.String>
 * @return com.gic.api.base.commons.ServiceResponse<java.lang.String>


 */ 
 */
ServiceResponse<String> editPhoneOrPassword(Integer userId, String nationCode, String phone, String password); ServiceResponse<String> editPhoneOrPassword(Integer userId, String nationCode, String phone, String password);
/**
* 查询所有的用户,gic管理员/运营实施管理员
* @Title: listAllUser

* @Description:

 * @author guojuxing
* @param enterpriseId

* @return com.gic.api.base.commons.ServiceResponse<java.util.List<java.lang.Integer>>


 */
ServiceResponse<List<Integer>> listAllUser(Integer enterpriseId);
} }
...@@ -111,4 +111,14 @@ public interface TabSysUserMapper { ...@@ -111,4 +111,14 @@ public interface TabSysUserMapper {

 */ 
 */
List<TabSysUser> listUserNotInIdList(@Param("ids") List<Integer> userIdList, @Param("search") String search, List<TabSysUser> listUserNotInIdList(@Param("ids") List<Integer> userIdList, @Param("search") String search,
@Param("enterpriseId") Integer enterpriseId); @Param("enterpriseId") Integer enterpriseId);
/**
* 查询所有的用户,gic管理员/运营实施管理员
* @Title: listAllUser

* @Description:

 * @author guojuxing
* @param enterpriseId

* @return java.util.List<java.lang.Integer>


 */
List<Integer> listAllUser(@Param("enterpriseId") Integer enterpriseId);
} }
\ No newline at end of file
...@@ -110,4 +110,14 @@ public interface UserService { ...@@ -110,4 +110,14 @@ public interface UserService {
* @return java.util.List<com.gic.auth.entity.TabSysUser>
 * @return java.util.List<com.gic.auth.entity.TabSysUser>


 */ 
 */
List<TabSysUser> listUserNotInIdList(List<Integer> userIdList, String search, Integer enterpriseId); List<TabSysUser> listUserNotInIdList(List<Integer> userIdList, String search, Integer enterpriseId);
/**
* 查询所有的用户,gic管理员/运营实施管理员
* @Title: listAllUser

* @Description:

 * @author guojuxing
* @param enterpriseId

* @return java.util.List<java.lang.Integer>


 */
List<Integer> listAllUser(Integer enterpriseId);
} }
...@@ -127,4 +127,9 @@ public class UserServiceImpl implements UserService { ...@@ -127,4 +127,9 @@ public class UserServiceImpl implements UserService {
public List<TabSysUser> listUserNotInIdList(List<Integer> userIdList, String search, Integer enterpriseId) { public List<TabSysUser> listUserNotInIdList(List<Integer> userIdList, String search, Integer enterpriseId) {
return tabSysUserMapper.listUserNotInIdList(userIdList, search, enterpriseId); return tabSysUserMapper.listUserNotInIdList(userIdList, search, enterpriseId);
} }
@Override
public List<Integer> listAllUser(Integer enterpriseId) {
return tabSysUserMapper.listAllUser(enterpriseId);
}
} }
...@@ -419,6 +419,11 @@ public class UserApiServiceImpl implements UserApiService { ...@@ -419,6 +419,11 @@ public class UserApiServiceImpl implements UserApiService {
return ServiceResponse.success(tabUser.getUserName()); return ServiceResponse.success(tabUser.getUserName());
} }
@Override
public ServiceResponse<List<Integer>> listAllUser(Integer enterpriseId) {
return ServiceResponse.success(userService.listAllUser(enterpriseId));
}
/** /**
* 保存关联数据,角色关联、资源关联 * 保存关联数据,角色关联、资源关联
* @Title: saveRole
 * @Title: saveRole

......
...@@ -333,4 +333,12 @@ ...@@ -333,4 +333,12 @@
</foreach> </foreach>
</if> </if>
</select> </select>
<select id="listAllUser" resultType="java.lang.Integer">
select user_id from tab_sys_user where status = 1
<if test="enterpriseId != null">
and enterprise_id = #{enterpriseId}
</if>
</select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment