|
|
@ -609,14 +609,17 @@ class TimingController extends AdminController {
|
|
|
|
|
|
|
|
|
|
|
|
public function shiftPromoteStatistics() {
|
|
|
|
public function shiftPromoteStatistics() {
|
|
|
|
|
|
|
|
|
|
|
|
$data = M("shift_task")->where(['status'=>0,'type'=>2])->select();
|
|
|
|
$data = M("shift_task")->where(['change_status'=>0,'type'=>2])->select();
|
|
|
|
|
|
|
|
|
|
|
|
$promote_data = [];
|
|
|
|
$promote_data = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$change_id = [];
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($data as $key => $value) {
|
|
|
|
foreach ($data as $key => $value) {
|
|
|
|
|
|
|
|
|
|
|
|
$promote_data[] = $value['from_promote_id'];
|
|
|
|
$promote_data[] = $value['from_promote_id'];
|
|
|
|
$promote_data[] = $value['to_promote_id'];
|
|
|
|
$promote_data[] = $value['to_promote_id'];
|
|
|
|
|
|
|
|
$change_id[] = $value['id'];
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$promote_data=array_unique($promote_data);
|
|
|
|
$promote_data=array_unique($promote_data);
|
|
|
@ -655,6 +658,8 @@ class TimingController extends AdminController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->PromoteStatistics($data);
|
|
|
|
$this->PromoteStatistics($data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
M("shift_task")->where(['id'=>['in',$change_id]])->save(['change_status'=>1]);
|
|
|
|
// dump($data);
|
|
|
|
// dump($data);
|
|
|
|
// dump(array_unique($chain_data_secord));
|
|
|
|
// dump(array_unique($chain_data_secord));
|
|
|
|
|
|
|
|
|
|
|
|