Commit 209f4d4d authored by zhkwei's avatar zhkwei

Merge remote-tracking branch 'origin/dev_mysql' into dev_mysql

parents 4023e972 b4f46aa9
...@@ -1070,7 +1070,7 @@ public class DataImportService extends BaseService { ...@@ -1070,7 +1070,7 @@ public class DataImportService extends BaseService {
addDataImportLog(dataImportLogs); addDataImportLog(dataImportLogs);
int isSuccess = (int) dataImportLogs.stream().filter(di -> Boolean.TRUE.equals(di.getImportResult())).count(); int isSuccess = (int) dataImportLogs.stream().filter(di -> Boolean.TRUE.equals(di.getImportResult())).count();
if (isSuccess < 1) { if (isSuccess < 1) {
return OperationResultDto.error(ErrorMessage.NoData); return OperationResultDto.error(ErrorMessage.ImportNotMatch);
} }
return OperationResultDto.success(); return OperationResultDto.success();
} catch (ServiceException e) { } catch (ServiceException e) {
...@@ -1740,7 +1740,6 @@ public class DataImportService extends BaseService { ...@@ -1740,7 +1740,6 @@ public class DataImportService extends BaseService {
cpr.setCurrency(getCellStringValue(row.getCell(12))); cpr.setCurrency(getCellStringValue(row.getCell(12)));
String billNum = getCellStringValue(row.getCell(13)); String billNum = getCellStringValue(row.getCell(13));
cpr.setBillNum(billNum); cpr.setBillNum(billNum);
cpr.setCompanyCode(StringUtils.isNotEmpty(billNum) ? billNum.substring(0, 6) : "");
cpr.setPaid(getCellBolleanValue(row.getCell(14))); cpr.setPaid(getCellBolleanValue(row.getCell(14)));
cpr.setAmortization(getCellBolleanValue(row.getCell(15))); cpr.setAmortization(getCellBolleanValue(row.getCell(15)));
cpr.setPrepayments(getCellBolleanValue(row.getCell(16))); cpr.setPrepayments(getCellBolleanValue(row.getCell(16)));
......
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