正在显示
2 个修改的文件
包含
12 行增加
和
3 行删除
@@ -89,6 +89,15 @@ func SetCompanyCharge(data ModuleCompanytData) error { | @@ -89,6 +89,15 @@ func SetCompanyCharge(data ModuleCompanytData) error { | ||
89 | } | 89 | } |
90 | 90 | ||
91 | func UpdateCompanyData(data ModuleCompanytData) error { | 91 | func UpdateCompanyData(data ModuleCompanytData) error { |
92 | - | 92 | + // var ( |
93 | + // companyData *models.Company | ||
94 | + // err error | ||
95 | + // ) | ||
96 | + // companyData, err = models.GetCompanyByUCenter(data.Id) | ||
97 | + // if err != nil { | ||
98 | + // log.Error("获取企业数据失败,user_center_id:%d ,err:%s", data.Id, err) | ||
99 | + // return errors.New("获取企业数据失败") | ||
100 | + // } | ||
101 | + // companyData.Logo = | ||
93 | return nil | 102 | return nil |
94 | } | 103 | } |
@@ -136,9 +136,9 @@ func departmentRelationUpdate(departmentUpdate models.Department, newparent mode | @@ -136,9 +136,9 @@ func departmentRelationUpdate(departmentUpdate models.Department, newparent mode | ||
136 | ) | 136 | ) |
137 | if newparent.Id == 0 { | 137 | if newparent.Id == 0 { |
138 | //修改节点为顶层节点的情况 | 138 | //修改节点为顶层节点的情况 |
139 | - newRelation = fmt.Sprintf("%d/", departmentUpdate.Id) | 139 | + newRelation = fmt.Sprintf(",%d,", departmentUpdate.Id) |
140 | } else { | 140 | } else { |
141 | - newRelation = fmt.Sprintf("%s%d/", newparent.Relation, departmentUpdate.Id) | 141 | + newRelation = fmt.Sprintf("%s%d,", newparent.Relation, departmentUpdate.Id) |
142 | } | 142 | } |
143 | o := orm.NewOrm() | 143 | o := orm.NewOrm() |
144 | o.Begin() | 144 | o.Begin() |
-
请 注册 或 登录 后发表评论