增加个人办公模块

This commit is contained in:
2026-08-28 13:06:54 +08:00
parent 74ab6c4c6d
commit 576fea3770
27 changed files with 3370 additions and 59 deletions
+14 -1
View File
@@ -454,6 +454,10 @@ func (c *BackendErpController) CreateEmployee() {
return
}
// 同步到通讯录
tidUint := uint64(tid)
SyncContactOnEmployeeCreate(tidUint, uint64(id), &row)
c.jsonOK(map[string]interface{}{"id": id})
}
@@ -541,6 +545,9 @@ func (c *BackendErpController) EditEmployee() {
return
}
// 同步到通讯录
SyncContactOnEmployeeUpdate(uint64(id), update)
c.jsonOK(nil)
}
@@ -566,6 +573,9 @@ func (c *BackendErpController) DeleteEmployee() {
return
}
// 同步到通讯录
SyncContactOnEmployeeDelete(uint64(id))
c.jsonOK(nil)
}
@@ -1244,7 +1254,10 @@ func (c *BackendErpController) MoveEmployeeToOrg() {
c.jsonError(404, "员工不存在")
return
}
// 同步到通讯录
SyncContactOnEmployeeUpdate(uint64(employeeID), orm.Params{"department": orgID})
c.jsonOK(nil)
}