From 30bcaac63cafe8ed46a7ab09eac6b90fa7aea1d5 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期三, 08 十一月 2023 09:38:36 +0800 Subject: [PATCH] 代码整理,及应用MybatisPlus,使得可不用mapper.xml配置文件进行查询demo实现 --- pipIrr-platform/pipIrr-web/pipIrr-web-sso/src/main/java/com/dy/sso/busi/SsoCtrl.java | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-sso/src/main/java/com/dy/sso/busi/SsoCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-sso/src/main/java/com/dy/sso/busi/SsoCtrl.java index 9d20d68..aead030 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-web-sso/src/main/java/com/dy/sso/busi/SsoCtrl.java +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-sso/src/main/java/com/dy/sso/busi/SsoCtrl.java @@ -86,7 +86,7 @@ try { //Boolean flag = cacheManager.getCacheNames().isEmpty() ; uuid = UUID.randomUUID().toString(); - userPo = this.sv.login(uuid, vo.phone, vo.password); + userPo = this.sv.loginWithMapperXml(uuid, vo.phone, vo.password); } catch (Exception e) { log.error("鐢ㄦ埛鐧诲綍寮傚父", e); return BaseResponseUtils.buildException(e.getMessage()) ; @@ -131,7 +131,7 @@ try { //Boolean flag = cacheManager.getCacheNames().isEmpty() ; uuid = UUID.randomUUID().toString(); - userPo = this.sv.login(uuid, vo.phone, vo.password); + userPo = this.sv.loginWithMapperXml(uuid, vo.phone, vo.password); } catch (Exception e) { log.error("鐢ㄦ埛鐧诲綍寮傚父", e); return BaseResponseUtils.buildException(e.getMessage()) ; @@ -222,6 +222,11 @@ return vo ; } + ///////////////////////////////////////////////////////////////// + // + // 浠ヤ笅绉佹湁鏂规硶 + // + ///////////////////////////////////////////////////////////////// /** * 鍒ゆ柇鐧诲綍鐢ㄦ埛鏄惁鎷ユ湁鎸囧畾鐨勪竴涓潈闄� * @param privilege 鎸囧畾鐨勪竴涓潈闄� -- Gitblit v1.8.0