|
@@ -884,10 +884,10 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
|
884
|
884
|
}
|
885
|
885
|
switch (orderBy) {
|
886
|
886
|
case "price-asc":
|
887
|
|
- orderBy = "tbpt.start_price ASC";
|
|
887
|
+ orderBy = "IFNULL(tbpt.price_type,\"z\") , ifnull(CONVERT(tbpt.start_price, UNSIGNED INTEGER), 9999999999999)";
|
888
|
888
|
break;
|
889
|
889
|
case "price-desc":
|
890
|
|
- orderBy = "tbpt.end_price DESC";
|
|
890
|
+ orderBy = "tbpt.price_type desc, CONVERT(tbpt.end_price, UNSIGNED INTEGER) DESC";
|
891
|
891
|
break;
|
892
|
892
|
case "openingDate-asc":
|
893
|
893
|
orderBy = "tb.opening_date ASC";
|