Pu Zhibing
2025-01-17 a29360f67fc9494064ae8658a8085f7d64b05c3b
修改bug
2个文件已修改
18 ■■■■■ 已修改文件
ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TParkingRecordController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TParkingRecordMapper.xml 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TParkingRecordController.java
@@ -124,7 +124,7 @@
             s2 = query.getTimePeriod().split(" - ")[1];
        }
        Page<TParkingRecord> page = parkingRecordService.lambdaQuery()
                .in(TParkingRecord::getParkingLotId,ids)
                .in(null != ids && ids.size() > 0, TParkingRecord::getParkingLotId,ids)
                .like(query.getLicensePlate() != null, TParkingRecord::getLicensePlate, query.getLicensePlate())
                .eq(query.getStatus() != null, TParkingRecord::getStatus, query.getStatus())
                .eq(query.getOutParkingType() != null, TParkingRecord::getOutParkingType, query.getOutParkingType())
ruoyi-service/ruoyi-chargingPile/src/main/resources/mapper/chargingPile/TParkingRecordMapper.xml
@@ -98,8 +98,8 @@
    <select id="parkingData" resultType="java.util.Map">
        SELECT
            DATE_FORMAT( t1.create_time, '%H:00' ) AS time,
    count( 1 ) AS orders,
    SUM( t1.timeout_amount ) AS timeoutAmount
            count( 1 ) AS orders,
            SUM( t1.timeout_amount ) AS timeoutAmount
        FROM
            t_parking_record t1
        left join t_parking_lot t2  on t2.id = t1.parking_lot_id
@@ -121,8 +121,8 @@
    <select id="parkingDataByDate" resultType="java.util.Map">
        SELECT
            DATE_FORMAT( t1.create_time, '%Y-%m-%d' ) AS time,
    count( 1 ) AS orders,
    SUM( t1.timeout_amount ) AS timeoutAmount
            count( 1 ) AS orders,
            SUM( t1.timeout_amount ) AS timeoutAmount
        FROM
        t_parking_record t1
        left join t_parking_lot t2  on t2.id = t1.parking_lot_id
@@ -155,12 +155,7 @@
                </foreach>
            </if>
        </where>
        GROUP BY
            time
        ORDER BY
            time
        GROUP BY time
    </select>
    <select id="getCarColor" resultType="java.util.Map">
        SELECT
@@ -168,7 +163,6 @@
        FROM
        t_parking_record t1
        left join t_parking_lot t2  on t2.id = t1.parking_lot_id
        <where>
            <if test="parkingRecordQueryDto.parkingLotId !=null">
                AND t1.parking_lot_id = #{parkingRecordQueryDto.parkingLotId}