Merge remote-tracking branch 'origin/0803-add_column' into 0803-add_column

release
路明慧 2 years ago
commit 1f0a6f830a
  1. 2
      dxhy-core/src/main/resources/mapper/SgqsMapper.xml
  2. 2
      dxhy-extend/src/main/java/com/dxhy/extend/service/caution/ExtCautionExpirationServiceImpl.java

@ -38,7 +38,7 @@
qs_status = '0' and source_system='0' qs_status = '0' and source_system='0'
and t.gf_tax_no = #{gfsh} and t.gf_tax_no = #{gfsh}
<if test="companyCode != null and companyCode != '' and companyCode != 'null' and businessCode != '99' "> <if test="companyCode != null and companyCode != '' and companyCode != 'null' and businessCode != '99' ">
and comp_code = #{companyCode} and (t.comp_code = #{companyCode} or t.comp_code = '' or t.comp_code is null)
</if> </if>
<if test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType != '99' "> <if test="invoiceType != null and invoiceType != '' and invoiceType != 'null' and invoiceType != '99' ">
and invoice_type = #{invoiceType} and invoice_type = #{invoiceType}

@ -370,8 +370,10 @@ public class ExtCautionExpirationServiceImpl extends MpBaseServiceImpl<ExtTdxRec
BigDecimal sumTaxAmount = new BigDecimal(0); BigDecimal sumTaxAmount = new BigDecimal(0);
for (ExtTdxRecordInvoice record : sumList) { for (ExtTdxRecordInvoice record : sumList) {
sumInvoiceAmount = sumInvoiceAmount.add(record.getInvoiceAmount()); sumInvoiceAmount = sumInvoiceAmount.add(record.getInvoiceAmount());
if(record.getTaxAmount() != null) {
sumTaxAmount = sumTaxAmount.add(record.getTaxAmount()); sumTaxAmount = sumTaxAmount.add(record.getTaxAmount());
} }
}
result.put("sumInvoiceAmount", result.put("sumInvoiceAmount",
AmountFormatUtil.fmtMicrometer(MathUtil.round(sumInvoiceAmount.toPlainString()))); AmountFormatUtil.fmtMicrometer(MathUtil.round(sumInvoiceAmount.toPlainString())));
result.put("sumTaxAmount", AmountFormatUtil.fmtMicrometer(MathUtil.round(sumTaxAmount.toPlainString()))); result.put("sumTaxAmount", AmountFormatUtil.fmtMicrometer(MathUtil.round(sumTaxAmount.toPlainString())));

Loading…
Cancel
Save