保存进度!
This commit is contained in:
		@@ -8,6 +8,20 @@ SELECT b.reward_name,
 | 
			
		||||
       reward_projects b
 | 
			
		||||
 WHERE a.reward_index = b.reward_index;
 | 
			
		||||
 | 
			
		||||
--<EFBFBD><EFBFBD>ϯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
			
		||||
SELECT 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_name = '<EFBFBD>ŵ<EFBFBD><EFBFBD><EFBFBD>';
 | 
			
		||||
 | 
			
		||||
SELECT <EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
 | 
			
		||||
       SUM
 | 
			
		||||
  FROM <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ÿ<EFBFBD>ձ<EFBFBD><EFBFBD><EFBFBD>
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,190 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-04-06 14:14:23
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/utils/account/TeleSalerInfo.java
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
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;
 | 
			
		||||
 | 
			
		||||
public final class TeleSalerInfo
 | 
			
		||||
{
 | 
			
		||||
    /**
 | 
			
		||||
     * @description: 构造函数
 | 
			
		||||
     * @param code: 坐席工号
 | 
			
		||||
     * @param name: 坐席名称
 | 
			
		||||
     * @param teamCode: 团队代码
 | 
			
		||||
     * @param teamName: 团队名称
 | 
			
		||||
     * @param departmentCode: 部门代码
 | 
			
		||||
     * @param departmentName: 部门名称
 | 
			
		||||
     */
 | 
			
		||||
    private TeleSalerInfo( String code, String name, String teamCode, String teamName,
 | 
			
		||||
            String departmentCode, String departmentName)
 | 
			
		||||
    {
 | 
			
		||||
        this.code = code;
 | 
			
		||||
        this.name = name;
 | 
			
		||||
        this.teamCode = teamCode;
 | 
			
		||||
        this.teamName = teamName;
 | 
			
		||||
        this.departmentCode = departmentCode;
 | 
			
		||||
        this.departmentName = departmentName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static TeleSalerInfo queryTeleSalerInfo( String code )
 | 
			
		||||
    {
 | 
			
		||||
        TeleSalerInfo info = null;
 | 
			
		||||
 | 
			
		||||
        // 到时要改
 | 
			
		||||
        String userName = "desktop_archievement_admin";
 | 
			
		||||
        String password = "Cpic123456";
 | 
			
		||||
        String jdbcURL = "jdbc:oracle:thin:@10.39.0.86:1521:xmcx1";
 | 
			
		||||
 | 
			
		||||
        return info;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public String getCode()
 | 
			
		||||
    {
 | 
			
		||||
        return code;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void setCode( String code )
 | 
			
		||||
    {
 | 
			
		||||
        this.code = code;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public String getName()
 | 
			
		||||
    {
 | 
			
		||||
        return name;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void setName( String name )
 | 
			
		||||
    {
 | 
			
		||||
        this.name = name;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public String getTeamCode()
 | 
			
		||||
    {
 | 
			
		||||
        return teamCode;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void setTeamCode( String teamCode )
 | 
			
		||||
    {
 | 
			
		||||
        this.teamCode = teamCode;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public String getTeamName()
 | 
			
		||||
    {
 | 
			
		||||
        return teamName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void setTeamName( String teamName )
 | 
			
		||||
    {
 | 
			
		||||
        this.teamName = teamName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public String getDepartmentCode()
 | 
			
		||||
    {
 | 
			
		||||
        return departmentCode;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void setDepartmentCode( String departmentCode )
 | 
			
		||||
    {
 | 
			
		||||
        this.departmentCode = departmentCode;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public String getDepartmentName()
 | 
			
		||||
    {
 | 
			
		||||
        return departmentName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void setDepartmentName( String departmentName )
 | 
			
		||||
    {
 | 
			
		||||
        this.departmentName = departmentName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public int hashCode()
 | 
			
		||||
    {
 | 
			
		||||
        final int prime = 31;
 | 
			
		||||
        int result = 1;
 | 
			
		||||
        result = prime * result + ((code == null) ? 0 : code.hashCode());
 | 
			
		||||
        result = prime * result + ((name == null) ? 0 : name.hashCode());
 | 
			
		||||
        result = prime * result + ((teamCode == null) ? 0 : teamCode.hashCode());
 | 
			
		||||
        result = prime * result + ((teamName == null) ? 0 : teamName.hashCode());
 | 
			
		||||
        result = prime * result + ((departmentCode == null) ? 0 : departmentCode.hashCode());
 | 
			
		||||
        result = prime * result + ((departmentName == null) ? 0 : departmentName.hashCode());
 | 
			
		||||
        return result;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public boolean equals( Object obj )
 | 
			
		||||
    {
 | 
			
		||||
        if ( this == obj )
 | 
			
		||||
            return true;
 | 
			
		||||
        if ( obj == null )
 | 
			
		||||
            return false;
 | 
			
		||||
        if ( getClass() != obj.getClass() )
 | 
			
		||||
            return false;
 | 
			
		||||
        TeleSalerInfo other = (TeleSalerInfo) obj;
 | 
			
		||||
        if ( code == null )
 | 
			
		||||
        {
 | 
			
		||||
            if ( other.code != null )
 | 
			
		||||
                return false;
 | 
			
		||||
        } else if ( !code.equals( other.code ) )
 | 
			
		||||
            return false;
 | 
			
		||||
        if ( name == null )
 | 
			
		||||
        {
 | 
			
		||||
            if ( other.name != null )
 | 
			
		||||
                return false;
 | 
			
		||||
        } else if ( !name.equals( other.name ) )
 | 
			
		||||
            return false;
 | 
			
		||||
        if ( teamCode == null )
 | 
			
		||||
        {
 | 
			
		||||
            if ( other.teamCode != null )
 | 
			
		||||
                return false;
 | 
			
		||||
        } else if ( !teamCode.equals( other.teamCode ) )
 | 
			
		||||
            return false;
 | 
			
		||||
        if ( teamName == null )
 | 
			
		||||
        {
 | 
			
		||||
            if ( other.teamName != null )
 | 
			
		||||
                return false;
 | 
			
		||||
        } else if ( !teamName.equals( other.teamName ) )
 | 
			
		||||
            return false;
 | 
			
		||||
        if ( departmentCode == null )
 | 
			
		||||
        {
 | 
			
		||||
            if ( other.departmentCode != null )
 | 
			
		||||
                return false;
 | 
			
		||||
        } else if ( !departmentCode.equals( other.departmentCode ) )
 | 
			
		||||
            return false;
 | 
			
		||||
        if ( departmentName == null )
 | 
			
		||||
        {
 | 
			
		||||
            if ( other.departmentName != null )
 | 
			
		||||
                return false;
 | 
			
		||||
        } else if ( !departmentName.equals( other.departmentName ) )
 | 
			
		||||
            return false;
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public String toString()
 | 
			
		||||
    {
 | 
			
		||||
        return "TeleSalerInfo [code=" + code + ", name=" + name + ", teamCode=" + teamCode
 | 
			
		||||
                + ", teamName=" + teamName + ", departmentCode=" + departmentCode
 | 
			
		||||
                + ", departmentName=" + departmentName + "]";
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private String code;
 | 
			
		||||
    private String name;
 | 
			
		||||
    private String teamCode;
 | 
			
		||||
    private String teamName;
 | 
			
		||||
    private String departmentCode;
 | 
			
		||||
    private String departmentName;
 | 
			
		||||
}
 | 
			
		||||
@@ -20,6 +20,11 @@ import com.cpic.xim.utils.account.CpicXIMStaffInfo;
 | 
			
		||||
@RequestMapping( "/account" )
 | 
			
		||||
public class StaffInfoQueryController
 | 
			
		||||
{
 | 
			
		||||
    /**
 | 
			
		||||
     * @description: 
 | 
			
		||||
     * @param {String} account: 前端发送的请求内容,员工的P13账号或P09工号。
 | 
			
		||||
     * @return {*}
 | 
			
		||||
     */
 | 
			
		||||
    @RequestMapping( "/query_staff_info.do" )
 | 
			
		||||
    @ResponseBody
 | 
			
		||||
    public StaffInfoQueryResult queryStaffInfo( @RequestParam( "account" ) String account )
 | 
			
		||||
@@ -46,6 +51,16 @@ public class StaffInfoQueryController
 | 
			
		||||
            result.setMessage( error.getMessage() );
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return result;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @ResponseBody
 | 
			
		||||
    public TeleSalerQueryResult queryTeleSalerInfo( String teleSalerCode )
 | 
			
		||||
    {
 | 
			
		||||
        TeleSalerQueryResult result = new TeleSalerQueryResult();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        return result;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -86,8 +86,7 @@ public class StaffInfoQueryResult
 | 
			
		||||
        {
 | 
			
		||||
            if ( other.message != null )
 | 
			
		||||
                return false;
 | 
			
		||||
        }
 | 
			
		||||
        else if ( !message.equals( other.message ) )
 | 
			
		||||
        } else if ( !message.equals( other.message ) )
 | 
			
		||||
            return false;
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -1,11 +1,11 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-04-05 22:40:20
 | 
			
		||||
 * @Date: 2023-04-06 09:25:25
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @FilePath: /desktop_archievement_backend/src/main/java/com/cpic/xim/web/controllers/account/TeleSalerQueryResult.java
 | 
			
		||||
 * @Description:
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved.
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
package com.cpic.xim.web.controllers.account;
 | 
			
		||||
 | 
			
		||||
@@ -20,17 +20,112 @@ public class TeleSalerQueryResult extends QueryResult
 | 
			
		||||
        super();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @description: 构造函数
 | 
			
		||||
     * @param success: 请求成功标志位
 | 
			
		||||
     * @param message: 请求结果提示信息
 | 
			
		||||
     * @param teleSalerCode: 坐席工号
 | 
			
		||||
     * @param teleSalerName: 坐席名称
 | 
			
		||||
     * @param teamCode: 团队代码
 | 
			
		||||
     * @param teamName: 团队名称
 | 
			
		||||
     * @param departmentCode: 部门代码
 | 
			
		||||
     * @param departmentName: 部门名称
 | 
			
		||||
     * @return {*}
 | 
			
		||||
     */
 | 
			
		||||
    public TeleSalerQueryResult( boolean success, String message, String teleSalerCode,
 | 
			
		||||
            String teleSalerName, String teamCode, String teamName, String departmentCode,
 | 
			
		||||
            String departmentName)
 | 
			
		||||
    {
 | 
			
		||||
        super( success, message );
 | 
			
		||||
 | 
			
		||||
        this.teleSalerCode = teleSalerCode;
 | 
			
		||||
        this.teleSalerName = teleSalerName;
 | 
			
		||||
        this.teamCode = teamCode;
 | 
			
		||||
        this.teamName = teamName;
 | 
			
		||||
        this.departmentCode = departmentCode;
 | 
			
		||||
        this.departmentName = departmentName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public String getTeleSalerCode()
 | 
			
		||||
    {
 | 
			
		||||
        return teleSalerCode;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @description:
 | 
			
		||||
     * @param {String} teleSalerCode
 | 
			
		||||
     * @return {*}
 | 
			
		||||
     */
 | 
			
		||||
    public void setTeleSalerCode( String teleSalerCode )
 | 
			
		||||
    {
 | 
			
		||||
        this.teleSalerCode = teleSalerCode;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public String getTeleSalerName()
 | 
			
		||||
    {
 | 
			
		||||
        return teleSalerName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void setTeleSalerName( String teleSalerName )
 | 
			
		||||
    {
 | 
			
		||||
        this.teleSalerName = teleSalerName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public String getTeamCode()
 | 
			
		||||
    {
 | 
			
		||||
        return teamCode;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void setTeamCode( String teamCode )
 | 
			
		||||
    {
 | 
			
		||||
        this.teamCode = teamCode;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public String getTeamName()
 | 
			
		||||
    {
 | 
			
		||||
        return teamName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void setTeamName( String teamName )
 | 
			
		||||
    {
 | 
			
		||||
        this.teamName = teamName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public String getDepartmentCode()
 | 
			
		||||
    {
 | 
			
		||||
        return departmentCode;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void setDepartmentCode( String departmentCode )
 | 
			
		||||
    {
 | 
			
		||||
        this.departmentCode = departmentCode;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public String getDepartmentName()
 | 
			
		||||
    {
 | 
			
		||||
        return departmentName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void setDepartmentName( String departmentName )
 | 
			
		||||
    {
 | 
			
		||||
        this.departmentName = departmentName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @JsonProperty( "tele_saler_code" )
 | 
			
		||||
    private String teleSalerCode;
 | 
			
		||||
 | 
			
		||||
    @JsonProperty( "tele_saler_name" )
 | 
			
		||||
    private String teleSalerName;
 | 
			
		||||
 | 
			
		||||
    @JsonProperty( "team_code" )
 | 
			
		||||
    private String teamCode;
 | 
			
		||||
 | 
			
		||||
    @JsonProperty( "team_name" )
 | 
			
		||||
    private String teamName;
 | 
			
		||||
 | 
			
		||||
    @JsonProperty( "department_code" )
 | 
			
		||||
    private String departmentCode;
 | 
			
		||||
 | 
			
		||||
    @JsonProperty( "department_name" )
 | 
			
		||||
    private String departmentName;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user