|
|
@@ -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
|