Commit 8523dbf4 authored by huyuchen's avatar huyuchen

huych-导出优化

parent 05d1a942
......@@ -305,7 +305,7 @@ public class TSalaryAccountServiceImpl extends ServiceImpl<TSalaryAccountMapper,
// 分批查询和写入
if (count > CommonConstants.ZERO_INT) {
int batchSize = CommonConstants.EXCEL_EXPORT_LIMIT_1;
int batchSize = 100000;
int totalPages = (int) Math.ceil((double) count / batchSize);
List<SalaryAccountExportVo> batchList;
for (int page = 1; page <= totalPages; page++) {
......
......@@ -1790,7 +1790,7 @@
a.BANK_SUB_NAME,
case a.FORM_TYPE when '0' then '薪资' when '1' then '绩效' when '3' then '劳务费' when '4' then '稿酬' else '其他' end as FORM_TYPE,
a.SALARY_MONTH,
if(a.RELAY_SALARY_UNIT is not null and a.RELAY_SALARY_UNIT != 0,a.RELAY_SALARY_UNIT,ifnull(a.RELAY_SALARY,0)) RELAY_SALARY,
if(ifnull(a.RELAY_SALARY_UNIT,-1) != -1 and a.RELAY_SALARY_UNIT != 0,a.RELAY_SALARY_UNIT,ifnull(a.RELAY_SALARY,0)) RELAY_SALARY,
a.ACTUAL_SALARY,a.SALARY_TAX
FROM
<if test="searchVo.salaryMonthStart == null or searchVo.salaryMonthStart.trim() >= '202201'">
......
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