完成坐席工号查询接口。

This commit is contained in:
2023-04-26 20:19:49 +08:00
parent 1e33383d22
commit 2e72789a4f
8 changed files with 78 additions and 51 deletions

View File

@@ -12,9 +12,9 @@ package com.cpic.xim.utils.account;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
@SuppressWarnings( "unused" )
public final class TeleSalerInfo
@@ -40,6 +40,7 @@ public final class TeleSalerInfo
}
public static TeleSalerInfo queryTeleSalerInfo( String code )
throws ClassNotFoundException, SQLException
{
TeleSalerInfo info = null;
@@ -48,6 +49,30 @@ public final class TeleSalerInfo
String password = "Cpic123456";
String jdbcURL = "jdbc:oracle:thin:@10.39.0.86:1521:xmcx1";
Connection conection = null;
Statement statement = null;
ResultSet result = null;
String sql = """
SELECT DISTINCT s.saler_code,
s.saler_name,
t.team_code,
t.team,
bm.department_code,
bm.department_name
FROM tele_saler s,
tele_saler_team t,
idst0.bm_t bm
WHERE s.team_code = t.team_code
AND t.department_code = bm.department_code
AND s.saler_code = ?
""";
Class.forName( "oracle.jdbc.driver.OracleDriver" );
conection = DriverManager.getConnection( jdbcURL, userName, password );
return info;
}