Przeglądaj źródła

设置默认值

ZeroLiYi 1 rok temu
rodzic
commit
ecb83db948

+ 1 - 1
src/main/java/com/chinaitop/depot/sqr/mapper/BizSqrEnterpriseMapper.xml

@@ -153,7 +153,7 @@ SELECT DISTINCT
153
     bse.storage_expire_time,
153
     bse.storage_expire_time,
154
     bse.attachment attachment,
154
     bse.attachment attachment,
155
     SUM(oi.depot_area) depotArea,
155
     SUM(oi.depot_area) depotArea,
156
-    SUM(bs.actual_capacity)actualCapacity,
156
+    COALESCE(SUM(bs.actual_capacity), 0) AS actualCapacity,
157
     bse.id
157
     bse.id
158
 FROM
158
 FROM
159
     province_all.biz_unit_info bui
159
     province_all.biz_unit_info bui

+ 1 - 1
src/main/java/com/chinaitop/depot/system/mapper/BizUnitInfoMapper.xml

@@ -161,7 +161,7 @@
161
     select
161
     select
162
     <include refid="Base_Column_List" />
162
     <include refid="Base_Column_List" />
163
     ,dict.DICT_LABEL,SUM(oi.depot_area) depotArea,
163
     ,dict.DICT_LABEL,SUM(oi.depot_area) depotArea,
164
-    SUM(bs.actual_capacity)actualCapacity
164
+    COALESCE(SUM(bs.actual_capacity), 0) AS actualCapacity
165
     from province_all.biz_unit_info bui
165
     from province_all.biz_unit_info bui
166
     left  join  province_all.dev_dict dict on bui.dwlx = dict.id
166
     left  join  province_all.dev_dict dict on bui.dwlx = dict.id
167
     left join depot_qh.org_info oi on oi.unit_info_id=bui.id
167
     left join depot_qh.org_info oi on oi.unit_info_id=bui.id