|
|
@@ -125,11 +125,13 @@
|
|
125
|
125
|
bse.storage_expire_time,
|
|
126
|
126
|
bse.attachment attachment,
|
|
127
|
127
|
SUM(oi.depot_area) depotArea,
|
|
128
|
|
- SUM(bs.actual_capacity)actualCapacity
|
|
|
128
|
+ SUM(bs.actual_capacity)actualCapacity,
|
|
|
129
|
+ bgqa.apply_status,bgqa.apply_type,bgqa.id
|
|
129
|
130
|
FROM
|
|
130
|
131
|
province_all.biz_unit_info bui
|
|
131
|
132
|
LEFT JOIN province_all.dev_dict dict ON bui.dwlx = dict.id
|
|
132
|
133
|
LEFT JOIN province_all.biz_sqr_enterprise bse ON bse.unit_info_id = bui.id
|
|
|
134
|
+ left join province_all.biz_sqr_enterprise_apply bgqa on bgqa.sqr_enterprise_id =bse.id
|
|
133
|
135
|
left join depot_qh.org_info oi on oi.unit_info_id=bui.id
|
|
134
|
136
|
left join depot_qh.basic_storehouse bs on bs.org_id=oi.org_id
|
|
135
|
137
|
WHERE
|