17,377
社区成员
发帖
与我相关
我的任务
分享
select CanSell,Signed,Records,AveragePrice,housetype,addtime,
from AC_SellExhilarant
where (floor(sysdate - addtime) = 1 or floor(sysdate - addtime) = 0)
and DISTRICT = :DISTRICT
order by case when Housetype = '住宅类' then 0
when Housetype = '商业类' then 1
when Housetype = '办公类' then 2
end rn, AddTime DESC;
select CanSell,Signed,Records,AveragePrice,housetype,addtime,
case when Housetype = '住宅类' then 0
when Housetype = '商业类' then 1
when Housetype = '办公类' then 2
end rn
from AC_SellExhilarant
where (floor(sysdate - addtime) = 1 or floor(sysdate - addtime) = 0)
and DISTRICT = :DISTRICT
order by rn, AddTime DESC;