保存进度!

This commit is contained in:
Kane Wang 2023-07-30 19:11:56 +08:00
parent 9483b49a20
commit 090a551066
4 changed files with 9 additions and 10 deletions

View File

@ -61,6 +61,7 @@ public class DepartmentArchievement
* @return * @return
* @throws IOException * @throws IOException
*/ */
@SuppressWarnings("unchecked")
public static DepartmentArchievement getDepartmentArchievement( String departmentCode ) public static DepartmentArchievement getDepartmentArchievement( String departmentCode )
throws IOException throws IOException
{ {

View File

@ -30,9 +30,6 @@ public class CallerRankingList
private static String userName = "desktop_archievement_admin"; private static String userName = "desktop_archievement_admin";
private static String password = "Cpic123456"; private static String password = "Cpic123456";
// 配置文件路径
private static String configFilePath = "mybatis/mybatis-config.xml";
private CallerRankingList( String departmentCode, String year, String month, private CallerRankingList( String departmentCode, String year, String month,
ArrayList<CallerRankingItem> attachingRateRankingList, ArrayList<CallerRankingItem> attachingRateRankingList,
ArrayList<CallerRankingItem> renewalRateRankingList) ArrayList<CallerRankingItem> renewalRateRankingList)
@ -44,15 +41,16 @@ public class CallerRankingList
this.renewalRateRankingList = renewalRateRankingList; this.renewalRateRankingList = renewalRateRankingList;
} }
@SuppressWarnings("unchecked")
public static CallerRankingList getCallerRankingList2( String departmentCode, String year, public static CallerRankingList getCallerRankingList2( String departmentCode, String year,
String month ) throws IOException String month ) throws IOException
{ {
CallerRankingList rankingList = null; CallerRankingList rankingList = null;
String monthRegx = "(0[1-9])|(1[0-2])"; // String monthRegx = "(0[1-9])|(1[0-2])";
String yearRegx = "202[0-9]"; // String yearRegx = "202[0-9]";
SqlSession session = MybatisUtils.getSqlSession(yearRegx); SqlSession session = MybatisUtils.getSqlSession();
RankingListMapper mapper = session.getMapper(RankingListMapper.class); RankingListMapper mapper = session.getMapper(RankingListMapper.class);
HashMap<String,Object> params = new HashMap<>(5); HashMap<String,Object> params = new HashMap<>(5);
@ -61,7 +59,7 @@ public class CallerRankingList
ArrayList<CallerRankingItem> attachingRateRankingList = (ArrayList<CallerRankingItem>)params.get("a_attaching_ranking_list"); ArrayList<CallerRankingItem> attachingRateRankingList = (ArrayList<CallerRankingItem>)params.get("a_attaching_ranking_list");
ArrayList<CallerRankingItem> renewalRateList = (ArrayList<CallerRankingItem>)params.get("a_renewal_ranking_list"); ArrayList<CallerRankingItem> renewalRateList = (ArrayList<CallerRankingItem>)params.get("a_renewal_ranking_list");
rankingList = new CallerRankingList(departmentCode, yearRegx, monthRegx, attachingRateRankingList, renewalRateList); rankingList = new CallerRankingList(departmentCode, year, month, attachingRateRankingList, renewalRateList);
return rankingList; return rankingList;
} }
@ -85,8 +83,8 @@ public class CallerRankingList
String sql = """ String sql = """
{call telsale_archievement_pkg.caller_arch_ranking_list(?,?,?,?,?)} {call telsale_archievement_pkg.caller_arch_ranking_list(?,?,?,?,?)}
"""; """;
String monthRegx = "(0[1-9])|(1[0-2])"; // String monthRegx = "(0[1-9])|(1[0-2])";
String yearRegx = "20[0-2][0-0]"; // String yearRegx = "20[0-2][0-0]";
ArrayList<CallerRankingItem> attachingRateRankingList = new ArrayList<>(); ArrayList<CallerRankingItem> attachingRateRankingList = new ArrayList<>();
ArrayList<CallerRankingItem> renewalRateRankingList = new ArrayList<>(); ArrayList<CallerRankingItem> renewalRateRankingList = new ArrayList<>();

View File

@ -11,7 +11,6 @@ package com.cpic.xim.web.controllers.account;
import java.sql.SQLException; import java.sql.SQLException;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;

View File

@ -11,6 +11,7 @@ package com.cpic.xim.web.controllers.caller;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
@SuppressWarnings("all")
public class QueryCallerRequest public class QueryCallerRequest
{ {
public QueryCallerRequest() {} public QueryCallerRequest() {}