Merge pull request '优化' (#495) from hotfix/mig_promote into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/495
master
廖金灵 3 years ago
commit 09f0c5a955

@ -760,6 +760,7 @@ class ConsoleController extends Think {
{
$fromAccount = 'nola2021';
$toAccount = 'shanye001';
$shiftIds = [7805];
$formPromote = M('promote', 'tab_')->where(['account' => $fromAccount])->find();
$toPromote = M('promote', 'tab_')->where(['account' => $toAccount])->find();
@ -768,13 +769,13 @@ class ConsoleController extends Think {
var_dump([
'from_promote_id' => $formPromote['id'],
'to_promote_id' => $toPromote['id'],
'shift_ids' => '7805',
'shift_ids' => json_encode($shiftIds),
]);
$service = new PromoteService();
$service->shiftPromote([
'from_promote_id' => $formPromote['id'],
'to_promote_id' => $toPromote['id'],
'shift_ids' => '7805',
'shift_ids' => json_encode($shiftIds),
]);
M('promote', 'tab_')->where(['level1_id' => $formPromote['id'], 'level2_id' => 7805, 'company_id' => $formPromote['company_id']])->save([
'company_id' => $toPromote['company_id'],

Loading…
Cancel
Save