| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.apache.ibatis.annotations.MapKey; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springblade.modules.dispatcher.vo.DispatcherVO; |
| | | import org.springblade.modules.system.excel.UserExcel; |
| | | import org.springblade.modules.system.entity.User; |
| | | import org.springblade.modules.system.node.TreeNode; |
| | |
| | | public interface UserMapper extends BaseMapper<User> { |
| | | |
| | | /** |
| | | * 自定义分页,带坐标 |
| | | * |
| | | * @param page |
| | | * @param user |
| | | * @param deptIdList |
| | | * @param tenantId |
| | | * @return |
| | | */ |
| | | List<UserVO> selectUserPages(IPage<UserVO> page, @Param("user") UserVO user); |
| | | |
| | | |
| | | /** |
| | | * 自定义分页 |
| | | * |
| | | * @param page |
| | |
| | | * @param tenantId |
| | | * @return |
| | | */ |
| | | List<UserVO> selectUserPage(IPage<UserVO> page, @Param("user") User user, @Param("deptIdList") List<Long> deptIdList, @Param("tenantId") String tenantId); |
| | | List<User> selectUserPage(IPage<User> page, @Param("user") User user, @Param("deptIdList") List<Long> deptIdList, @Param("tenantId") String tenantId); |
| | | |
| | | /** |
| | | * 获取用户 |
| | |
| | | /** |
| | | * 自定义用户列表(只有保安员) |
| | | */ |
| | | List<User> selectUserPageSecurity(IPage<User> page, @Param("user") User user, @Param("deptIdList") List<Long> deptIdList, @Param("tenantId") String tenantId); |
| | | List<User> selectUserPageSecurity(IPage<User> page, @Param("user") User user); |
| | | |
| | | /** |
| | | * 保安员列表,帅选无保安证 |
| | | * @param page |
| | | * @param user |
| | | * @param tenantId |
| | | * @return |
| | | */ |
| | | IPage<UserVO> selectUserPageSecurityApply(IPage<UserVO> page,@Param("user") UserVO user, @Param("deptIdList")List<Long> deptIdList, @Param("tenantId") String tenantId); |
| | | IPage<UserVO> selectUserPageSecurityApply(IPage<UserVO> page,@Param("user") UserVO user); |
| | | |
| | | /** |
| | | * 保安员列表树 安员列表树,帅选无保安证,下拉tree |
| | |
| | | @MapKey(value = "id") |
| | | @SqlParser(filter=true) |
| | | Map<Long, TreeNode> getSecurityApplyTree(@Param("user") UserVO user); |
| | | |
| | | |
| | | List<Map<Object,Object>> selectInr(String deptid); |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | int getSecurityPaperCount(@Param("pre") String pre); |
| | | |
| | | /** |
| | | * 查询当前公司未持证保安没有报名的人员 |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | List<User> getNotApplyIdList(@Param("deptId")String deptId); |
| | | |
| | | /** |
| | | * 计算保安人员年龄 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | UserVO getUserAgeById(@Param("userId") Long userId); |
| | | |
| | | List<Map<String, Object>> selectUser(); |
| | | |
| | | |
| | | /** |
| | | * 派遣人员 |
| | | * @param deptid |
| | | * @param jurisdiction |
| | | * @return |
| | | */ |
| | | List<Map<String, Object>> getDispaterInfo(@Param("deptid")String deptid, |
| | | @Param("jurisdiction")String jurisdiction); |
| | | |
| | | /** |
| | | * 工作汇报人员 |
| | | * @param deptid |
| | | * @param jurisdiction |
| | | * @return |
| | | */ |
| | | List<Map<String, Object>> getWorkReportInfo(@Param("type")String type, |
| | | @Param("deptid")String deptid, |
| | | @Param("jurisdiction")String jurisdiction); |
| | | |
| | | /** |
| | | * 工作汇报人员(向民警) |
| | | * @param deptid |
| | | * @param jurisdiction |
| | | * @return |
| | | */ |
| | | List<Map<String, Object>> getWorkReportInfos(@Param("type")String type, |
| | | @Param("deptid")String deptid, |
| | | @Param("jurisdiction")String jurisdiction); |
| | | |
| | | /** |
| | | * 根据保安员编码查询保安信息 |
| | | * @param securityNumber 保安证编码 |
| | | * @return |
| | | */ |
| | | UserVO getUserInfoBySecurityNumber(@Param("securityNumber") String securityNumber); |
| | | |
| | | /** |
| | | * 保安员信息 |
| | | * @param user |
| | | * @return |
| | | */ |
| | | UserVO getUserDetails(@Param("user") User user); |
| | | |
| | | |
| | | DispatcherVO getDispatcherInfoByUserId(Long userId); |
| | | |
| | | /** |
| | | * 查询账号相同的用户数量 |
| | | * @param account |
| | | * @return |
| | | */ |
| | | Integer selectCountAccount(@Param("account") String account); |
| | | } |