hsun 2 years ago
parent
commit
b64ea97c37
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controller/census/invoice_payment.go

+ 1 - 1
controller/census/invoice_payment.go

@@ -203,7 +203,7 @@ func (ct *InvoicePaymentController) List(c *gin.Context) {
 		amountTotalCond := `contract_register_id IN ?`
 		amountTotalPars := make([]interface{}, 0)
 		amountTotalPars = append(amountTotalPars, allRegisterIds)
-		amountTotalList, e := fms.GetContractInvoiceAmountTotal(cond, pars)
+		amountTotalList, e := fms.GetContractInvoiceAmountTotal(amountTotalCond, amountTotalPars)
 		if e != nil {
 			resp.FailMsg("获取失败", "获取开票到款金额合计失败, Err:"+e.Error(), c)
 			return