|
|
@@ -3942,7 +3942,9 @@ class common {
|
|
|
//如果需要新加的时候 用户固定名称,用作标记 //contact_person,contact_number '$_contact_person','$_contact_number'
|
|
|
$_add_create_user = "Online_D_Address";
|
|
|
if ($_contact_type == "Add"){
|
|
|
- $sync_key = common::uuid();
|
|
|
+ if(empty($_sync_key)){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
$from_station = "Online_".strtoupper($_country);
|
|
|
$addressSql .= "INSERT INTO public.contacts_address(
|
|
|
addr_type,contact_id, addr1, addr2,addr3, addr4,
|
|
|
@@ -3952,7 +3954,7 @@ class common {
|
|
|
VALUES ('D','$_contact_id','$_address_1','$_address_2','$_address_3','$_address_4',
|
|
|
'$_country','$_city','$_postal_code',
|
|
|
'$_add_create_user',now(),'$_add_create_user',now(),
|
|
|
- true,'$sync_key','$from_station');";
|
|
|
+ true,'$_sync_key','$from_station');";
|
|
|
}
|
|
|
if ($_contact_type == "Modify"){
|
|
|
//代表在一个国家内的编辑 //contact_person='$_contact_person', contact_number='$_contact_number'
|
|
|
@@ -3967,7 +3969,9 @@ class common {
|
|
|
modify_user='"._getLoginName()."', modify_date=now()
|
|
|
WHERE sync_key = '$_sync_key';";
|
|
|
} else {
|
|
|
- $sync_key = common::uuid();
|
|
|
+ if(empty($_sync_key)){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
$from_station = "Online_".strtoupper($_country);
|
|
|
$addressSql .= "INSERT INTO public.contacts_address(
|
|
|
addr_type,contact_id, addr1, addr2,addr3, addr4,
|
|
|
@@ -3977,7 +3981,7 @@ class common {
|
|
|
VALUES ('D','$_contact_id','$_address_1','$_address_2','$_address_3','$_address_4',
|
|
|
'$_country','$_city','$_postal_code',
|
|
|
'$_add_create_user',now(),'$_add_create_user',now(),
|
|
|
- true,'$sync_key','$from_station');";
|
|
|
+ true,'$_sync_key','$from_station');";
|
|
|
}
|
|
|
}
|
|
|
if ($_contact_type == "Delete"){
|