|
|
|
@ -67,7 +67,13 @@
|
|
|
|
|
|
|
|
|
|
<select id="getLandListing" resultType="com.air.land.entity.LandListedLonLat"> |
|
|
|
|
SELECT |
|
|
|
|
if(date_format(b.auction_date,'%Y-%m-%d') < #{nowDate},'已出让','挂牌中') transactionStatus, |
|
|
|
|
( |
|
|
|
|
case |
|
|
|
|
when ll.deal = 1 then '已成交' |
|
|
|
|
when date_format(ll.auction_date,'%Y-%m-%d') >= #{nowDate} and ll.deal is null then '挂牌中' |
|
|
|
|
when date_format(ll.auction_date,'%Y-%m-%d') < #{nowDate} and ll.deal is null then '已成交' |
|
|
|
|
end |
|
|
|
|
) transactionStatus , |
|
|
|
|
a.* |
|
|
|
|
FROM |
|
|
|
|
land_listed_lon_lat a |
|
|
|
@ -81,7 +87,13 @@
|
|
|
|
|
|
|
|
|
|
<select id="getLandList" resultType="com.air.land.entity.LandListedLonLat"> |
|
|
|
|
SELECT |
|
|
|
|
if(date_format(b.auction_date,'%Y-%m-%d') < #{nowDate},'已出让','挂牌中') transactionStatus, |
|
|
|
|
( |
|
|
|
|
case |
|
|
|
|
when ll.deal = 1 then '已成交' |
|
|
|
|
when date_format(ll.auction_date,'%Y-%m-%d') >= #{nowDate} and ll.deal is null then '挂牌中' |
|
|
|
|
when date_format(ll.auction_date,'%Y-%m-%d') < #{nowDate} and ll.deal is null then '已成交' |
|
|
|
|
end |
|
|
|
|
) transactionStatus , |
|
|
|
|
a.* |
|
|
|
|
FROM |
|
|
|
|
land_listed_lon_lat a |
|
|
|
|