Pārlūkot izejas kodu

后:供方信息查询按照资质查询,只查询审核通过的,按照分类查询

wd 4 gadi atpakaļ
vecāks
revīzija
93fc3f4fc9

+ 1 - 1
src/dashoo.cn/backend/api/business/oilsupplier/selectbusiness/selectservice.go

@@ -52,7 +52,7 @@ func (s *SelectService) GetMyPagingEntitiesWithOrderBytbl(supplierTableName, sup
 	// sql += `left join  OilCorporateInfo g on g.CommercialNo = a.CommercialNo `
 	// sql += `left join ` + OilInfoChangeName + ` c  on c.SupplierId = a.Id `
 	if NeedFileType != "" {
-		sql += `left join ` + OilSupplierFileName + ` e  on e.SupplierId = a.Id `
+		sql += `left join ` + OilSupplierFileName + ` e on e.SupplierId = a.Id and e.SupType in (1,3,5) and (e.SupplierTypeCode = b.SupplierTypeCode or e.SupplierTypeCode = '000') `
 	}
 
 	sql += `where ` + where