...
|
...
|
@@ -121,7 +121,7 @@ func PositionEdit(param protocol.RequestPositionEdit) (*protocol.ResponsePositio |
|
|
return nil, protocol.NewErrWithMessage("1", e)
|
|
|
}
|
|
|
//理部门上级发生变化的情况
|
|
|
if param.ParentID != positionUpdate.ParentId && param.ParentID != 0 {
|
|
|
if param.ParentID != 0 {
|
|
|
parentPosition, err = models.GetPositionById(param.ParentID)
|
|
|
if err != nil {
|
|
|
e := fmt.Errorf("GetDepartmentById(%d) err:%s", param.ParentID, err)
|
...
|
...
|
|