Commit f9fcba59 authored by Administrator's avatar Administrator

Merge branch 'dev_mysql_chase' into 'dev_mysql'

fix KPSR bug

See merge request root/atms!340
parents 239d866c 1986138d
......@@ -81,6 +81,7 @@ public class KPSR extends FunctionBase implements FreeRefFunction {
.andPeriodEqualTo(Integer.valueOf(queryPeriod))
.andTaxRateEqualTo(typeMapping.getTaxRate())
.andDepartmentEqualTo(typeMapping.getOuName())
.andBillingContentEqualTo(typeMapping.getContent())
.andInvoiceTypeEqualTo(InvoiceRecordEnum.InvoiceType.MAPPING.get(billType));
List<InvoiceRecord> billDetails1 = SpringContextUtil.invoiceRecordMapper.selectByExample(invoiceRecordExample);
if(CollectionUtils.isNotEmpty(billDetails1)){
......@@ -97,6 +98,7 @@ public class KPSR extends FunctionBase implements FreeRefFunction {
.andProjectIdEqualTo(formulaContext.getProjectId())
.andPeriodEqualTo(Integer.valueOf(queryPeriod))
.andTaxRateEqualTo(typeMapping.getTaxRate())
.andBillingContentEqualTo(typeMapping.getContent())
.andDepartmentEqualTo(typeMapping.getOuName())
.andInvoiceTypeEqualTo(InvoiceRecordEnum.InvoiceType.MAPPING.get(billType));
List<InvoiceRecord> billDetails2 = SpringContextUtil.invoiceRecordMapper.selectByExample(invoiceRecordExample);
......
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