Commit c6777ae0 authored by zhkwei's avatar zhkwei

1、EBS callback;2、数据日志记录页面分页;3、VAT数据预览各列宽度;4、VAT日记账数据预览导出bug;5、VAT下载的模板

parent 14c21be7
...@@ -219,6 +219,14 @@ public class JournalEntryExportDto { ...@@ -219,6 +219,14 @@ public class JournalEntryExportDto {
private Date updateTime; private Date updateTime;
public Integer getTmsPeriod() {
return tmsPeriod;
}
public void setTmsPeriod(Integer tmsPeriod) {
this.tmsPeriod = tmsPeriod;
}
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method returns the value of the database column journal_entry.id * This method returns the value of the database column journal_entry.id
......
...@@ -2199,7 +2199,6 @@ public class DataImportService extends BaseService { ...@@ -2199,7 +2199,6 @@ public class DataImportService extends BaseService {
DataImportLogExample example = new DataImportLogExample(); DataImportLogExample example = new DataImportLogExample();
DataImportLogExample.Criteria criteria = example.createCriteria(); DataImportLogExample.Criteria criteria = example.createCriteria();
Page page = PageHelper.startPage(param.getPageInfo().getPageIndex(), param.getPageInfo().getPageSize());
List<String> orgIds = organizationService.getMyOrgList().stream().map(OrgSelectDto::getId).collect(Collectors.toList()); List<String> orgIds = organizationService.getMyOrgList().stream().map(OrgSelectDto::getId).collect(Collectors.toList());
//财务数据抽取展示抽取记录除了admin能查看所有操作人员的操作,其余人员只能看到本身的 //财务数据抽取展示抽取记录除了admin能查看所有操作人员的操作,其余人员只能看到本身的
String uid = authUserHelper.getCurrentUserId(); String uid = authUserHelper.getCurrentUserId();
...@@ -2210,6 +2209,7 @@ public class DataImportService extends BaseService { ...@@ -2210,6 +2209,7 @@ public class DataImportService extends BaseService {
criteria.andOrganizationIdIn(orgIds).andCreateTimeBetween(strDate, endDate).andOperatorEqualTo(authUserHelper.getCurrentAuditor().get()); criteria.andOrganizationIdIn(orgIds).andCreateTimeBetween(strDate, endDate).andOperatorEqualTo(authUserHelper.getCurrentAuditor().get());
} }
example.setOrderByClause("update_time desc"); example.setOrderByClause("update_time desc");
Page page = PageHelper.startPage(param.getPageInfo().getPageIndex(), param.getPageInfo().getPageSize());
PageInfo<DataImportLogDto> pageInfo = new PageInfo<>(dataImportLogMapper.selectByExample(example).stream() PageInfo<DataImportLogDto> pageInfo = new PageInfo<>(dataImportLogMapper.selectByExample(example).stream()
.map(o -> beanUtil.copyProperties(o, new DataImportLogDto())).collect(Collectors.toList())); .map(o -> beanUtil.copyProperties(o, new DataImportLogDto())).collect(Collectors.toList()));
pageInfo.setTotal(page.getTotal()); pageInfo.setTotal(page.getTotal());
......
...@@ -810,6 +810,31 @@ public class EbsApiServiceImpl implements EbsApiService { ...@@ -810,6 +810,31 @@ public class EbsApiServiceImpl implements EbsApiService {
@Override @Override
public void changeCallBackStatus(EbsCallBackDto ebsCallBackDto) { public void changeCallBackStatus(EbsCallBackDto ebsCallBackDto) {
//当调用EBS接口失败之后,由于EBS调用callback和EBS返回response时间上几乎没有差异,
// 但callback的执行代码依赖于response返回后的插入代码,那就存在程序会先执行response还是先执行callback的问题,
// 在此做出判断先查一下数据库并给出查询次数限制防止一直查询数据库 create by zhikai.z.wei 20190505 17:08 start
//循环次数
int loopTimes = 0;
while(loopTimes < 3){
DataImportLog byPrimaryKey = dataImportLogMapper.selectByPrimaryKey(ebsCallBackDto.getTaskId());
if (byPrimaryKey == null){
try {
logger.info(String.format("EBS Callback 未查询到抽取记录,沉睡2S taskId = [%s]",ebsCallBackDto.getTaskId()));
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
logger.error(String.format("EBS CallBack 线程沉睡异常 taskId = [%s]",ebsCallBackDto.getTaskId()));
}
} else {
break;
}
if(loopTimes==2){
logger.error(String.format("循环三次仍未查询到抽取记录 taskId = [%s]",ebsCallBackDto.getTaskId()));
break;
}
loopTimes++;
}
// 在此做出判断先查一下数据库并给出查询次数限制防止一直查询数据库 create by zhikai.z.wei 20190505 17:08 end
DataImportLog dataImportLog = new DataImportLog(); DataImportLog dataImportLog = new DataImportLog();
dataImportLog.setId(ebsCallBackDto.getTaskId()); dataImportLog.setId(ebsCallBackDto.getTaskId());
dataImportLog.setImportResult("S".equals(ebsCallBackDto.getTaskStatus())?true:false); dataImportLog.setImportResult("S".equals(ebsCallBackDto.getTaskStatus())?true:false);
......
...@@ -154,7 +154,6 @@ ...@@ -154,7 +154,6 @@
width: 518, width: 518,
visible: true visible: true
}, },
height: '99%',
headerFilter: { headerFilter: {
visible: false, visible: false,
texts: { texts: {
......
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
<div id="importLogGridContainer" dx-data-grid="importLogGridOptions" <div id="importLogGridContainer" dx-data-grid="importLogGridOptions"
style="margin-top: 30px;"> style="margin-top: 30px;">
</div> </div>
<!--<div class="page-footer"> <div class="page-footer">
<ack-pagination page-options="pagingOptions" <ack-pagination page-options="pagingOptions"
refresh-table="refreshConfigGrid()"></ack-pagination> refresh-table="refreshConfigGrid()"></ack-pagination>
</div>--> </div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -175,6 +175,7 @@ ...@@ -175,6 +175,7 @@
} }
.dt-init-wrapper { .dt-init-wrapper {
margin: 60px 0;
max-width: 99%; max-width: 99%;
height: calc(100% - 200px); height: calc(100% - 200px);
position: relative; position: relative;
......
...@@ -280,27 +280,29 @@ ...@@ -280,27 +280,29 @@
enableSorting: false, enableSorting: false,
enableColumnMenus: false, enableColumnMenus: false,
columnDefs: [ columnDefs: [
{ name: $translate.instant('InvoiceNoCol'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.seqNo}}<span></div>' }, { name: $translate.instant('InvoiceNoCol'),width: 100, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.seqNo}}<span></div>' },
// { name: $translate.instant('InvoiceQJ'), width: '8%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.periodID}}<span></div>' }, // { name: $translate.instant('InvoiceQJ'), width: '8%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.periodID}}<span></div>' },
{ name: $translate.instant('InvoiceCode'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceCode}}<span></div>' }, { name: $translate.instant('InvoiceCode'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceCode}}<span></div>' },
{ name: $translate.instant('InvoiceNum'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceNum}}</span></div>' }, { name: $translate.instant('InvoiceNum'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceNum}}</span></div>' },
{ name: $translate.instant('BillingDate'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.billingDate | date:"yyyy-MM-dd"}}</span></div>' }, { name: $translate.instant('BillingDate'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.billingDate | date:"yyyy-MM-dd"}}</span></div>' },
{ name: $translate.instant('SalesTaxNum'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.salesTaxNum}}</span></div>' }, { name: $translate.instant('SalesTaxNum'), width: 300, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.salesTaxNum}}</span></div>' },
{ name: $translate.instant('SalesTaxName'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.salespersonName}}</span></div>' }, { name: $translate.instant('SalesTaxName'), width: 300, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.salespersonName}}</span></div>' },
{ {
name: $translate.instant('Amount'), name: $translate.instant('Amount'),
width: 200,
headerCellClass:'rightHeader', headerCellClass:'rightHeader',
cellTemplate: '<div class="ui-grid-cell-contents" style="text-align: right"><span>{{row.entity.amount | number:2}}</span></div>' cellTemplate: '<div class="ui-grid-cell-contents" style="text-align: right"><span>{{row.entity.amount | number:2}}</span></div>'
}, },
{ {
name: $translate.instant('TaxAmount'), name: $translate.instant('TaxAmount'),
width: 200,
headerCellClass:'rightHeader', headerCellClass:'rightHeader',
cellTemplate: '<div class="ui-grid-cell-contents" style="text-align: right"><span>{{row.entity.taxAmount | number:2}}</span></div>' cellTemplate: '<div class="ui-grid-cell-contents" style="text-align: right"><span>{{row.entity.taxAmount | number:2}}</span></div>'
}, },
{ name: $translate.instant('VerificationMethod'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.verificationMethod}}</span></div>' }, { name: $translate.instant('VerificationMethod'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.verificationMethod}}</span></div>' },
{ name: $translate.instant('ConfirmDate'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.certifiedDate | date:"yyyy-MM-dd"}}</span></div>' }, { name: $translate.instant('ConfirmDate'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.certifiedDate | date:"yyyy-MM-dd"}}</span></div>' },
{ name: $translate.instant('InvoiceType'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceType}}</span></div>' }, { name: $translate.instant('InvoiceType'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceType}}</span></div>' },
{ name: $translate.instant('InvoiceStatus'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceStatus}}</span></div>' } { name: $translate.instant('InvoiceStatus'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceStatus}}</span></div>' }
] ]
}; };
......
...@@ -294,12 +294,12 @@ ...@@ -294,12 +294,12 @@
enableSorting: false, enableSorting: false,
enableColumnMenus: false, enableColumnMenus: false,
columnDefs: [ columnDefs: [
{ name: $translate.instant('VatInvoiceRecordNoCol'),width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.seqNo}}<span></div>' }, { name: $translate.instant('VatInvoiceRecordNoCol'),width: 100, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.seqNo}}<span></div>' },
// { name: $translate.instant('InvoiceQJ'), width: '8%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.periodID}}<span></div>' }, // { name: $translate.instant('InvoiceQJ'), width: '8%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.periodID}}<span></div>' },
{ name: $translate.instant('BillingBody'),width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.billingBody }}<span></div>' }, { name: $translate.instant('BillingBody'),width: 300, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.billingBody }}<span></div>' },
{ name: $translate.instant('CustomerCompanyName'),width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.fpdm}}">{{row.entity.customerCompanyName}}</span></div>' }, { name: $translate.instant('CustomerCompanyName'),width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.fpdm}}">{{row.entity.customerCompanyName}}</span></div>' },
{ name: $translate.instant('InvoiceType'),width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.fphm}}">{{row.entity.invoiceType}}</span></div>' }, { name: $translate.instant('InvoiceType'),width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.fphm}}">{{row.entity.invoiceType}}</span></div>' },
{ name: $translate.instant('BillingContent'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.xfsh}}">{{row.entity.billingContent}}</span></div>' }, { name: $translate.instant('BillingContent'), width: 300, cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.xfsh}}">{{row.entity.billingContent}}</span></div>' },
{ {
name: $translate.instant('InvoiceAmount'), name: $translate.instant('InvoiceAmount'),
headerCellClass:'rightHeader', headerCellClass:'rightHeader',
...@@ -312,13 +312,13 @@ ...@@ -312,13 +312,13 @@
{ {
name: $translate.instant('ContractAmount'), name: $translate.instant('ContractAmount'),
headerCellClass:'rightHeader', headerCellClass:'rightHeader',
width: 200, width: 160,
cellTemplate: '<div class="ui-grid-cell-contents" style="text-align: right"><span>{{row.entity.contractAmount | number:2}}</span></div>' cellTemplate: '<div class="ui-grid-cell-contents" style="text-align: right"><span>{{row.entity.contractAmount | number:2}}</span></div>'
}, },
{ name: $translate.instant('Department'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.department}}</span></div>' }, { name: $translate.instant('Department'), width: 340, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.department}}</span></div>' },
{ name: $translate.instant('ApplicationDate'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.applicationDate| date:"yyyy-MM-dd"}}</span></div>' }, { name: $translate.instant('ApplicationDate'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.applicationDate| date:"yyyy-MM-dd"}}</span></div>' },
{ name: $translate.instant('BillingDate'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.billingDate| date:"yyyy-MM-dd"}}</span></div>' }, { name: $translate.instant('BillingDate'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.billingDate| date:"yyyy-MM-dd"}}</span></div>' },
{ name: $translate.instant('BillingMonth'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.billingMonth| date:"MM"}}</span></div>' }, { name: $translate.instant('BillingMonth'), width: 100, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.billingMonth| date:"MM"}}</span></div>' },
{ name: $translate.instant('invoiceCode'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceCode}}</span></div>' }, { name: $translate.instant('invoiceCode'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceCode}}</span></div>' },
{ name: $translate.instant('InvoiceNum'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceNum}}</span></div>' }, { name: $translate.instant('InvoiceNum'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceNum}}</span></div>' },
{ name: $translate.instant('InvoicePaperNum'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoicesAmount}}</span></div>' }, { name: $translate.instant('InvoicePaperNum'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoicesAmount}}</span></div>' },
......
...@@ -294,27 +294,36 @@ ...@@ -294,27 +294,36 @@
enableSorting: false, enableSorting: false,
enableColumnMenus: false, enableColumnMenus: false,
columnDefs: [ columnDefs: [
{ name: $translate.instant('SubjectNum'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.subjectNum}}<span></div>' }, { name: $translate.instant('SubjectNum'), width: 150,
cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.subjectNum}}<span></div>' },
// { name: $translate.instant('InvoiceQJ'), width: '8%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.periodID}}<span></div>' }, // { name: $translate.instant('InvoiceQJ'), width: '8%', cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.periodID}}<span></div>' },
{ name: $translate.instant('SubjectName'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.subjectName}}<span></div>' }, {
{ name: $translate.instant('RedLetterInvoiceInfoTableNum'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.redLetterInvoiceInfoTableNum}}</span></div>' }, name: $translate.instant('SubjectName'),
{ name: $translate.instant('FillInDate'), cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.fphm}}">{{row.entity.fillInDate | date:"yyyy-MM-dd"}}</span></div>' }, width: 300,
{ name: $translate.instant('RedLetterInfoSalesTaxNum'), cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.xfsh}}">{{row.entity.salesTaxNumber}}</span></div>' }, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.subjectName}}<span></div>'
{ name: $translate.instant('SalespersonName'), cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.fplx}}">{{row.entity.salespersonName}}</span></div>' }, },
{ name: $translate.instant('RedLetterInvoiceInfoTableNum'), width: 300,
cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.redLetterInvoiceInfoTableNum}}</span></div>' },
{ name: $translate.instant('FillInDate'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.fphm}}">{{row.entity.fillInDate | date:"yyyy-MM-dd"}}</span></div>' },
{ name: $translate.instant('RedLetterInfoSalesTaxNum'), width: 300,
cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.xfsh}}">{{row.entity.salesTaxNumber}}</span></div>' },
{ name: $translate.instant('SalespersonName'), width: 300,
cellTemplate: '<div class="ui-grid-cell-contents"><span title="{{row.entity.fplx}}">{{row.entity.salespersonName}}</span></div>' },
{ {
name: $translate.instant('RedLetterInfoTotalAmount'), name: $translate.instant('RedLetterInfoTotalAmount'),
width: 200,
headerCellClass:'rightHeader', headerCellClass:'rightHeader',
cellTemplate: '<div class="ui-grid-cell-contents right"><span style="float:right">{{row.entity.totalAmount | number:2}}</span></div>' cellTemplate: '<div class="ui-grid-cell-contents right"><span style="float:right">{{row.entity.totalAmount | number:2}}</span></div>'
}, },
{ {
name: $translate.instant('RedLetterInfoTotalTaxAmount'), name: $translate.instant('RedLetterInfoTotalTaxAmount'),width: 200,
headerCellClass:'rightHeader', headerCellClass:'rightHeader',
cellTemplate: '<div class="ui-grid-cell-contents right"><span style="float:right">{{row.entity.totalTaxAmount | number:2}}</span></div>' cellTemplate: '<div class="ui-grid-cell-contents right"><span style="float:right">{{row.entity.totalTaxAmount | number:2}}</span></div>'
}, },
{ name: $translate.instant('ApplicationSelectionDescription'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.applicationDescription}}</span></div>' }, { name: $translate.instant('ApplicationSelectionDescription'),width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.applicationDescription}}</span></div>' },
{ name: $translate.instant('ApplicantsManager'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.applicantManager }}</span></div>' }, { name: $translate.instant('ApplicantsManager'), width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.applicantManager }}</span></div>' },
{ name: $translate.instant('InvoiceCode'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceCode}}</span></div>' }, { name: $translate.instant('InvoiceCode'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceCode}}</span></div>' },
{ name: $translate.instant('RedLetterInfoInvoiceNum'), cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceNumber}}</span></div>' } { name: $translate.instant('RedLetterInfoInvoiceNum'),width: 200, cellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.invoiceNumber}}</span></div>' }
] ]
}; };
......
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