Browse Source

1.1.0 地图地块状态修改

feature/v1.1.0
XB-20210411SXIT\Administrator 4 years ago
parent
commit
3c4ba2b058
  1. 16
      air/src/main/resources/mapper/AppletsMapMapper.xml

16
air/src/main/resources/mapper/AppletsMapMapper.xml

@ -67,7 +67,13 @@
<select id="getLandListing" resultType="com.air.land.entity.LandListedLonLat">
SELECT
if(date_format(b.auction_date,'%Y-%m-%d') &lt; #{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') &lt; #{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') &lt; #{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') &lt; #{nowDate} and ll.deal is null then '已成交'
end
) transactionStatus ,
a.*
FROM
land_listed_lon_lat a

Loading…
Cancel
Save