ziwen преди 1 година
родител
ревизия
d0177f4e4e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      models/fms/contract_income_history.go

+ 1 - 1
models/fms/contract_income_history.go

@@ -38,7 +38,7 @@ func GetIncomeHistory(condition string, pars []interface{}) (results []*IncomeSu
 
 // GetInvoicePaymentSummaryByRegisterIdAndInvoiceId 根据合同登记ID和开票ID获取汇总数据
 func GetIncomeHistoryList() (results []*ContractIncomeHistory, err error) {
-	sql := `SELECT * FROM contract_income_history `
+	sql := `SELECT * FROM contract_income_history WHERE seller_id=0 `
 	err = global.DEFAULT_MYSQL.Raw(sql).Find(&results).Error
 	return
 }