首页| 论坛| 消息
主题:li
回帖:$id = intval($_REQUEST['id']);
$model = ta_post::model()->findByPk($id);
$model->deleteByPk($id);
ta_post_flow::model()->deleteAll("post_id={$id}");
ta_post_resume::model()->deleteAll("post_id={$id}");
ta_post_tender::model()->deleteAll("post_id={$id}");
5163 25688
$id = intval($_REQUEST['id']);
$model = ta_post::model()->findByPk($id);
if ($model->is_fake == 1)
$is_fake = 0;
elseif ($model->is_fake == 0)
$is_fake = 1;
$res = ta_post::model()->UpdateByPk(intval($_REQUEST['id']), array('is_fake' => $is_fake));
2019-02-092021-2-19
3600*24*360
1543382150
$model = ta_post::model()->find("post_id={$id}");
$models = ta_resume::model()->find("post_status=6");
$models = ta_resume::model()->findAll("mid={$myid} AND mark=2");
订单状态:0暂定为草稿,1确认发布,2合作中,3完成进入保证期限,4投标中,5已选标,6猎头服务中,7已发offer,8入职,9待评价,10已完成11已结束
foreach ($ids as $id) {
$model = ta_post::model()->find("post_id={$id}");
$model->istop = $isTop;
$model->update();
}

foreach ($ids as $id) {
$model = ta_post::model()->find("post_id={$id}");
$model->bid_end_time = $model->bid_end_time + 14 * 86400;
$model->update();
$order = new OrderComponent($model->post_id);
if ($model->check_status == 1 && $model->post_status otype == 1) {
$order->pub(1);
} elseif ($model->otype == 2) {
$order->pub_entrust(1);
}
}
}
下一楼›:51znt.comwww.51znt.com/manage/core/main
http://51znt.comwww.51znt.com/manage/core/main
‹上一楼:public function actionTdel() {
set_time_limit(0);
$id = 3934;
$models = ta_pos ..

查看全部回帖(7)
«返回主帖