Commit 0ce7c235 authored by chase's avatar chase

fix bug

parent 6bd7528b
package pwc.taxtech.atms.service.impl;
import java.util.Date;
import com.alibaba.fastjson.JSON;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
......@@ -37,7 +35,6 @@ import pwc.taxtech.atms.dto.OperationResultDto;
import pwc.taxtech.atms.dto.dataimport.DataImportAllParam;
import pwc.taxtech.atms.dto.dataimport.DataImportParam;
import pwc.taxtech.atms.dto.dataimport.DataProcessParam;
import pwc.taxtech.atms.dto.ebsdto.EbsCallRateResp;
import pwc.taxtech.atms.dto.ebsdto.EbsCallResp;
import pwc.taxtech.atms.dto.vatdto.TrialBalanceDto;
import pwc.taxtech.atms.dto.vatdto.TrialBalanceParam;
......@@ -324,7 +321,7 @@ public class DataImportService extends BaseService {
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyyHH:mm:ss");
Date dataDate = sdf.parse(dataDateStr);
for (int j = 11; j < sheet.getLastRowNum(); j++) {
for (int j = 11; j <= sheet.getLastRowNum(); j++) {
Long plId = idService.nextId();
ProfitLossStatement pl = new ProfitLossStatement();
pl.setId(plId);
......@@ -498,7 +495,7 @@ public class DataImportService extends BaseService {
String dataDateStr = getCellStringValue(sheet.getRow(0).getCell(4)).substring(3).replace(" ", "");
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyyHH:mm:ss");
Date dataDate = sdf.parse(dataDateStr);
for (int j = 11; j < sheet.getLastRowNum(); j++) {
for (int j = 11; j <= sheet.getLastRowNum(); j++) {
Long plId = idService.nextId();
BalanceSheet bl = new BalanceSheet();
bl.setId(plId);
......@@ -646,7 +643,7 @@ public class DataImportService extends BaseService {
continue;
}
for (int j = 6; j < sheet.getLastRowNum(); j++) {
for (int j = 6; j <= sheet.getLastRowNum(); j++) {
Long id = idService.nextId();
CashFlow cf = new CashFlow();
cf.setId(id);
......@@ -1326,7 +1323,7 @@ public class DataImportService extends BaseService {
continue;
}
String unit = getCellStringValue(sheet.getRow(1).getCell(11)).replace(" ", "").substring(3);
for (int j = 3; j < sheet.getLastRowNum(); j++) {
for (int j = 3; j <= sheet.getLastRowNum(); j++) {
Long plId = idService.nextId();
CertifiedInvoicesList cil = new CertifiedInvoicesList();
cil.setId(plId);
......
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