5 files modified
1 files added
| | |
| | | return R.data(userService.selectUser()); |
| | | } |
| | | |
| | | /** |
| | | * 统计用户注册数据 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getUserRegisterStatisticsData") |
| | | public R getUserRegisterStatisticsData(){ |
| | | return R.data(userService.getUserRegisterStatisticsData()); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springblade.modules.system.excel.UserExcel; |
| | | import org.springblade.modules.system.entity.User; |
| | | import org.springblade.modules.system.vo.UserRegisterStatisVO; |
| | | import org.springblade.modules.system.vo.UsersVo; |
| | | |
| | | import java.util.List; |
| | |
| | | */ |
| | | List<UsersVo> selectSecurityUserPageList(IPage<UsersVo> page, User user); |
| | | List<Map<String, Object>> selectUser(); |
| | | |
| | | /** |
| | | * 统计用户注册数据 |
| | | * @return |
| | | */ |
| | | List<UserRegisterStatisVO> getUserRegisterStatisticsData(); |
| | | } |
| | |
| | | </if> |
| | | ORDER BY id |
| | | </select> |
| | | |
| | | |
| | | <select id="selectUserPages" resultMap="userResultMaps"> |
| | | select s.*,p.jd,p.wd,ST_ASTEXT ( e.coordinate ) from blade_user s |
| | | LEFT JOIN sys_position p ON p.snumber = s.CODE |
| | |
| | | <select id="selectUser" resultType="java.util.HashMap"> |
| | | select CAST(id AS CHAR) as groupmember,real_name as rname from blade_user |
| | | </select> |
| | | |
| | | <!--统计用户注册数据--> |
| | | <select id="getUserRegisterStatisticsData" resultType="org.springblade.modules.system.vo.UserRegisterStatisVO"> |
| | | SELECT |
| | | br.name as region, |
| | | count(*) num |
| | | FROM blade_user bu |
| | | left join |
| | | blade_region br |
| | | on |
| | | bu.region_id = br.code |
| | | where bu.region_id is not null |
| | | group by bu.region_id |
| | | </select> |
| | | </mapper> |
| | |
| | | import org.springblade.modules.system.entity.UserInfo; |
| | | import org.springblade.modules.system.entity.UserOauth; |
| | | import org.springblade.modules.system.excel.UserExcel; |
| | | import org.springblade.modules.system.vo.UserRegisterStatisVO; |
| | | import org.springblade.modules.system.vo.UserVO; |
| | | import org.springblade.modules.system.vo.UsersVo; |
| | | |
| | |
| | | R<Boolean> saveUser(User user); |
| | | List<Map<String, Object>> selectUser(); |
| | | |
| | | /** |
| | | * 统计用户注册数据 |
| | | * @return |
| | | */ |
| | | List<UserRegisterStatisVO> getUserRegisterStatisticsData(); |
| | | } |
| | |
| | | import org.springblade.modules.system.service.IUserDeptService; |
| | | import org.springblade.modules.system.service.IUserOauthService; |
| | | import org.springblade.modules.system.service.IUserService; |
| | | import org.springblade.modules.system.vo.UserRegisterStatisVO; |
| | | import org.springblade.modules.system.vo.UserVO; |
| | | import org.springblade.modules.system.vo.UsersVo; |
| | | import org.springblade.modules.system.wrapper.UserWrapper; |
| | |
| | | return baseMapper.selectUser(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 统计用户注册数据 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<UserRegisterStatisVO> getUserRegisterStatisticsData() { |
| | | return baseMapper.getUserRegisterStatisticsData(); |
| | | } |
| | | } |
| New file |
| | |
| | | package org.springblade.modules.system.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | public class UserRegisterStatisVO implements Serializable { |
| | | |
| | | private String region; |
| | | |
| | | |
| | | private Integer num; |
| | | } |