完成部门业绩和坐席排行榜的mybatis改造!
This commit is contained in:
@@ -42,7 +42,7 @@ public class CallerRankingList
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public static CallerRankingList getCallerRankingList2( String departmentCode, String year,
|
||||
public static CallerRankingList getCallerRankingList( String departmentCode, String year,
|
||||
String month ) throws IOException
|
||||
{
|
||||
CallerRankingList rankingList = null;
|
||||
@@ -75,7 +75,7 @@ public class CallerRankingList
|
||||
* @param month 排行榜月份
|
||||
* @return CallerRankingList的实例对象
|
||||
*/
|
||||
public static CallerRankingList getCallerRankingList( String departmentCode, String year,
|
||||
public static CallerRankingList getCallerRankingList2( String departmentCode, String year,
|
||||
String month ) throws ClassNotFoundException, SQLException
|
||||
{
|
||||
CallerRankingList rankingList = null;
|
||||
|
@@ -14,8 +14,9 @@
|
||||
package com.cpic.xim.web.controllers.archievement;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@@ -31,6 +32,9 @@ import com.cpic.xim.web.controllers.archievement.RankingList.RankingListResponse
|
||||
@RequestMapping( "/archievement" )
|
||||
public class ArchievementQueryController
|
||||
{
|
||||
//日志
|
||||
private static Logger logger = LoggerFactory.getLogger(ArchievementQueryController.class);
|
||||
|
||||
/**
|
||||
* 查询坐席业绩
|
||||
*/
|
||||
@@ -106,19 +110,12 @@ public class ArchievementQueryController
|
||||
success = true;
|
||||
message = "调用成功!";
|
||||
}
|
||||
catch ( SQLException error )
|
||||
catch ( IOException error )
|
||||
{
|
||||
success = false;
|
||||
message = "获取排行榜失败,原因:" + error.getMessage();
|
||||
|
||||
error.printStackTrace();
|
||||
}
|
||||
catch ( ClassNotFoundException error )
|
||||
{
|
||||
success = false;
|
||||
message = "获取排行榜失败,原因:oracle驱动加载失败!" + error.getMessage();
|
||||
|
||||
error.printStackTrace();
|
||||
logger.error(message, error);
|
||||
}
|
||||
|
||||
RankingListResponse response = new RankingListResponse( success, message, departmentCode,
|
||||
|
Reference in New Issue
Block a user