1.新增根据用户编号查询用户信息接口
2.修复考勤导出信息中考勤类型缺失bug
| | |
| | | /** |
| | | * 部门id |
| | | */ |
| | | @TableField("dept_id") |
| | | private String deptId; |
| | | /** |
| | | * 岗位id |
| | |
| | | String USER_AUTH_INFO = API_PREFIX + "/user-auth-info"; |
| | | String SAVE_USER = API_PREFIX + "/save-user"; |
| | | String REMOVE_USER = API_PREFIX + "/remove-user"; |
| | | String SELUSERBYCODE = API_PREFIX + "/selUserByCode"; |
| | | |
| | | /** |
| | | * 获取用户信息 |
| | |
| | | @PostMapping(REMOVE_USER) |
| | | R<Boolean> removeUser(@RequestParam("tenantIds") String tenantIds); |
| | | |
| | | /** |
| | | * 根据用户编号查询用户新 |
| | | * @param code 用户编号 |
| | | * @return |
| | | */ |
| | | @GetMapping(SELUSERBYCODE) |
| | | User selUserByCode(@RequestParam("code") String code); |
| | | } |
| | |
| | | <select id="getValue" resultType="java.lang.String"> |
| | | select |
| | | dict_value |
| | | from blade_dict_biz where code = #{param1} and dict_key = #{param2} and is_deleted = 0 |
| | | from blade_dict_biz where code = #{param1} and dict_key = #{param2} and is_deleted = 0 limit 1 |
| | | </select> |
| | | |
| | | <!-- oracle 版本 --> |
| | |
| | | return R.data(service.remove(Wrappers.<User>query().lambda().in(User::getTenantId, Func.toStrList(tenantIds)))); |
| | | } |
| | | |
| | | /** |
| | | * 根据用户编号查询用户新 |
| | | * @param code 用户编号 |
| | | * @return |
| | | */ |
| | | @Override |
| | | @GetMapping(SELUSERBYCODE) |
| | | public User selUserByCode(String code) { |
| | | return service.selUserByCode(code); |
| | | } |
| | | } |
| | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | * @param page 分页 |
| | | */ |
| | | List<UsersVo> selectSecurityUserPageList(IPage<UsersVo> page, User user); |
| | | |
| | | /** |
| | | * 根据用户编号查询用户信息 |
| | | * @param code 用户编号 |
| | | * @return |
| | | */ |
| | | User selUserByCode(String code); |
| | | } |
| | |
| | | </if> |
| | | order by bu.code asc |
| | | </select> |
| | | |
| | | <!--根据用户编号查询用户信息--> |
| | | <select id="selUserByCode" resultType="org.springblade.system.user.entity.User"> |
| | | select code,dept_id deptId from blade_user where is_deleted = 0 and code=#{code} |
| | | </select> |
| | | </mapper> |
| | |
| | | * @return |
| | | */ |
| | | IPage<UsersVo> selectSecurityUserList(IPage<UsersVo> page, User user); |
| | | |
| | | /** |
| | | * 根据用户编号查询用户新 |
| | | * @param code 用户编号 |
| | | * @return |
| | | */ |
| | | User selUserByCode(String code); |
| | | } |
| | |
| | | public IPage<UsersVo> selectSecurityUserList(IPage<UsersVo> page, User user) { |
| | | return page.setRecords(baseMapper.selectSecurityUserPageList(page,user)); |
| | | } |
| | | |
| | | /** |
| | | * 根据用户编号查询用户新 |
| | | * @param code 用户编号 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public User selUserByCode(String code) { |
| | | return baseMapper.selUserByCode(code); |
| | | } |
| | | } |