|
@@ -37,6 +37,7 @@
|
|
a.remark as remark,
|
|
a.remark as remark,
|
|
a.time as time,
|
|
a.time as time,
|
|
a.whether as whether,
|
|
a.whether as whether,
|
|
|
|
+ a.version as version,
|
|
CONCAT(e.name,'-',d.name,'-',c.name,'-',b.name) as house
|
|
CONCAT(e.name,'-',d.name,'-',c.name,'-',b.name) as house
|
|
from g_order a
|
|
from g_order a
|
|
left join g_house b on a.house_id = b.id
|
|
left join g_house b on a.house_id = b.id
|
|
@@ -98,6 +99,7 @@
|
|
a.time as exportTime,
|
|
a.time as exportTime,
|
|
CONCAT(e.name,'-',d.name,'-',c.name,'-',b.name) as house,
|
|
CONCAT(e.name,'-',d.name,'-',c.name,'-',b.name) as house,
|
|
a.whether as whether,
|
|
a.whether as whether,
|
|
|
|
+ a.version as version,
|
|
a.house_id as houseId
|
|
a.house_id as houseId
|
|
from g_order a
|
|
from g_order a
|
|
left join g_house b on a.house_id = b.id
|
|
left join g_house b on a.house_id = b.id
|
|
@@ -158,6 +160,7 @@
|
|
a.remark as remark,
|
|
a.remark as remark,
|
|
a.time as time,
|
|
a.time as time,
|
|
a.whether as whether,
|
|
a.whether as whether,
|
|
|
|
+ a.version as version,
|
|
CONCAT(e.name,'-',d.name,'-',c.name,'-',b.name) as house
|
|
CONCAT(e.name,'-',d.name,'-',c.name,'-',b.name) as house
|
|
from g_order a
|
|
from g_order a
|
|
left join g_house b on a.house_id = b.id
|
|
left join g_house b on a.house_id = b.id
|
|
@@ -195,6 +198,10 @@
|
|
left join g_building d on c.building_id = d.id
|
|
left join g_building d on c.building_id = d.id
|
|
where a.id = #{id} and a.del_flag = '0'
|
|
where a.id = #{id} and a.del_flag = '0'
|
|
</select>
|
|
</select>
|
|
|
|
+ <select id="getByIdAndVersion" resultType="java.lang.Long">
|
|
|
|
+ select count(*) from g_order
|
|
|
|
+ where id = #{id} and del_flag = '0' and version = #{version}
|
|
|
|
+ </select>
|
|
<select id="getCount" resultType="java.lang.Integer">
|
|
<select id="getCount" resultType="java.lang.Integer">
|
|
select count(DISTINCT o.house_id)
|
|
select count(DISTINCT o.house_id)
|
|
from g_order o
|
|
from g_order o
|
|
@@ -296,6 +303,7 @@
|
|
a.remark as remark,
|
|
a.remark as remark,
|
|
a.time as time,
|
|
a.time as time,
|
|
a.whether as whether,
|
|
a.whether as whether,
|
|
|
|
+ a.version as version,
|
|
CONCAT(e.name,'-',d.name,'-',c.name,'-',b.name) as house
|
|
CONCAT(e.name,'-',d.name,'-',c.name,'-',b.name) as house
|
|
from g_order a
|
|
from g_order a
|
|
left join g_house b on a.house_id = b.id
|
|
left join g_house b on a.house_id = b.id
|
|
@@ -322,6 +330,7 @@
|
|
a.time as time,
|
|
a.time as time,
|
|
a.update_time as updateTime,
|
|
a.update_time as updateTime,
|
|
a.whether as whether,
|
|
a.whether as whether,
|
|
|
|
+ a.version as version,
|
|
CONCAT(e.name,'-',d.name,'-',c.name,'-',b.name) as house
|
|
CONCAT(e.name,'-',d.name,'-',c.name,'-',b.name) as house
|
|
from g_order a
|
|
from g_order a
|
|
left join g_house b on a.house_id = b.id
|
|
left join g_house b on a.house_id = b.id
|
|
@@ -414,6 +423,7 @@
|
|
a.time as time,
|
|
a.time as time,
|
|
a.update_time as updateTime,
|
|
a.update_time as updateTime,
|
|
a.whether as whether,
|
|
a.whether as whether,
|
|
|
|
+ a.version as version,
|
|
CONCAT(e.name,'-',d.name,'-',c.name,'-',b.name) as house
|
|
CONCAT(e.name,'-',d.name,'-',c.name,'-',b.name) as house
|
|
from g_order a
|
|
from g_order a
|
|
left join g_house b on a.house_id = b.id
|
|
left join g_house b on a.house_id = b.id
|