Commit 8bb4c032 authored by hongguangwu's avatar hongguangwu

MVP1.7.10-工资条

parent 8cf37236
......@@ -425,8 +425,11 @@ public class TSalaryAccountServiceImpl extends ServiceImpl<TSalaryAccountMapper,
int index = 0;
WriteSheet writeSheet = null;
if (count > CommonConstants.ZERO_INT) {
searchVo.setLimitStart(0);
searchVo.setLimitEnd(CommonConstants.EXCEL_EXPORT_LIMIT);
//int limit = 1000;
int limit = 5;
for (int i = 0; i < count; i += limit) {
searchVo.setLimitStart(i);
searchVo.setLimitEnd(limit);
List<TSalaryAccountExportSpecialVo> baseList = baseMapper.getEmpAccountExport(searchVo);
List<List<String>> listContent = new ArrayList<>();
List<String> contentList = new ArrayList<>();
......@@ -437,7 +440,7 @@ public class TSalaryAccountServiceImpl extends ServiceImpl<TSalaryAccountMapper,
Map<String, Map<String, String>> itemMap = new HashMap<>();
Map<String, String> tempMap = new HashMap<>();
if (titleAllList != null && !titleAllList.isEmpty()) {
List<TSalaryAccountExportSpecialItemVo> itemList = baseMapper.getEmpAccountItemExport(searchVo.getSettlementMonth() ,contentList);
List<TSalaryAccountExportSpecialItemVo> itemList = baseMapper.getEmpAccountItemExport(searchVo.getSettlementMonth(), contentList);
for (TSalaryAccountExportSpecialItemVo itemVo : itemList) {
tempMap = itemMap.get(itemVo.getAccountId());
if (tempMap == null) {
......@@ -482,8 +485,9 @@ public class TSalaryAccountServiceImpl extends ServiceImpl<TSalaryAccountMapper,
listContent.add(contentList);
}
}
writeSheet = EasyExcelFactory.writerSheet("工资条" + index).build();
writeSheet = EasyExcelFactory.writerSheet("工资条" + index++).build();
excelWriter.write(listContent, writeSheet);
}
/*Map<String,TSalaryAccountItemExportVo> itemExportVoMap = new HashMap<>();
List<String> idList = null;
List<String> idStandardList = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment