fix: remove the fields: contactEmail,contactPhone,contactPhoneCountry from the DriverConvertDTO
This commit is contained in:
@@ -9,4 +9,4 @@ public class ProEldMqttCompareApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ProEldMqttCompareApplication.class, args);
|
||||
}
|
||||
}
|
||||
}
|
@@ -24,7 +24,7 @@ public class StartupCompareRunner implements ApplicationRunner {
|
||||
// compareService.compare(5, "vehicle");
|
||||
// compareService.compare(5, "device");
|
||||
// compareService.compare(5, "business");
|
||||
// compareService.compare(5, "driver");
|
||||
compareService.compare(5, "driver");
|
||||
// compareService.compare(5, "vehicle_device");
|
||||
// compareService.compare(5, "driver_vehicle");
|
||||
// compareService.compare(5, "business_driver");
|
||||
|
@@ -16,9 +16,9 @@ public class DriverConvertDTO {
|
||||
private String phone;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
private String contactEmail;
|
||||
private String contactPhone;
|
||||
private String contactPhoneCountry;
|
||||
// private String contactEmail;
|
||||
// private String contactPhone;
|
||||
// private String contactPhoneCountry;
|
||||
private Integer isDelete;
|
||||
private Integer customerId;
|
||||
}
|
||||
|
@@ -146,12 +146,12 @@ public class CompareService {
|
||||
if (driverDTO.getContent() != null) {
|
||||
dto.setFirstName(driverDTO.getContent().getFirstName());
|
||||
dto.setLastName(driverDTO.getContent().getLastName());
|
||||
dto.setContactEmail(driverDTO.getContent().getContactEmail());
|
||||
// dto.setContactEmail(driverDTO.getContent().getContactEmail());
|
||||
|
||||
if (driverDTO.getContent().getContactPhone() != null) {
|
||||
dto.setContactPhone(driverDTO.getContent().getContactPhone().getValue());
|
||||
dto.setContactPhoneCountry(driverDTO.getContent().getContactPhone().getCountry());
|
||||
}
|
||||
// if (driverDTO.getContent().getContactPhone() != null) {
|
||||
// dto.setContactPhone(driverDTO.getContent().getContactPhone().getValue());
|
||||
// dto.setContactPhoneCountry(driverDTO.getContent().getContactPhone().getCountry());
|
||||
// }
|
||||
}
|
||||
|
||||
driverConvertDTOS.add(dto);
|
||||
|
@@ -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> 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> 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> 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");
|
||||
|
Reference in New Issue
Block a user