From 6550034b690ca2857e7930db8926691334b095c3 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 15 Feb 2023 10:15:03 +0800
Subject: [PATCH] ali短信服务
---
src/main/resources/mapper/modules/MallSalesmanMapper.xml | 71 +++++++++++++++++++++++++++++++++++
1 files changed, 71 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/modules/MallSalesmanMapper.xml b/src/main/resources/mapper/modules/MallSalesmanMapper.xml
index dbe601e..70c0859 100644
--- a/src/main/resources/mapper/modules/MallSalesmanMapper.xml
+++ b/src/main/resources/mapper/modules/MallSalesmanMapper.xml
@@ -26,4 +26,75 @@
where a.id = #{memberId}
</select>
+ <select id="selectAddressAmountListInPage" resultType="cc.mrbird.febs.mall.vo.AdminMallAddressInfoVo">
+ SELECT
+ a.province,
+ a.city
+ FROM mall_address_info a
+ <where>
+ <if test="record != null" >
+ <if test="record.province != null and record.province != ''">
+ and a.province = #{record.province}
+ </if>
+ <if test="record.city != null and record.city != ''">
+ and a.city = #{record.city}
+ </if>
+ </if>
+ </where>
+ group by a.city
+ </select>
+
+ <select id="selectSumOrderAmountByProvinceAndCity" resultType="java.math.BigDecimal">
+ select
+ IFNULL(sum(IFNULL(amount,0)),0)
+ from
+ mall_order_info
+ where
+ status in (2, 3, 4)
+ and order_type = 1
+ and address_id in (
+ select
+ a.id
+ from mall_address_info a
+ <where>
+ <if test="province != null and province != ''">
+ and a.province = #{province}
+ </if>
+ <if test="city != null and city != ''">
+ and a.city = #{city}
+ </if>
+ </where>
+ )
+ </select>
+
+ <select id="selectSumOrderCntByProvinceAndCity" resultType="java.lang.Integer">
+ select
+ count(id)
+ from
+ mall_order_info
+ where
+ status in (2, 3, 4)
+ and order_type = 1
+ and address_id in (
+ select
+ a.id
+ from mall_address_info a
+ <where>
+ <if test="province != null and province != ''">
+ and a.province = #{province}
+ </if>
+ <if test="city != null and city != ''">
+ and a.city = #{city}
+ </if>
+ </where>
+ )
+ </select>
+
+ <select id="selectProvince" resultType="cc.mrbird.febs.mall.vo.AdminMallAddressInfoVo">
+ SELECT
+ a.province
+ FROM mall_address_info a
+ group by a.province
+</select>
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1