Browse Source

优惠加为0 问题

java110 4 years ago
parent
commit
793bc51465

+ 1 - 1
java110-db/src/main/resources/mapper/store/ResourceStoreServiceDaoImplMapper.xml

@@ -502,7 +502,7 @@
     </select>
     </select>
     <!-- 查询资源信息 add by wuxw 2018-07-03 -->
     <!-- 查询资源信息 add by wuxw 2018-07-03 -->
     <select id="queryResourceStoresTotalPrice" parameterType="Map" resultType="Map">
     <select id="queryResourceStoresTotalPrice" parameterType="Map" resultType="Map">
-        select sum(w.stock*w.average_price) as totalPrice from(
+        select IFNULL(sum(w.stock*w.average_price),0) as totalPrice from(
         select t.stock,t.average_price from resource_store t
         select t.stock,t.average_price from resource_store t
         left join storehouse sh on t.sh_id = sh.sh_id and t.store_id = sh.store_id and sh.status_cd = '0'
         left join storehouse sh on t.sh_id = sh.sh_id and t.store_id = sh.store_id and sh.status_cd = '0'
         where 1 = 1
         where 1 = 1