完成坐席工号查询接口。
This commit is contained in:
		@@ -11,8 +11,8 @@
 | 
			
		||||
 | 
			
		||||
  <properties>
 | 
			
		||||
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 | 
			
		||||
    <maven.compiler.source>1.9</maven.compiler.source>
 | 
			
		||||
    <maven.compiler.target>1.9</maven.compiler.target>
 | 
			
		||||
    <maven.compiler.source>20</maven.compiler.source>
 | 
			
		||||
    <maven.compiler.target>20</maven.compiler.target>
 | 
			
		||||
    <spring.version>5.3.24</spring.version>
 | 
			
		||||
  </properties>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user