ziwen 2 년 전
부모
커밋
bd97ab989c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      models/fms/contract_invoice.go

+ 1 - 0
models/fms/contract_invoice.go

@@ -508,6 +508,7 @@ func GetInvoiceListCurrencySum(condition string, pars []interface{}, groupRule s
 	query := global.DEFAULT_MYSQL.Table("contract_invoice AS a").
 		Select("a.currency_unit, a.invoice_type, SUM(a.amount) AS amount_total, SUM(a.origin_amount) AS origin_amount_total, b.company_name").
 		Joins("JOIN contract_register b ON a.contract_register_id = b.contract_register_id").
+		Where("a.is_deleted = 0").
 		Where(condition, pars...).
 		Group(groupRule)
 	err = query.Find(&results).Error