add 新增 首页查询每天的保险收入金额接口

This commit is contained in:
Lemon
2025-11-26 14:52:07 +08:00
parent f55f6ec006
commit 23ce26a441
6 changed files with 62 additions and 1 deletions

View File

@@ -3505,4 +3505,17 @@
#{item}
</foreach>
</select>
<select id="getInsuranceAmount" resultType="com.jsowell.pile.vo.web.IndexPlatformProfitVO">
select
DATE_FORMAT(settlement_time, '%Y-%m-%d') as tradeDate,
sum(insurance_amount) as insuranceAmount
from
`order_basic_info`
WHERE
`del_flag` = '0'
AND `insurance_amount` > 0
and `settlement_time` BETWEEN #{dto.startTime,jdbcType=VARCHAR} and #{dto.endTime,jdbcType=VARCHAR}
group by DATE_FORMAT(settlement_time, '%Y-%m-%d');
</select>
</mapper>