| | |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.service.ISysUserService; |
| | | import com.dg.core.util.Snowflake; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | return error("密码不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(config.getPhonenumber())) |
| | | { |
| | | return error("手机号不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(config.getUserName())) |
| | | { |
| | | return error("昵称不能为空"); |
| | |
| | | |
| | | config.setCreateTime(LocalDateTime.now()); |
| | | config.setUpdateTime(LocalDateTime.now()); |
| | | |
| | | config.setUserId(Snowflake.getId()); |
| | | return toAjax(IUserService.insertConfig(config)); |
| | | } |
| | | |
| | |
| | | return error("userId不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(config.getPhonenumber())) |
| | | { |
| | | return error("手机号不能为空"); |
| | | } |
| | | |
| | | |
| | | if(StringUtils.isEmpty(config.getLoginName())) |
| | | { |
| | | return error("账户不能为空"); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 删除聊天记录 |
| | | * 删除导办用户接口 |
| | | * |
| | | * @return 结果 |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 修改空闲状态 |
| | | * 修改导办用户空闲状态接口 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 结果 |
| | |
| | | return toAjax(IUserService.updateConfig(config)); |
| | | } |
| | | |
| | | /** |
| | | * 根据部门id及分类id获取导办用户 |
| | | * |
| | | * @return 结果 |
| | | */ |
| | | @ApiOperation("根据部门id及分类id获取导办用户") |
| | | @GetMapping("/selectListByDepartmentId") |
| | | @Authorization |
| | | public ResultData selectListByDepartmentId(@RequestParam("departmentId") String departmentId, |
| | | @RequestParam("classifyId") String classifyId){ |
| | | return ResultData.success(IUserService.selectListByDepartmentId(departmentId,classifyId)); |
| | | } |
| | | |
| | | } |