本文共 1076 字,大约阅读时间需要 3 分钟。
$d_order_tuikuan = D('order_tuikuan'); $order_status_list = C('ORDER_STATUS'); $now = time(); switch(I('post.do')){ case 'query': $map = array(); if ($user_type == -1){ $map['dl_user_id'] = fn_get_current_user_id(); }else if ($user_type == 0){ $map['tg_user_id'] = fn_get_current_user_id(); } $map['order_create_time'] = array('between', strtotime(I('post.start_time')).','.strtotime(I('post.end_time'))); $data_list = $d_order_tuikuan->where($map)->select(); foreach($data_list as $k => $v){ $data_list[$k]['order_status_name'] = $order_status_list[$v['order_status']]['name']; } $this->assign('data_list', $data_list); break; default:
转载于:https://blog.51cto.com/tianyu1102/1752790