通讯录查询修改
parent
382e6adc12
commit
a69c192cff
|
|
@ -66,6 +66,13 @@ public class UserController {
|
||||||
StpUtil.kickout(id);
|
StpUtil.kickout(id);
|
||||||
return ResultJson.ok("将用户[" + id + "]踢下线");
|
return ResultJson.ok("将用户[" + id + "]踢下线");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "登出")
|
||||||
|
@PostMapping("logout")
|
||||||
|
public ResultJson logout() {
|
||||||
|
StpUtil.logout();
|
||||||
|
return ResultJson.ok();
|
||||||
|
}
|
||||||
// @ApiOperation(value = "查询所有")
|
// @ApiOperation(value = "查询所有")
|
||||||
// @PostMapping(value = "find")
|
// @PostMapping(value = "find")
|
||||||
public ResultJson<User> find(@RequestBody User dto) {
|
public ResultJson<User> find(@RequestBody User dto) {
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,10 @@
|
||||||
AND AB.NAME LIKE CONCAT('%', #{dto.name}, '%')
|
AND AB.NAME LIKE CONCAT('%', #{dto.name}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="dto.adcd != null and dto.adcd != '' ">
|
<if test="dto.adcd != null and dto.adcd != '' ">
|
||||||
AND AB.ADCD CONCAT('', #{dto.adcd}, '%')
|
AND AB.ADCD LIKE CONCAT('', #{dto.adcd}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="dto.phone != null and dto.phone != '' ">
|
<if test="dto.phone != null and dto.phone != '' ">
|
||||||
AND AB.PHONE = #{dto.phone}
|
AND AB.PHONE LIKE CONCAT('', #{dto.phone}, '%')
|
||||||
</if>
|
</if>
|
||||||
ORDER BY AB.SORT
|
ORDER BY AB.SORT
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue