liujie
2025-07-22 6cca8f6b62cff87bde6108f0fddc1822e865a8ef
ruoyi-service/ruoyi-order/src/main/resources/mapper/order/TChargingOrderMapper.xml
@@ -1765,15 +1765,7 @@
        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
@@ -1826,4 +1818,17 @@
            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>