|
@@ -32,6 +32,9 @@ func DeleteSysDepartmentById(sysDepartmentId, level int) (err error) {
|
|
for i := level; i < 3; i++ {
|
|
for i := level; i < 3; i++ {
|
|
|
|
|
|
curStringIds = strings.Join(curIds, ",")
|
|
curStringIds = strings.Join(curIds, ",")
|
|
|
|
+ if curStringIds == "" {
|
|
|
|
+ break
|
|
|
|
+ }
|
|
sysDepartments, er := models.GetChildSysDepartmentListByIds(curStringIds)
|
|
sysDepartments, er := models.GetChildSysDepartmentListByIds(curStringIds)
|
|
|
|
|
|
if er != nil {
|
|
if er != nil {
|