2
3
Prechádzať zdrojové kódy

增项-下拉单位

lining 6 rokov pred
rodič
commit
e29a4cdb0c

+ 1 - 1
src/dashoo.cn/backend/api/controllers/oilsupplier/suppliercertappend.go

@@ -148,7 +148,7 @@ func (this *OilSupplierCertAppendController) GetSupplier() {
 
 	svc := suppliercertappend.GetOilSupplierCertAppendService(utils.DBE)
 	sqlStr := "SELECT b.Id AS SupplierId, a.Id AS SupplierCertId, b.SupplierName AS SupplierName FROM OilSupplierCert AS a LEFT JOIN OilSupplier AS b ON a.SupplierId = b.Id "
-	where := "WHERE b.Id is NOT NULL AND a.SupplierTypeCode = " + Id
+	where := "WHERE b.Id is NOT NULL AND a.SupplierTypeCode = " + Id + " and a.InFlag='1'"
 
 	sqlStr = sqlStr + where