|
|
@@ -669,7 +669,7 @@ public class agents extends Controller {
|
|
|
if (workaddress == 1) {
|
|
|
sqlFactory.addParameter("isdefault", isdefault);
|
|
|
if (isdefault) {
|
|
|
- sqllist.add("update sys_enterprise_contacts set isdefault=0 where contactsid !=" + contactsid + " and sys_enterpriseid=" + sys_enterpriseid);
|
|
|
+ sqllist.add("update sys_enterprise_contacts set isdefault=0 where contactsid !=" + contactsid + " and sys_enterpriseid=" + sys_enterpriseid + " and type='" + type + "'");
|
|
|
}
|
|
|
} else {
|
|
|
sqlFactory.addParameter("isdefault", 0);
|