通讯录查询修改

master
Xusan 2024-05-15 17:55:10 +08:00
parent 382e6adc12
commit a69c192cff
2 changed files with 9 additions and 2 deletions

View File

@ -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) {

View File

@ -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>