|
@@ -56,7 +56,7 @@
|
|
left join yq_g_unit c on ( b.unit_id = c.id and c.del_flag = '0')
|
|
left join yq_g_unit c on ( b.unit_id = c.id and c.del_flag = '0')
|
|
left join yq_g_building d on ( c.building_id = d.id and d.del_flag = '0')
|
|
left join yq_g_building d on ( c.building_id = d.id and d.del_flag = '0')
|
|
left join yq_g_area e on ( d.area_id = e.id and e.del_flag = '0')
|
|
left join yq_g_area e on ( d.area_id = e.id and e.del_flag = '0')
|
|
- left join sys_dict_data f on ( e.district = f.dict_value and f.dict_type='district')
|
|
|
|
|
|
+ left join yq_sys_dict_data f on ( e.district = f.dict_value and f.dict_type='district')
|
|
left join yq_g_user u on a.user_id = u.id
|
|
left join yq_g_user u on a.user_id = u.id
|
|
where a.del_flag = '0'
|
|
where a.del_flag = '0'
|
|
and a.service_type not in ('004','005','006')
|
|
and a.service_type not in ('004','005','006')
|
|
@@ -99,7 +99,7 @@
|
|
</if>
|
|
</if>
|
|
order by time desc
|
|
order by time desc
|
|
</select>
|
|
</select>
|
|
- <select id="getListExport" resultType="com.ruoyi.yiqi.entity.YqGOrder">
|
|
|
|
|
|
+ <select id="getListExport" resultType="com.ruoyi.yiqi.entity.GOrderVo">
|
|
select a.id as id,
|
|
select a.id as id,
|
|
a.service_type as serviceType,
|
|
a.service_type as serviceType,
|
|
u.name as userName,
|
|
u.name as userName,
|
|
@@ -177,12 +177,12 @@
|
|
a.whether as whether,
|
|
a.whether as whether,
|
|
a.version as version,
|
|
a.version as version,
|
|
CONCAT(f.dict_label,'-',e.name,'-',d.name,'-',c.name,'-',b.name) as house
|
|
CONCAT(f.dict_label,'-',e.name,'-',d.name,'-',c.name,'-',b.name) as house
|
|
- from yq_g_order a
|
|
|
|
|
|
+ from yq_yq_g_order a
|
|
left join yq_g_house b on ( a.house_id = b.id and b.del_flag = '0')
|
|
left join yq_g_house b on ( a.house_id = b.id and b.del_flag = '0')
|
|
left join yq_g_unit c on ( b.unit_id = c.id and c.del_flag = '0')
|
|
left join yq_g_unit c on ( b.unit_id = c.id and c.del_flag = '0')
|
|
left join yq_g_building d on ( c.building_id = d.id and d.del_flag = '0')
|
|
left join yq_g_building d on ( c.building_id = d.id and d.del_flag = '0')
|
|
left join yq_g_area e on ( d.area_id = e.id and e.del_flag = '0')
|
|
left join yq_g_area e on ( d.area_id = e.id and e.del_flag = '0')
|
|
- left join sys_dict_data f on ( e.district = f.dict_value and f.dict_type='district')
|
|
|
|
|
|
+ left join yq_sys_dict_data f on ( e.district = f.dict_value and f.dict_type='district')
|
|
left join yq_g_user u on a.user_id = u.id
|
|
left join yq_g_user u on a.user_id = u.id
|
|
where a.del_flag = '0' and a.order_status = '001'
|
|
where a.del_flag = '0' and a.order_status = '001'
|
|
and a.service_type not in ('004','005','006')
|
|
and a.service_type not in ('004','005','006')
|
|
@@ -232,7 +232,7 @@
|
|
<select id="getExaminePipeType" resultType="com.ruoyi.yiqi.entity.YqGCensusVo">
|
|
<select id="getExaminePipeType" resultType="com.ruoyi.yiqi.entity.YqGCensusVo">
|
|
select count(DISTINCT o.id) as value,
|
|
select count(DISTINCT o.id) as value,
|
|
o.pipe_type as name
|
|
o.pipe_type as name
|
|
- from yq_g_order o
|
|
|
|
|
|
+ from yq_yq_g_order o
|
|
left join yq_g_house a on ( o.house_id = a.id and a.del_flag = '0')
|
|
left join yq_g_house a on ( o.house_id = a.id and a.del_flag = '0')
|
|
left join yq_g_unit b on ( a.unit_id = b.id and b.del_flag = '0')
|
|
left join yq_g_unit b on ( a.unit_id = b.id and b.del_flag = '0')
|
|
left join yq_g_building c on ( b.building_id = c.id and c.del_flag = '0')
|
|
left join yq_g_building c on ( b.building_id = c.id and c.del_flag = '0')
|
|
@@ -247,7 +247,7 @@
|
|
<select id="getExaminePipeLength" resultType="com.ruoyi.yiqi.entity.YqGCensusVo">
|
|
<select id="getExaminePipeLength" resultType="com.ruoyi.yiqi.entity.YqGCensusVo">
|
|
select count(DISTINCT o.id) as value,
|
|
select count(DISTINCT o.id) as value,
|
|
o.pipe_length as name
|
|
o.pipe_length as name
|
|
- from yq_g_order o
|
|
|
|
|
|
+ from yq_yq_g_order o
|
|
left join yq_g_house a on ( o.house_id = a.id and a.del_flag = '0')
|
|
left join yq_g_house a on ( o.house_id = a.id and a.del_flag = '0')
|
|
left join yq_g_unit b on ( a.unit_id = b.id and b.del_flag = '0')
|
|
left join yq_g_unit b on ( a.unit_id = b.id and b.del_flag = '0')
|
|
left join yq_g_building c on ( b.building_id = c.id and c.del_flag = '0')
|
|
left join yq_g_building c on ( b.building_id = c.id and c.del_flag = '0')
|
|
@@ -302,12 +302,12 @@
|
|
a.whether as whether,
|
|
a.whether as whether,
|
|
a.version as version,
|
|
a.version as version,
|
|
CONCAT(f.dict_label,'-',e.name,'-',d.name,'-',c.name,'-',b.name) as house
|
|
CONCAT(f.dict_label,'-',e.name,'-',d.name,'-',c.name,'-',b.name) as house
|
|
- from yq_g_order a
|
|
|
|
|
|
+ from yq_yq_g_order a
|
|
left join yq_g_house b on a.house_id = b.id
|
|
left join yq_g_house b on a.house_id = b.id
|
|
left join yq_g_unit c on b.unit_id = c.id
|
|
left join yq_g_unit c on b.unit_id = c.id
|
|
left join yq_g_building d on c.building_id = d.id
|
|
left join yq_g_building d on c.building_id = d.id
|
|
left join yq_g_area e on d.area_id = e.id
|
|
left join yq_g_area e on d.area_id = e.id
|
|
- left join sys_dict_data f on e.district = f.dict_value
|
|
|
|
|
|
+ left join yq_sys_dict_data f on e.district = f.dict_value
|
|
where a.del_flag = '0'
|
|
where a.del_flag = '0'
|
|
and a.service_type not in ('004','005','006')
|
|
and a.service_type not in ('004','005','006')
|
|
and f.dict_type='district'
|
|
and f.dict_type='district'
|
|
@@ -379,13 +379,13 @@
|
|
a.update_time as updateTime,
|
|
a.update_time as updateTime,
|
|
CONCAT(f.dict_label,'-',e.name,'-',d.name,'-',c.name,'-',b.name) as house,
|
|
CONCAT(f.dict_label,'-',e.name,'-',d.name,'-',c.name,'-',b.name) as house,
|
|
a.whether as whether
|
|
a.whether as whether
|
|
- from yq_g_order a
|
|
|
|
|
|
+ from yq_yq_g_order a
|
|
left join yq_g_house b on ( a.house_id = b.id and b.del_flag = '0')
|
|
left join yq_g_house b on ( a.house_id = b.id and b.del_flag = '0')
|
|
left join yq_g_unit c on ( b.unit_id = c.id and c.del_flag = '0')
|
|
left join yq_g_unit c on ( b.unit_id = c.id and c.del_flag = '0')
|
|
left join yq_g_building d on ( c.building_id = d.id and d.del_flag = '0')
|
|
left join yq_g_building d on ( c.building_id = d.id and d.del_flag = '0')
|
|
left join yq_g_area e on ( d.area_id = e.id and e.del_flag = '0')
|
|
left join yq_g_area e on ( d.area_id = e.id and e.del_flag = '0')
|
|
left join yq_g_user u on a.user_id = u.id
|
|
left join yq_g_user u on a.user_id = u.id
|
|
- left join sys_dict_data f on e.district = f.dict_value
|
|
|
|
|
|
+ left join yq_sys_dict_data f on e.district = f.dict_value
|
|
where a.del_flag = '0'
|
|
where a.del_flag = '0'
|
|
and a.service_type ='004'
|
|
and a.service_type ='004'
|
|
and f.dict_type='district'
|
|
and f.dict_type='district'
|