From c6d30e55157e59fe7bb45f9eeaec904a8cf88ec4 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Mon, 02 Sep 2024 11:00:46 +0800
Subject: [PATCH] test和数据库连接
---
src/main/resources/mapper/modules/MallOrderInfoMapper.xml | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml
index 6c4441f..58297b2 100644
--- a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml
+++ b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml
@@ -159,9 +159,9 @@
</collection>
</resultMap>
- <select id="selectApiOrderListInPage" resultType="cc.mrbird.febs.mall.entity.MallOrderInfo">
+ <select id="selectApiOrderListInPage" resultMap="OrderInfoMap">
select
- a.*
+ *
from mall_order_info a
inner join mall_order_item b on a.id=b.order_id
<where>
@@ -438,7 +438,7 @@
<select id="getGoodsStatisticsInPage" resultType="cc.mrbird.febs.mall.vo.AdminGoodsStatisticsVo">
select
- CONCAT(goods_name, '-', sku_name) goodsName,
+ CONCAT(goods_name, '---', sku_name) goodsName,
SUM(cnt) goodsCnt
from mall_order_item
<where>
@@ -450,7 +450,7 @@
</foreach>
</if>
</where>
- GROUP BY goods_id,goods_name
+ GROUP BY goods_id,goods_name,sku_name
ORDER BY goods_id desc
</select>
--
Gitblit v1.9.1