|
|
|
@ -129,7 +129,6 @@ public class PortalPerformanceInfoCmd {
|
|
|
|
|
try{
|
|
|
|
|
String startDay = "" ;
|
|
|
|
|
String endDay = "" ;
|
|
|
|
|
String period_month = "" ;
|
|
|
|
|
String score = "0.0";
|
|
|
|
|
String kpi_scheme = "";
|
|
|
|
|
String real_period = "";
|
|
|
|
@ -139,7 +138,7 @@ public class PortalPerformanceInfoCmd {
|
|
|
|
|
Map<String,String> scoreMap = getLastScore(nowDate);
|
|
|
|
|
if(!scoreMap.isEmpty()){
|
|
|
|
|
score = scoreMap.get("score");
|
|
|
|
|
period_month = scoreMap.get("period_month");
|
|
|
|
|
real_period = scoreMap.get("real_period");
|
|
|
|
|
startDay = scoreMap.get("startDay");
|
|
|
|
|
endDay = scoreMap.get("endDay");
|
|
|
|
|
}
|
|
|
|
@ -168,12 +167,17 @@ public class PortalPerformanceInfoCmd {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
log.error("kpi_scheme:"+kpi_scheme);
|
|
|
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(kpi_scheme)){
|
|
|
|
|
dataMap.put("score", score);
|
|
|
|
|
dataMap.put("yearmonth", period_month);
|
|
|
|
|
dataMap.put("real_period", period_month);
|
|
|
|
|
dataMap.put("yearmonth", real_period);
|
|
|
|
|
dataMap.put("real_period", real_period);
|
|
|
|
|
dataMap.put("kpi_scheme", kpi_scheme);
|
|
|
|
|
|
|
|
|
|
dataMap.put("startDay", startDay);
|
|
|
|
|
dataMap.put("endDay", endDay);
|
|
|
|
|
}else{
|
|
|
|
|
String sql =" select left(k.real_period,10) as real_period,left(k.real_period,7) as period_month,k.kpi_scheme,k.score\n" +
|
|
|
|
|
" from (select real_period,kpi_scheme,score\n" +
|
|
|
|
@ -201,16 +205,15 @@ public class PortalPerformanceInfoCmd {
|
|
|
|
|
score = String.valueOf(recordMap.get("score"));
|
|
|
|
|
kpi_scheme = String.valueOf(recordMap.get("kpi_scheme"));
|
|
|
|
|
real_period = String.valueOf(recordMap.get("real_period"));
|
|
|
|
|
period_month = String.valueOf(recordMap.get("period_month"));
|
|
|
|
|
|
|
|
|
|
dataMap.put("score", score);
|
|
|
|
|
dataMap.put("yearmonth", period_month);
|
|
|
|
|
dataMap.put("kpi_scheme", kpi_scheme);
|
|
|
|
|
dataMap.put("real_period", real_period);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
dataMap.put("score", score);
|
|
|
|
|
dataMap.put("yearmonth", real_period);
|
|
|
|
|
dataMap.put("kpi_scheme", kpi_scheme);
|
|
|
|
|
dataMap.put("real_period", real_period);
|
|
|
|
|
dataMap.put("startDay", startDay);
|
|
|
|
|
dataMap.put("endDay", endDay);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
log.error("getLastScore-e:"+e);
|
|
|
|
|