@@ -72,7 +72,11 @@ public class ActionExportPersonStatistic extends BaseAction {
// 将结果组织成EXCEL
if( check ) {
- fileName = "" + name + "的个人出勤率统计记录_"+year+"年"+month+"月.xls";
+ if(StringUtils.isNotEmpty(name) && StringUtils.contains(name,"@")){
+ fileName = "" + name.split("@")[0] + "的个人出勤率统计记录_"+year+"年"+month+"月.xls";
+ }else{
+ fileName = "" + name + "的个人出勤率统计记录_"+year+"年"+month+"月.xls";
+ }
sheetName = "个人出勤率统计记录";
wb = composeDetail( fileName, sheetName, statisticPersonForMonth_list );
}
@@ -93,7 +93,11 @@ public class ActionExportTopUnitStatistic extends BaseAction {
- fileName = "" + name + "的出勤率统计记录_"+year+"年"+month+"月.xls";
+ fileName = "" + name.split("@")[0] + "的出勤率统计记录_"+year+"年"+month+"月.xls";
+ fileName = "" + name + "的出勤率统计记录_"+year+"年"+month+"月.xls";
sheetName = "公司出勤率统计记录";
wb = composeDetail( fileName, sheetName, statisticUnitForMonth_list );
@@ -98,7 +98,11 @@ public class ActionExportUnitSubNestedStatistic extends BaseAction {
- fileName = "" + name + "的部门出勤率统计记录_"+year+"年"+month+"月.xls";
+ fileName = "" + name.split("@")[0] + "的部门出勤率统计记录_"+year+"年"+month+"月.xls";
+ fileName = "" + name + "的部门出勤率统计记录_"+year+"年"+month+"月.xls";
sheetName = "部门出勤率统计记录";