| | |
| | | <classpathentry kind="lib" path="lib/tomcat7-websocket.jar"/> |
| | | <classpathentry kind="lib" path="lib/websocket-api.jar"/> |
| | | <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/json-20150729.jar"/> |
| | | <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/bcmail-jdk15on-161.jar"/> |
| | | <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/bcpg-jdk15on-161.jar"/> |
| | | <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/bcpkix-jdk15on-161.jar"/> |
| | | <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/bcprov-ext-jdk15on-161.jar"/> |
| | | <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/bcprov-jdk15on-161.jar"/> |
| | | <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/bctls-jdk15on-161.jar"/> |
| | | <classpathentry exported="true" kind="lib" path="lib/commons-lang3-3.11.jar"/> |
| | | <classpathentry exported="true" kind="lib" path="lib/modbus4j-3.0.4-SNAPSHOT.jar"/> |
| | | <classpathentry exported="true" kind="lib" path="lib/commons-logging-1.1.3.jar"/> |
| | |
| | | </attributes> |
| | | </classpathentry> |
| | | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> |
| | | <classpathentry kind="lib" path="D:/apache-tomcat-7.0.105/lib/servlet-api.jar"/> |
| | | <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v8.0.39"/> |
| | | <classpathentry kind="output" path="WebRoot/WEB-INF/classes"/> |
| | | </classpath> |
| | |
| | | public boolean add(Object obj) { |
| | | User_inf uinf=(User_inf) obj; |
| | | String sql=" insert into db_user.tb_user_inf(USnId,UName,Upassword) values(?,?,?) "; |
| | | boolean bl=DAOHelper.executeUpdate( DBUtil.getConn(), sql, new Object[]{uinf.getUSnId(),uinf.getUName(),ActionUtil.EncryptionBase64(uinf.getUSnId())}); |
| | | boolean bl=DAOHelper.executeUpdate( DBUtil.getConn(), sql, new Object[]{uinf.getUSnId(),uinf.getUName(),ActionUtil.EncryptionMD5(uinf.getUSnId())}); |
| | | return bl; |
| | | } |
| | | //修改用户密码 |
| | |
| | | public boolean update(Object obj) { |
| | | User_inf uinf=(User_inf) obj; |
| | | String sql=" update db_user.tb_user_inf set USnId=?,Upassword=? where uid=? "; |
| | | boolean bl=DAOHelper.executeUpdate( DBUtil.getConn(), sql, new Object[]{uinf.getUSnId(),ActionUtil.EncryptionBase64(uinf.getUSnId()),uinf.getUId()}); |
| | | boolean bl=DAOHelper.executeUpdate( DBUtil.getConn(), sql, new Object[]{uinf.getUSnId(),ActionUtil.EncryptionMD5(uinf.getUSnId()),uinf.getUId()}); |
| | | return bl; |
| | | } |
| | | //删除用户 |