...
|
...
|
@@ -56,12 +56,12 @@ type ModuleEmployee struct { |
|
|
}
|
|
|
|
|
|
type DeleteUserData struct {
|
|
|
CompanyId int64 `json:"company_id"`
|
|
|
CompanyId int64 `json:"companyId"`
|
|
|
Ids []int64 `json:"ids"`
|
|
|
}
|
|
|
|
|
|
type ForbidAllowUserData struct {
|
|
|
CompanyId int64 `json:"company_id"`
|
|
|
CompanyId int64 `json:"companyId"`
|
|
|
Ids []int64 `json:"ids"`
|
|
|
Status int8 `json:"status"`
|
|
|
}
|
...
|
...
|
@@ -435,7 +435,9 @@ func editUserDepart(usercompanyid int64, companyid int64, userDepart []UserDepar |
|
|
}
|
|
|
if len(delDepartIds) > 0 {
|
|
|
_, err = o.QueryTable(&models.UserDepartment{}).
|
|
|
Filter("id__in", delDepartIds).
|
|
|
Filter("department_id__in", delDepartIds).
|
|
|
Filter("user_company_id", usercompanyid).
|
|
|
Filter("enable_status", 1).
|
|
|
Update(orm.Params{
|
|
|
"enable_status": models.USER_DEPARTMENT_ENABLE_NO,
|
|
|
})
|
...
|
...
|
@@ -488,7 +490,9 @@ func editUserPosition(usercompanyid int64, companyid int64, userPosition []UserP |
|
|
}
|
|
|
if len(delPositionIds) > 0 {
|
|
|
_, err = o.QueryTable(&models.UserPosition{}).
|
|
|
Filter("id__in", delPositionIds).
|
|
|
Filter("position_id__in", delPositionIds).
|
|
|
Filter("user_company_id", usercompanyid).
|
|
|
Filter("enable_status", 1).
|
|
|
Update(orm.Params{
|
|
|
"enable_status": models.USER_POSITION_ENABLE_NO,
|
|
|
})
|
...
|
...
|
|