This commit is contained in:
Kane Wang 2023-10-07 19:11:46 +08:00
parent 5fa7639314
commit 19d658858e
2 changed files with 41 additions and 19 deletions

View File

@ -117,6 +117,20 @@
<version>2.20.0</version>
</dependency>
<!-- POI -->
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>5.2.4</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.2.4</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>

View File

@ -25,6 +25,7 @@ public class CallerArchievement
{
private static Logger logger = LoggerFactory.getLogger( CallerArchievement.class );
private static ArrayList<MensualArchievementItem> monthArray = null;
/**
* 构造函数
* @param callerCode
@ -93,7 +94,8 @@ public class CallerArchievement
if ( params.get( "a_total" ) instanceof Integer )
{
totalArchievement = (Integer) params.get( "a_total" );
} else
}
else
{
totalArchievement = Integer.valueOf( 0 );
}
@ -102,7 +104,8 @@ public class CallerArchievement
if ( params.get( "a_attaching_rate" ) instanceof String )
{
attachingRate = (String) params.get( "a_attaching_rate" );
} else
}
else
{
attachingRate = "0.0";
}
@ -111,15 +114,20 @@ public class CallerArchievement
if ( params.get( "a_renewal_rate" ) instanceof String )
{
renewalRate = (String) params.get( "a_renewal_rate" );
} else
}
else
{
renewalRate = "0.0";
}
// 处理每月业绩
ArrayList<MensualArchievementItem> mensualList = new ArrayList<>(CallerArchievement.monthArray);
// ArrayList<MensualArchievementItem> mensualList = new
// ArrayList<>(CallerArchievement.monthArray);
// 数据库接收的每月业绩要检查是否有缺漏
if ( params.get( "a_mensual_cur" ) instanceof ArrayList )
{
mensual = (ArrayList<MensualArchievementItem>) params.get( "a_mensual_cur" );
}
archievement = new CallerArchievement( callerCode, totalArchievement, mensual, renewalRate,
attachingRate );