|
@@ -104,8 +104,11 @@ class ChargingParkingApplicationTests {
|
|
|
private TimeSetService timeSetService;
|
|
|
@Test
|
|
|
void testService() {
|
|
|
- String carNum="鄂DD26H6";
|
|
|
- System.out.println(carNum.length());
|
|
|
+// String carNum="鄂DD26H6";
|
|
|
+// System.out.println(carNum.length());
|
|
|
+ String dateStr= DateUtil.format(new Date(),"yyyy-MM-dd hh:mm:ss");
|
|
|
+ System.out.println(dateStr);
|
|
|
+
|
|
|
}
|
|
|
// @Test
|
|
|
// void testService() {
|
|
@@ -646,6 +649,12 @@ class ChargingParkingApplicationTests {
|
|
|
void contextLoads1111111111111111111111111111() {
|
|
|
|
|
|
try {
|
|
|
+
|
|
|
+ if (DateUtil.parse("2024-03-27 06:29:09").compareTo(DateUtil.offsetSecond(DateUtil.parse("2024-03-27 06:08:22"), -30)) < 0) {
|
|
|
+
|
|
|
+ System.out.println("1111111111111111");
|
|
|
+ }
|
|
|
+
|
|
|
//1771830983861047298 鄂DD26100 荆州院子 136分钟 实际9元 应该收费3元 没有充电---------新能源车
|
|
|
//1769951488673681409 鄂DD26H6 御河 442分钟-7小时22分钟 实际收费16元 ----------------- 汽油车
|
|
|
//鄂DD77599 御河社区停车场 1769664940010999810
|
|
@@ -654,7 +663,7 @@ class ChargingParkingApplicationTests {
|
|
|
//2024-03-18 18:19:31
|
|
|
//2024-03-18 22:41:38
|
|
|
//4
|
|
|
- ParkingRecord parkingRecord = parkingRecordService.getById("1769664940010999810");
|
|
|
+ ParkingRecord parkingRecord = parkingRecordService.getById("1772747449024221185");
|
|
|
ParkingCostDTO parkingCostDTO = parkingFeeService.parkingCost2(parkingRecord);
|
|
|
|
|
|
System.out.println(parkingCostDTO);
|