|
|
|
@ -184,10 +184,10 @@ class PromoteService {
|
|
|
|
|
$shiftIds = json_decode($task['shift_ids'], true) ?? [];
|
|
|
|
|
if (count($shiftIds) > 0) {
|
|
|
|
|
$firstMap['id'] = ['in', $shiftIds];
|
|
|
|
|
$secondMap['id'] = ['in', $shiftIds];
|
|
|
|
|
$secondMap['parent_id'] = ['in', $shiftIds];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$status = M('promote', 'tab_')->where($firstMap)->save(['parent_id' => $toPromote['id']]);
|
|
|
|
|
$status = M('promote', 'tab_')->where($firstMap)->save(['parent_id' => $toPromote['id'], 'parent_name' => $toPromote['account']]);
|
|
|
|
|
if (!$status) {
|
|
|
|
|
$model->rollback();
|
|
|
|
|
return ['status' => false, 'msg' => '系统异常,修改推广员上级失败'];
|
|
|
|
|