|
|
@@ -297,11 +297,7 @@ func (s *OilContractSumScoreService) GetPagingComputeEntitiesWithOrderBytbl3(pag
|
|
|
sql += ` where 1=1 and c.InFlag != '3' and c.status = '8' ` + supplierWhere
|
|
|
sql += ` group by s.id, c.id, contract.SupplierId,contract.SupplierName `
|
|
|
sql += ` having ` + having
|
|
|
- if asc {
|
|
|
- sql += ` order by ` + orderby + ` ASC `
|
|
|
- } else {
|
|
|
- sql += ` order by ` + orderby + ` DESC `
|
|
|
- }
|
|
|
+ sql += ` order by count(review.id) DESC `
|
|
|
if pageIndex != 0 && itemsPerPage != 0 {
|
|
|
sql += ` limit ` + utils.ToStr((pageIndex-1)*itemsPerPage) + "," + utils.ToStr(itemsPerPage)
|
|
|
}
|