|
@@ -205,6 +205,7 @@ func HandleSyncAdmin(data SyncAdminData) (err error) {
|
|
|
newUser.City = crmUser.City
|
|
|
newUser.CityCode = crmUser.CityCode
|
|
|
newUser.EmployeeId = crmUser.EmployeeId
|
|
|
+ newUser.TelAreaCode = crmUser.TelAreaCode
|
|
|
e = newUser.Create()
|
|
|
if e != nil {
|
|
|
err = fmt.Errorf("新增ETA对应用户失败, Err: " + e.Error())
|
|
@@ -244,11 +245,12 @@ func HandleSyncAdmin(data SyncAdminData) (err error) {
|
|
|
etaUser.City = crmUser.City
|
|
|
etaUser.CityCode = crmUser.CityCode
|
|
|
etaUser.EmployeeId = crmUser.EmployeeId
|
|
|
+ etaUser.TelAreaCode = crmUser.TelAreaCode
|
|
|
cols := []string{
|
|
|
"AdminName", "AdminAvatar", "RealName", "Password", "LastUpdatedPasswordTime", "Enabled", "Email", "LastUpdatedTime",
|
|
|
"Role", "Mobile", "RoleType", "RoleId", "RoleName", "RoleTypeCode", "DepartmentId", "DepartmentName", "GroupId", "GroupName",
|
|
|
"Authority", "Position", "DirectorId", "DisableTime", "ChartPermission", "EdbPermission", "MysteelChemicalPermission", "OpenId",
|
|
|
- "UnionId", "PredictEdbPermission", "Province", "ProvinceCode", "City", "CityCode", "EmployeeId",
|
|
|
+ "UnionId", "PredictEdbPermission", "Province", "ProvinceCode", "City", "CityCode", "EmployeeId", "TelAreaCode",
|
|
|
}
|
|
|
e = etaUser.Update(cols)
|
|
|
if e != nil {
|
|
@@ -310,6 +312,7 @@ func HandleSyncAdmin(data SyncAdminData) (err error) {
|
|
|
newUser.City = etaUser.City
|
|
|
newUser.CityCode = etaUser.CityCode
|
|
|
newUser.EmployeeId = etaUser.EmployeeId
|
|
|
+ newUser.TelAreaCode = etaUser.TelAreaCode
|
|
|
e = newUser.Create()
|
|
|
if e != nil {
|
|
|
err = fmt.Errorf("新增ETA对应用户失败, Err: " + e.Error())
|
|
@@ -349,11 +352,12 @@ func HandleSyncAdmin(data SyncAdminData) (err error) {
|
|
|
crmUser.City = etaUser.City
|
|
|
crmUser.CityCode = etaUser.CityCode
|
|
|
crmUser.EmployeeId = etaUser.EmployeeId
|
|
|
+ crmUser.TelAreaCode = etaUser.TelAreaCode
|
|
|
cols := []string{
|
|
|
"AdminName", "AdminAvatar", "RealName", "Password", "LastUpdatedPasswordTime", "Enabled", "Email", "LastUpdatedTime",
|
|
|
"Role", "Mobile", "RoleType", "RoleId", "RoleName", "RoleTypeCode", "DepartmentId", "DepartmentName", "GroupId", "GroupName",
|
|
|
"Authority", "Position", "DirectorId", "DisableTime", "ChartPermission", "EdbPermission", "MysteelChemicalPermission", "OpenId",
|
|
|
- "UnionId", "PredictEdbPermission", "Province", "ProvinceCode", "City", "CityCode", "EmployeeId",
|
|
|
+ "UnionId", "PredictEdbPermission", "Province", "ProvinceCode", "City", "CityCode", "EmployeeId", "TelAreaCode",
|
|
|
}
|
|
|
e = crmUser.Update(cols)
|
|
|
if e != nil {
|