6 files modified
1 files added
| | |
| | | <insert id="insert"> |
| | | insert into healthcode(<include refid="key"/>) values(<include refid="value"/>) |
| | | </insert> |
| | | |
| | | <!-- <select id="selectCountr" resultType="java.util.HashMap">--> |
| | | <!-- SELECT COUNT( * ) AS num,type--> |
| | | <!-- FROM--> |
| | | <!-- healthcode--> |
| | | <!-- WHERE--> |
| | | <!-- DATE_FORMAT(dtime,'%Y-%m-%d')=#{time} GROUP BY type--> |
| | | <!-- </select>--> |
| | | |
| | | <!--查询当天的健康码统计数据 2021-03-13 arsn修改--> |
| | | <select id="selectCountr" resultType="java.util.HashMap"> |
| | | SELECT |
| | | COUNT( * ) AS num, |
| | | type |
| | | FROM |
| | | healthcode |
| | | WHERE |
| | | DATE_FORMAT(dtime,'%Y-%m-%d')=#{time} GROUP BY type |
| | | SELECT COUNT( * ) AS num,1 as type FROM healthcode WHERE |
| | | TO_DAYS(dtime)=TO_DAYS(NOW()) and type=1 |
| | | union all |
| | | SELECT COUNT( * ) AS num,2 as type FROM healthcode WHERE |
| | | TO_DAYS(dtime)=TO_DAYS(NOW()) and type=2 |
| | | union all |
| | | SELECT COUNT( * ) AS num,3 as type FROM healthcode WHERE |
| | | TO_DAYS(dtime)=TO_DAYS(NOW()) and type=3 |
| | | </select> |
| | | |
| | | <select id="selectCountz" resultType="java.util.HashMap"> |
| | |
| | | import org.springblade.system.user.excel.UserImporter; |
| | | import org.springblade.system.user.service.IUserService; |
| | | import org.springblade.system.user.vo.UserVO; |
| | | import org.springblade.system.user.vo.UsersVo; |
| | | import org.springblade.system.user.wrapper.UserWrapper; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | return R.data(userService.platformDetail(user)); |
| | | } |
| | | |
| | | /** |
| | | * 查询处警人员列表 |
| | | * @param user 用户对象 |
| | | * @param query 分页 |
| | | * @param response 返回 |
| | | */ |
| | | @GetMapping("/security-list") |
| | | public R<IPage<UsersVo>> page(@ApiIgnore User user, Query query, HttpServletResponse response) { |
| | | response.setHeader("Access-Control-Allow-Origin", "*"); |
| | | response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE"); |
| | | response.setHeader("Access-Control-Allow-Credentials", "true"); |
| | | return R.data(userService.selectSecurityUserList(Condition.getPage(query),user)); |
| | | } |
| | | |
| | | } |
| | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springblade.system.user.entity.User; |
| | | import org.springblade.system.user.excel.UserExcel; |
| | | import org.springblade.system.user.vo.UsersVo; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | List<UserExcel> exportUser(@Param("ew") Wrapper<User> queryWrapper); |
| | | |
| | | /** |
| | | * 查询处警人员列表 |
| | | * @param user 用户对象 |
| | | * @param page 分页 |
| | | */ |
| | | List<UsersVo> selectSecurityUserPageList(IPage<UsersVo> page, User user); |
| | | } |
| | |
| | | SELECT id, tenant_id, user_type, account, name, real_name, email, phone, birthday, role_id, dept_id, post_id FROM blade_user ${ew.customSqlSegment} |
| | | </select> |
| | | |
| | | <!--查询处警人员列表--> |
| | | <select id="selectSecurityUserPageList" resultType="org.springblade.system.user.vo.UsersVo"> |
| | | SELECT bu.*,p.jd,p.wd FROM blade_user bu |
| | | LEFT JOIN |
| | | jfpt.sys_position p |
| | | on |
| | | p.snumber=bu.code |
| | | where |
| | | role_id = #{user.roleId} |
| | | <if test="user.realName!=null and user.realName !=''"> |
| | | <bind name="realName" value="'%'+user.realName+'%'"/> |
| | | and bu.real_name like #{realName} |
| | | </if> |
| | | <if test="user.code!=null"> |
| | | <bind name="code" value="'%'+user.code+'%'"/> |
| | | and bu.code like #{code} |
| | | </if> |
| | | order by bu.code asc |
| | | </select> |
| | | </mapper> |
| | |
| | | import org.springblade.system.user.enums.UserEnum; |
| | | import org.springblade.system.user.excel.UserExcel; |
| | | import org.springblade.system.user.vo.UserVO; |
| | | import org.springblade.system.user.vo.UsersVo; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | UserVO platformDetail(User user); |
| | | |
| | | /** |
| | | * 查询处警人员列表 |
| | | * @param page 分页 |
| | | * @param user 用户对象 |
| | | * @return |
| | | */ |
| | | IPage<UsersVo> selectSecurityUserList(IPage<UsersVo> page, User user); |
| | | } |
| | |
| | | import org.springblade.system.user.service.IUserOauthService; |
| | | import org.springblade.system.user.service.IUserService; |
| | | import org.springblade.system.user.vo.UserVO; |
| | | import org.springblade.system.user.vo.UsersVo; |
| | | import org.springblade.system.user.wrapper.UserWrapper; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | return userVO; |
| | | } |
| | | |
| | | /** |
| | | * 查询处警人员列表 |
| | | * @param page 分页 |
| | | * @param user 用户对象 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<UsersVo> selectSecurityUserList(IPage<UsersVo> page, User user) { |
| | | return page.setRecords(baseMapper.selectSecurityUserPageList(page,user)); |
| | | } |
| | | } |
| New file |
| | |
| | | package org.springblade.system.user.vo; |
| | | |
| | | import lombok.Data; |
| | | import org.springblade.system.user.entity.User; |
| | | |
| | | @Data |
| | | public class UsersVo extends User { |
| | | private static final long serialVersionUID = 1L; |
| | | private String jd; |
| | | private String wd; |
| | | private String coordinate; |
| | | } |