fix: remove the fields: contactEmail,contactPhone,contactPhoneCountry from the DriverConvertDTO

This commit is contained in:
2025-08-18 16:49:26 +08:00
parent ac5aafcada
commit 22fc150557
5 changed files with 11 additions and 11 deletions

View File

@@ -24,7 +24,7 @@ public class StartupCompareRunner implements ApplicationRunner {
// compareService.compare(5, "vehicle"); // compareService.compare(5, "vehicle");
// compareService.compare(5, "device"); // compareService.compare(5, "device");
// compareService.compare(5, "business"); // compareService.compare(5, "business");
// compareService.compare(5, "driver"); compareService.compare(5, "driver");
// compareService.compare(5, "vehicle_device"); // compareService.compare(5, "vehicle_device");
// compareService.compare(5, "driver_vehicle"); // compareService.compare(5, "driver_vehicle");
// compareService.compare(5, "business_driver"); // compareService.compare(5, "business_driver");

View File

@@ -16,9 +16,9 @@ public class DriverConvertDTO {
private String phone; private String phone;
private String firstName; private String firstName;
private String lastName; private String lastName;
private String contactEmail; // private String contactEmail;
private String contactPhone; // private String contactPhone;
private String contactPhoneCountry; // private String contactPhoneCountry;
private Integer isDelete; private Integer isDelete;
private Integer customerId; private Integer customerId;
} }

View File

@@ -146,12 +146,12 @@ public class CompareService {
if (driverDTO.getContent() != null) { if (driverDTO.getContent() != null) {
dto.setFirstName(driverDTO.getContent().getFirstName()); dto.setFirstName(driverDTO.getContent().getFirstName());
dto.setLastName(driverDTO.getContent().getLastName()); dto.setLastName(driverDTO.getContent().getLastName());
dto.setContactEmail(driverDTO.getContent().getContactEmail()); // dto.setContactEmail(driverDTO.getContent().getContactEmail());
if (driverDTO.getContent().getContactPhone() != null) { // if (driverDTO.getContent().getContactPhone() != null) {
dto.setContactPhone(driverDTO.getContent().getContactPhone().getValue()); // dto.setContactPhone(driverDTO.getContent().getContactPhone().getValue());
dto.setContactPhoneCountry(driverDTO.getContent().getContactPhone().getCountry()); // dto.setContactPhoneCountry(driverDTO.getContent().getContactPhone().getCountry());
} // }
} }
driverConvertDTOS.add(dto); driverConvertDTOS.add(dto);

View File

@@ -20,7 +20,7 @@ public abstract class TAG {
public static final List<String> VEHICLE_FIELDS = Arrays.asList("id", "name", "isDelete", "customerId"); public static final List<String> VEHICLE_FIELDS = Arrays.asList("id", "name", "isDelete", "customerId");
public static final List<String> DEVICE_FIELDS = Arrays.asList("id", "userPackageId", "isDelete", "synTime", "customerId"); public static final List<String> DEVICE_FIELDS = Arrays.asList("id", "userPackageId", "isDelete", "synTime", "customerId");
public static final List<String> BUSINESS_FIELDS = Arrays.asList("id", "name", "isDelete", "customerId"); public static final List<String> BUSINESS_FIELDS = Arrays.asList("id", "name", "isDelete", "customerId");
public static final List<String> DRIVER_FIELDS = Arrays.asList("id", "name", "firstName","lastName","contactEmail", "contactPhone", "contactPhoneCountry", "isDelete", "email", "phone", "customerId"); public static final List<String> DRIVER_FIELDS = Arrays.asList("id", "name", "firstName", "lastName", "isDelete", "email", "phone", "customerId");
public static final List<String> VEHICLE_DEVICE_FIELDS = Arrays.asList("id", "vehicleId", "deviceId", "isDelete", "customerId"); public static final List<String> VEHICLE_DEVICE_FIELDS = Arrays.asList("id", "vehicleId", "deviceId", "isDelete", "customerId");
public static final List<String> DRIVER_VEHICLE_FIELDS = Arrays.asList("id", "driverId", "vehicleId", "isDelete", "customerId"); public static final List<String> DRIVER_VEHICLE_FIELDS = Arrays.asList("id", "driverId", "vehicleId", "isDelete", "customerId");
public static final List<String> BUSINESS_DRIVER_FIELDS = Arrays.asList("id", "businessId", "driverId", "isDelete", "customerId"); public static final List<String> BUSINESS_DRIVER_FIELDS = Arrays.asList("id", "businessId", "driverId", "isDelete", "customerId");