ziwen 2 năm trước cách đây
mục cha
commit
3b9d52d9e0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      controller/census/invoice_payment.go

+ 1 - 1
controller/census/invoice_payment.go

@@ -842,7 +842,7 @@ func (ct *InvoicePaymentController) List(c *gin.Context) {
 
 			amountCond := `a.id IN ? AND (a.invoice_id <> 0 OR (a.payment_id <> 0 AND a.invoice_id =0))`
 			amountPars := make([]interface{}, 0)
-			amountPars = append(amountTotalPars, summaryIds)
+			amountPars = append(amountPars, summaryIds)
 			amountSum, e := fms.GetContractSummaryInvoicePaymentAmount(amountCond, amountPars)
 			if e != nil {
 				totalErr = fmt.Errorf("获取汇总金额合计失败, Err: %s", e.Error())