mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
add 新增 首页查询每天的保险收入金额接口
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user