ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
~~~ package cy.model; import java.sql.*; import cy.db.Conn; public class Moxing { public String checkUser(String cleId,String passwd) { String zhiwei=""; Conn sh=null; try { String sql="select cleZw from clerkInfo c,login l where c.cleId=l.cleId " + "and l.cleId=? and l.password=?"; String paras[]={cleId,passwd}; sh=new Conn(); ResultSet rs=sh.query(sql, paras); if(rs.next()) { zhiwei=rs.getString(1); } } catch (Exception e) {} finally { sh.close(); } return zhiwei; } } ~~~