| | |
| | | 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)) { |
| | |
| | | */ |
| | | 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)}); |