update
This commit is contained in:
parent
dc8bf07779
commit
521f83fbc2
@ -15,6 +15,7 @@
|
|||||||
namespace app\adminapi\logic\works\rlzy;
|
namespace app\adminapi\logic\works\rlzy;
|
||||||
|
|
||||||
|
|
||||||
|
use app\common\model\auth\Admin;
|
||||||
use app\common\model\works\rlzy\OaAdmin;
|
use app\common\model\works\rlzy\OaAdmin;
|
||||||
use app\common\model\works\rlzy\OaDepartmentChange;
|
use app\common\model\works\rlzy\OaDepartmentChange;
|
||||||
use app\common\logic\BaseLogic;
|
use app\common\logic\BaseLogic;
|
||||||
@ -50,7 +51,7 @@ class OaDepartmentChangeLogic extends BaseLogic
|
|||||||
'status' => $params['status'] ?? 1,
|
'status' => $params['status'] ?? 1,
|
||||||
'move_time' => !empty($params['move_time']) ? strtotime($params['move_time']) : 0
|
'move_time' => !empty($params['move_time']) ? strtotime($params['move_time']) : 0
|
||||||
]);
|
]);
|
||||||
OaAdmin::where('id',$params['uid'])->update(['dept_id'=>$params['to_did']]);
|
Admin::where('id',$params['uid'])->update(['dept_id'=>$params['to_did']]);
|
||||||
Db::commit();
|
Db::commit();
|
||||||
return true;
|
return true;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
@ -81,7 +82,7 @@ class OaDepartmentChangeLogic extends BaseLogic
|
|||||||
'status' => $params['status'] ?? 1,
|
'status' => $params['status'] ?? 1,
|
||||||
'move_time' => !empty($params['move_time']) ? strtotime($params['move_time']) : 0
|
'move_time' => !empty($params['move_time']) ? strtotime($params['move_time']) : 0
|
||||||
]);
|
]);
|
||||||
OaAdmin::where('id',$params['uid'])->update(['dept_id'=>$params['to_did']]);
|
Admin::where('id',$params['uid'])->update(['dept_id'=>$params['to_did']]);
|
||||||
Db::commit();
|
Db::commit();
|
||||||
return true;
|
return true;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user