Skip to content

Commit c7da2de

Browse files
authored
Merge pull request #81 from Capstone-QuarterBack/feature
Main Merge
2 parents fdd6976 + 4565cd2 commit c7da2de

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

src/main/java/com/example/quaterback/api/domain/station/domain/ChargingStationDomain.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public void updateStationStatus(StationStatus status) {
3434
}
3535

3636
public void updateStationEssValue(Double essValue){
37+
essValue = Math.round(essValue * 100.0) / 100.0;
3738
this.essValue = essValue;
3839
}
3940

src/main/java/com/example/quaterback/websocket/mongodb/RawOcppMessageRepositoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public OcppLogSearchResult findByFilters(OcppLogFilterRequest filter, Pageable p
6161
String action = rawOcppMessage.getAction();
6262

6363
dtoList.add(new OcppLogResponse(
64-
rawOcppMessage.getTimestamp(),
64+
rawOcppMessage.getTimestamp().plusHours(9),
6565
rawOcppMessage.getStationId(),
6666
messageType,
6767
action,

src/main/resources/data.sql

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ SET FOREIGN_KEY_CHECKS = 1;
1616

1717
-- 2. 새 데이터 삽입
1818
INSERT INTO charging_station (station_id, model, vendor_id, latitude, longitude, address, update_status_time_stamp, station_status, station_name, ess_value)
19-
VALUES ('station-001', 'R1', 'quarterback', 37.5665, 126.9780, '서울특별시 중구 세종대로 110', '2025-04-17T11:20:00', 'inactive', 'sejong', 100.0),
20-
('station-002', 'R1', 'quarterback', 37.5665, 126.9780, '서울특별시 중구 세종대로 110', '2025-04-17T11:20:00', 'inactive', 'yangcheon', 100.0);
19+
VALUES ('station-001', 'R1', 'quarterback', 37.551108, 127.075760, '서울특별시 광진구 군자동 능동로 209', '2025-04-17T11:20:00', 'inactive', 'sejong', 100.0),
20+
('station-002', 'R1', 'quarterback', 37.549489, 127.075068, '서울특별시 광진구 군자동 339-1', '2025-04-17T11:20:00', 'inactive', 'subway', 100.0),
21+
('station-003', 'R1', 'quarterback', 37.548614, 127.074507, '서울특별시 광진구 군자동 98-34', '2025-04-17T11:20:00', 'inactive', 'gunja', 100.0);
2122
;
2223

2324
INSERT INTO charger_info (evse_id, charger_status, update_status_time_stamp, station_id)
2425
VALUES (1, 'Available', '2025-04-20T12:30:00', 'station-001'),
2526
(2, 'Available', '2025-04-20T12:30:00', 'station-001'),
2627
(3, 'Available', '2025-04-20T12:30:00', 'station-001'),
27-
(4, 'Fault', '2025-04-20T12:30:00', 'station-001');
28+
(4, 'Unavailable', '2025-04-20T12:30:00', 'station-001');
2829

2930
INSERT INTO customer (customer_id, customer_name, id_token, email, phone, vehicle_no, registration_date)
3031
VALUES
@@ -60,9 +61,9 @@ INSERT INTO kepco_price (season, time_slot, price_per_kwh) VALUES
6061

6162
INSERT INTO tx_info (transaction_id, started_time, ended_time, vehicle_no, id_token, station_id, total_meter_value, total_price, error_code)
6263
VALUES
63-
('tx-000', '2025-05-15T10:00:00', '2025-05-15T10:00:10', '12가3456', 'token001', 'station-001', 15.0, 1500, '00'),
64-
('tx-001', '2025-05-16T10:20:00', '2025-05-16T10:20:20', '12가3456', 'token001', 'station-001', 15.0, 1000, '00'),
65-
('tx-002', '2025-04-02T14:10:00', '2025-04-02T14:50:00', '34나7890', 'token001', 'station-001', 22.7, 6800, '00');
64+
('tx-1', '2025-05-15T10:00:00', '2025-05-15T10:00:10', '12가3456', 'token001', 'station-001', 15.0, 1500, '00'),
65+
('tx-2', '2025-05-16T10:20:00', '2025-05-16T10:20:20', '12가3456', 'token001', 'station-001', 15.0, 1000, '00'),
66+
('tx-3', '2025-04-02T14:10:00', '2025-04-02T14:50:00', '34나7890', 'token001', 'station-001', 22.7, 6800, '00');
6667
INSERT INTO charger_uptime (up_time, charging_station, created_at)
6768
VALUES
6869
(2.5, 1, '2025-05-01 09:00:00.000000'),
@@ -89,4 +90,3 @@ VALUES
8990
(3.9, 2, '2025-05-13 20:00:00.000000'),
9091
(4.5, 2, '2025-05-14 13:00:00.000000'),
9192
(4.8, 2, '2025-05-16 16:00:00.000000');
92-
;

0 commit comments

Comments
 (0)