增加个人办公模块
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user