package com.erke.service;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.db.DBHelper;
public class GetUserInfoService {
public static void main(String[] args){
getInfoData("003536", "12121");
}
public static List<Map<String, Object>> getInfoData(String ID,String name){
System.out.println("fdfdf");
String driverName="com.microsoft.sqlserver.jdbc.SQLServerDriver";
String dbUrl="jdbc:sqlserver://数据库地址;DatabaseName=数据库名";
String us="数据库名";
String pw="数据库密码";
List<Map<String, Object>> resultlist=new ArrayList<Map<String, Object>>();
String sqlLine="数据库语句";
try{
Class.forName(driverName);
Connection dbConn=DriverManager.getConnection(dbUrl,us,pw);
System.out.println("连接数据库成功");
}catch(Exception e){
}
return resultlist;
}
}