Commit f4b501c7 authored by xixinzhao's avatar xixinzhao

工业水池导出

parent 91ea3956
...@@ -26,23 +26,24 @@ ...@@ -26,23 +26,24 @@
(case r.resource_type (case r.resource_type
when 'crane' then rc.status when 'crane' then rc.status
when 'pool' then rp.status when 'pool' then rp.status
when 'industryPool' then rp.status
when 'natural' then rn.status end) status, when 'natural' then rn.status end) status,
(case r.resource_type when 'crane' then rc.section when 'pool' then rp.section end) section, (case r.resource_type when 'crane' then rc.section when 'pool' then rp.section when 'industryPool' then rp.section end) section,
(case r.resource_type when 'crane' then rc.pipe_network when 'hydarant' then rh.pipe_network end) pipe_network, (case r.resource_type when 'crane' then rc.pipe_network when 'hydarant' then rh.pipe_network end) pipe_network,
(case r.resource_type when 'crane' then rc.pipe_type_name when 'hydarant' then rh.pipe_type_name when 'pool' then rp.pipe_type_name end) pipe_type_name, (case r.resource_type when 'crane' then rc.pipe_type_name when 'hydarant' then rh.pipe_type_name when 'pool' then rp.pipe_type_name when 'industryPool' then rp.pipe_type_name end) pipe_type_name,
(case r.resource_type when 'crane' then rc.pipe_diameter when 'hydarant' then rh.pipe_diameter end) pipe_diameter, (case r.resource_type when 'crane' then rc.pipe_diameter when 'hydarant' then rh.pipe_diameter end) pipe_diameter,
rc.inlet_pipe_diameter, rc.inlet_pipe_diameter,
rc.outlet_pipe_diameter, rc.outlet_pipe_diameter,
rc.waterfilling_lane_num, rc.waterfilling_lane_num,
(case r.resource_type when 'crane' then rc.water_supply_name when 'hydarant' then rh.water_supply_name when 'pool' then rp.water_supply_name end) water_supply_name, (case r.resource_type when 'crane' then rc.water_supply_name when 'hydarant' then rh.water_supply_name when 'pool' then rp.water_supply_name when 'industryPool' then rp.water_supply_name end) water_supply_name,
(case when 'hydrant' then rh.type when 'natural' then rn.type end) type, (case when 'hydrant' then rh.type when 'natural' then rn.type end) type,
rh.system_type, rh.system_type,
rh.facilities_category, rh.facilities_category,
rh.road_junction_info, rh.road_junction_info,
rh.place_form, rh.place_form,
rh.hose_connection, rh.hose_connection,
(case r.resource_type when 'hydrant' then rh.intake_form when 'pool' then rp.intake_form end) intake_form, (case r.resource_type when 'hydrant' then rh.intake_form when 'pool' then rp.intake_form when 'industryPool' then rp.intake_form end) intake_form,
(case r.resource_type when 'natural' then rn.volume when 'pool' then rp.volume end) volume, (case r.resource_type when 'natural' then rn.volume when 'pool' then rp.volume when 'industryPool' then rp.volume end) volume,
rn.area, rn.area,
rn.quality_situation_info, rn.quality_situation_info,
rn.season_change_info, rn.season_change_info,
...@@ -56,7 +57,10 @@ ...@@ -56,7 +57,10 @@
ri.iot_water_storage, ri.iot_water_storage,
ri.iot_flow_rate, ri.iot_flow_rate,
ri.iot_status, ri.iot_status,
ri.iot_pipe_pressure ri.iot_pipe_pressure,
rp.min_water_level,
rp.max_water_level,
rp.level_device_name
from cb_water_resource r from cb_water_resource r
left join cb_water_resource_pool rp left join cb_water_resource_pool rp
on r.sequence_nbr = rp.resource_id on r.sequence_nbr = rp.resource_id
......
...@@ -237,7 +237,7 @@ public class ExcelServiceImpl { ...@@ -237,7 +237,7 @@ public class ExcelServiceImpl {
break; break;
case "SYXX": case "SYXX":
// 暂时先还原代码不加 “非” ,为修改bug http://36.46.149.14:5080/zentao/task-view-6974.html 水源导出没有数据问题 // 暂时先还原代码不加 “非” ,为修改bug http://36.46.149.14:5080/zentao/task-view-6974.html 水源导出没有数据问题
if(authFalg) { if(!authFalg) {
ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(), null, ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(), null,
WaterResourceDto.class, dataSourcesImpl, false); WaterResourceDto.class, dataSourcesImpl, false);
break; break;
...@@ -1285,7 +1285,7 @@ public class ExcelServiceImpl { ...@@ -1285,7 +1285,7 @@ public class ExcelServiceImpl {
item.setTypeCode(type[1]); item.setTypeCode(type[1]);
} }
if (item.getLevelDeviceName() != null) { if (item.getLevelDeviceName() != null) {
String[] type = item.getType().split("@"); String[] type = item.getLevelDeviceName().split("@");
item.setLevelDeviceName(type[0]); item.setLevelDeviceName(type[0]);
item.setLevelDeviceId(Long.valueOf(type[1])); item.setLevelDeviceId(Long.valueOf(type[1]));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment