|
@@ -69,8 +69,9 @@ func (s *OilSupplierService) GetMyPagingEntitiesWithOrderBytbl2(supplierTableNam
|
|
|
var resultsSlice []map[string][]byte
|
|
var resultsSlice []map[string][]byte
|
|
|
|
|
|
|
|
//获取总记录数
|
|
//获取总记录数
|
|
|
- sqlCount := `select count(*) from ` + supplierTableName + ` a `
|
|
|
|
|
|
|
+ sqlCount := `select count(DISTINCT a.ID) from ` + supplierTableName + ` a `
|
|
|
sqlCount += ` left join ` + supplierCertTableName + " b on b.SupplierId = a.Id"
|
|
sqlCount += ` left join ` + supplierCertTableName + " b on b.SupplierId = a.Id"
|
|
|
|
|
+ sqlCount += ` left join ` + "OilSupplierCert2File c on c.SupplierId = a.Id and c.SupplierCertId = b.Id"
|
|
|
sqlCount += ` where ` + where
|
|
sqlCount += ` where ` + where
|
|
|
|
|
|
|
|
var sql string
|
|
var sql string
|