|
|
@@ -437,12 +437,14 @@ func (this *UserController) EditUser() {
|
|
|
if model.Superior != "" {
|
|
|
//改所属单位
|
|
|
str := strings.Split(model.Superior, ",")
|
|
|
- if str[2] != "" {
|
|
|
- var entity organize.Base_Organize
|
|
|
- svc := organize.GetOrganizeService(utils.DBE)
|
|
|
- svc.GetEntityById (str[2], &entity)
|
|
|
- userentity.UnitId,_ = strconv.Atoi(str[2])
|
|
|
- userentity.Unit = entity.Fullname
|
|
|
+ if str[0] == "100000000" {
|
|
|
+ if str[2] != "" {
|
|
|
+ var entity organize.Base_Organize
|
|
|
+ svc := organize.GetOrganizeService(utils.DBE)
|
|
|
+ svc.GetEntityById (str[2], &entity)
|
|
|
+ userentity.UnitId,_ = strconv.Atoi(str[2])
|
|
|
+ userentity.Unit = entity.Fullname
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
var cols []string = []string{"Realname", "CompanyId", "DepartmentId", "DepartmentName", "Telephone", "Mobile", "Description", "Photo", "Modifieduserid", "Modifiedby", "Superior", "Unit", "UnitId"}
|