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)").