派生自 projectDept/qhighschool

yn147
2023-03-28 c9cfe7bcc6f309e7278cac8bddfce9f281fd5cde
门户登录
1个文件已修改
5 ■■■■ 已修改文件
src/main/java/com/qxueyou/scc/sys/action/LoginController.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/qxueyou/scc/sys/action/LoginController.java
@@ -305,11 +305,14 @@
        if("study".equals(logType)){
            hql = "from User where deleteFlag is false and account = ? and password = ? ";
            params =  CollectionUtils.newList(account,password);
        }else if("portal".equals(logType)){
            hql = "from User where deleteFlag is false and mobilePhone = ? and password = ? ";
            params = CollectionUtils.newList(account, password);
        }else{
            if(StringUtils.isEmpty(password)) {
                return new Result(false, "用户密码不能为空");
            }
            hql = "from User where deleteFlag is false and account = ? and password = ? ";
            hql = "from User where deleteFlag is false and mobilePhone = ? and password = ? ";
            params =  CollectionUtils.newList(account,password);
        }