fengjin
2022-10-10 3bb39d123ef72b627386301af48a349defda69bd
flower_city/src/main/java/com/dg/core/controller/GuideDoController.java
@@ -11,6 +11,7 @@
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.query.Param;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.*;
@@ -72,6 +73,11 @@
            return error("密码不能为空");
        }
        if(StringUtils.isEmpty(config.getPhonenumber()))
        {
            return error("手机号不能为空");
        }
        if(StringUtils.isEmpty(config.getUserName()))
        {
            return error("昵称不能为空");
@@ -107,6 +113,12 @@
            return error("userId不能为空");
        }
        if(StringUtils.isEmpty(config.getPhonenumber()))
        {
            return error("手机号不能为空");
        }
        if(StringUtils.isEmpty(config.getLoginName()))
        {
            return error("账户不能为空");
@@ -118,7 +130,7 @@
    }
    /**
     * 删除聊天记录
     * 删除导办用户接口
     *
     * @return 结果
     */
@@ -135,7 +147,7 @@
    }
    /**
     * 修改空闲状态
     * 修改导办用户空闲状态接口
     *
     * @param config 参数配置信息
     * @return 结果
@@ -167,8 +179,19 @@
    @GetMapping("/selectListByDepartmentId")
    @Authorization
    public ResultData selectListByDepartmentId(@RequestParam("departmentId") String departmentId,
                                               @RequestParam("classifyId") String classifyId){
                                               @RequestParam(value = "classifyId",required = false) String classifyId){
        return  ResultData.success(IUserService.selectListByDepartmentId(departmentId,classifyId));
    }
    /**
     * 查询导办用户列表(不分页)
     * @return 结果
     */
    @ApiOperation(" 查询导办用户列表(不分页)")
    @GetMapping("/queryList")
    @Authorization
    public  ResultData  queryList(){
        return  ResultData.success(IUserService.queryList(2));
    }
}