ShiShiYiBan/yudao-module-mall/yudao-module-statistics-biz/src/main/resources/mapper/trade/AfterSaleStatisticsMapper.xml

15 lines
653 B
XML
Raw Normal View History

2023-10-06 14:15:59 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.iocoder.yudao.module.statistics.dal.mysql.trade.AfterSaleStatisticsMapper">
2023-10-11 12:32:28 +08:00
2023-10-06 14:15:59 +08:00
<select id="selectSummaryByRefundTimeBetween"
resultType="cn.iocoder.yudao.module.statistics.service.trade.bo.AfterSaleSummaryRespBO">
SELECT COUNT(1) AS afterSaleCount,
SUM(refund_price) AS afterSaleRefundPrice
FROM trade_after_sale
2023-10-11 12:32:28 +08:00
WHERE refund_time BETWEEN #{beginTime} AND #{endTime}
AND deleted = FALSE
2023-10-06 14:15:59 +08:00
</select>
2023-10-11 12:32:28 +08:00
2023-10-06 14:15:59 +08:00
</mapper>