作者 tangxvhui

bug 调整

... ... @@ -89,6 +89,15 @@ func SetCompanyCharge(data ModuleCompanytData) error {
}
func UpdateCompanyData(data ModuleCompanytData) error {
// var (
// companyData *models.Company
// err error
// )
// companyData, err = models.GetCompanyByUCenter(data.Id)
// if err != nil {
// log.Error("获取企业数据失败,user_center_id:%d ,err:%s", data.Id, err)
// return errors.New("获取企业数据失败")
// }
// companyData.Logo =
return nil
}
... ...
... ... @@ -136,9 +136,9 @@ func departmentRelationUpdate(departmentUpdate models.Department, newparent mode
)
if newparent.Id == 0 {
//修改节点为顶层节点的情况
newRelation = fmt.Sprintf("%d/", departmentUpdate.Id)
newRelation = fmt.Sprintf(",%d,", departmentUpdate.Id)
} else {
newRelation = fmt.Sprintf("%s%d/", newparent.Relation, departmentUpdate.Id)
newRelation = fmt.Sprintf("%s%d,", newparent.Relation, departmentUpdate.Id)
}
o := orm.NewOrm()
o.Begin()
... ...