| | |
| | | ORDER BY DATE(create_time, '%m/%d') ASC |
| | | </select> |
| | | |
| | | <select id="getSumDegreeBySiteIds" resultType="java.math.BigDecimal"> |
| | | select sum(t2.charging_capacity) from t_charging_order t1 left join t_charging_order_summary_data t2 |
| | | on t1.id =t2. charging_order_id where t1.del_flag=0 |
| | | and t1.site_id in |
| | | <foreach item="item" index="index" collection="siteIds" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | |
| | | </select> |
| | | |
| | | <select id="findFailedStartupOrder" resultType="com.ruoyi.order.api.model.TChargingOrder"> |
| | | SELECT |
| | |
| | | FROM |
| | | t_charging_order_refund) |
| | | </select> |
| | | |
| | | <select id="getSumDegreeBySiteIds" resultType="java.lang.Double"> |
| | | SELECT IFNULL(SUM(t2.charging_capacity), 0.0) AS sumDegreeBySiteIds |
| | | FROM t_charging_order t1 |
| | | LEFT JOIN t_charging_order_summary_data t2 ON t1.id = t2.charging_order_id |
| | | WHERE t1.del_flag = 0 |
| | | <if test="siteIds != null and siteIds.size() > 0"> |
| | | AND t1.site_id IN |
| | | <foreach collection="siteIds" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | </mapper> |