diff --git a/air/src/main/resources/mapper/AppletsMapMapper.xml b/air/src/main/resources/mapper/AppletsMapMapper.xml index 1f45f56..6e376be 100644 --- a/air/src/main/resources/mapper/AppletsMapMapper.xml +++ b/air/src/main/resources/mapper/AppletsMapMapper.xml @@ -67,7 +67,13 @@ 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