|
@@ -10,7 +10,9 @@ import com.charging.chargingparking.config.ParkingConfig;
|
|
|
import com.charging.chargingparking.entity.ParkingRecord;
|
|
|
import com.charging.chargingparking.mapper.ParkingRecordMapper;
|
|
|
import com.charging.chargingparking.service.ParkingFeeService;
|
|
|
+import com.charging.chargingparking.service.ParkingMemberService;
|
|
|
import com.charging.chargingparking.service.ParkingRecordService;
|
|
|
+import com.sun.org.apache.xpath.internal.operations.Bool;
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
@@ -39,12 +41,15 @@ class ChargingParkingApplicationTests {
|
|
|
@Autowired
|
|
|
private ParkingFeeService parkingFeeService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ParkingMemberService parkingMemberService;
|
|
|
+
|
|
|
|
|
|
@Test
|
|
|
void contextLoads() {
|
|
|
|
|
|
try{
|
|
|
- ParkingRecord parkingRecord = parkingRecordService.getById("1531885057189085186");
|
|
|
+ ParkingRecord parkingRecord = parkingRecordService.getById("1532283211508191233");
|
|
|
BigDecimal parkingCost = parkingFeeService.parkingCost(parkingRecord);
|
|
|
|
|
|
System.out.println(parkingCost);
|
|
@@ -55,4 +60,19 @@ class ChargingParkingApplicationTests {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @Test
|
|
|
+ void testMember() {
|
|
|
+
|
|
|
+ try{
|
|
|
+ Boolean result = parkingMemberService.parkingMemberStatus("鄂D9758J","1");
|
|
|
+
|
|
|
+
|
|
|
+ System.out.println(result);
|
|
|
+ }catch (Exception ex){
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|