ruoyi-system/src/main/resources/mapper/system/TOrderSaleGoodsMapper.xml
@@ -33,7 +33,7 @@ </where> </select> <select id="salesRanking" resultType="com.ruoyi.system.vo.SalesRankingVO"> SELECT tgt.typeName,SUM(tosg.goodsSalePrice*tosg.goodsCount) AS salesVolume SELECT tgt.typeName,SUM(tosg.thisSalePrice*tosg.goodsCount) AS salesVolume FROM t_order_sale_goods tosg LEFT JOIN t_order_sale tos on tosg.orderId=tos.id LEFT JOIN t_goods_type tgt ON tosg.typeId = tgt.id @@ -45,6 +45,7 @@ </foreach> </if> AND tos.isCover = 1 AND tos.status = 2 </where> GROUP BY tgt.typeName </select>