ludc
2024-11-15 db13f13c39508acdb0c4a88cbf51c930fb2fba16
管理员添加用户之后设置用户密码修改时间为0
已修改2个文件
5 ■■■■■ 文件已修改
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/frameworkcore/compatibility/impl/SmUserQueryServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/UIManagerServiceImpl.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/frameworkcore/compatibility/impl/SmUserQueryServiceImpl.java
@@ -1318,6 +1318,8 @@
        smUserDTO.setLastModifier(loginUserId);
        smUserDTO.setOid(ObjectUtility.getNewObjectID36());
        UserInfo userInfo = changeSmUserDTOToUserInfo(smUserDTO);
        //管理员添加的用户初始密码修改时间都应该为0,因为涉及到后面用户首次登录自己修改密码
        userInfo.pwdUpdateTime = 0;
        UserEntityInfo userEntityInfo = new UserEntityInfo(loginUserId, "");
        String oid = platformClientUtil.getFrameworkService().saveUser(userInfo, userEntityInfo);
        if (Func.isEmpty(oid)) {
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/UIManagerServiceImpl.java
@@ -3351,11 +3351,10 @@
         */
        protected boolean checkQTIsExist(String tip, String txtQTName, String txtType) throws PLException {
            boolean res = false;
            String sql = "select count(1) count_ from PL_QTEMPLATE qt " +
                    "where qt.btmname ='" + txtType.trim() + "' " +
                    "and qt.qtname='" + txtQTName.trim() + "'";
            res = checkCountNotEqualZero(sql);
            if(!res){
                throw new PLException("500",
                        new String[]{String.format("%s %s 无效!", tip, txtQTName)});