ziwen 1 рік тому
батько
коміт
5366f59768
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      models/fms/invoice_payment_summary.go

+ 1 - 1
models/fms/invoice_payment_summary.go

@@ -165,7 +165,7 @@ func DeleteInvoicePaymentSummaryByInvoiceIdAndPaymentId(invoiceId, arriveId, reg
 
 // GetContractSummaryInvoicePaymentAmount 获取汇总金额合计信息
 func GetContractSummaryInvoicePaymentAmount(condition string, pars []interface{}) (amountTotal float64, err error) {
-	joinCond := `a.contract_register_id = b.contract_register_id `
+	joinCond := `a.register_id = b.contract_register_id `
 
 	query := global.DEFAULT_MYSQL.Table("invoice_payment_summary AS a").
 		Select("IFNULL(SUM(b.amount),0)").