| | |
| | | List<HuaChengSysUser> list=iHuaChengSysUserService.selectData("",account,""); |
| | | HuaChengSysUser huaChengSysUser=null; |
| | | |
| | | if(list!=null || list.size()>0 ) |
| | | if(list!=null && list.size()>0 ) |
| | | { |
| | | huaChengSysUser=list.get(0); |
| | | } |
| | |
| | | map.put("userType", user.getUserType()); |
| | | map.put("departmentId", user.getDepartmentId()); |
| | | map.put("departmentName", user.getDepartmentName()); |
| | | map.put("moreDepartmentIds", user.getMoreDepartmentIds()); |
| | | |
| | | return ResultData.success(map); |
| | | } |
| | |
| | | map.put("userType", user.getUserType()); |
| | | map.put("departmentId", user.getDepartmentId()); |
| | | map.put("departmentName", user.getDepartmentName()); |
| | | map.put("moreDepartmentIds", user.getMoreDepartmentIds()); |
| | | |
| | | return ResultData.success(map); |
| | | } |
| | |
| | | return error("账户不能为空"); |
| | | } |
| | | |
| | | config.setUserType("3"); |
| | | |
| | | config.setUpdateBy(sys.getUserId()+""); |
| | | |
| | | return toAjax(IUserService.updateConfig(config)); |
| | |
| | | |
| | | |
| | | |
| | | @ApiOperation("切换部门接口") |
| | | @GetMapping(value = "/switch/department") |
| | | public ResultData switchDepartment(@RequestParam(value = "departmentId",required = false) String departmentId, |
| | | @CurrentUser SysUser sysUse) |
| | | { |
| | | sysUse.setDepartmentId(departmentId); |
| | | return toAjax(IUserService.updateConfig(sysUse)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |