正在显示
1 个修改的文件
包含
14 行增加
和
10 行删除
@@ -251,17 +251,21 @@ class MemberSalesController extends HomeBaseController | @@ -251,17 +251,21 @@ class MemberSalesController extends HomeBaseController | ||
251 | } | 251 | } |
252 | $user_id = cmf_get_current_user_sale_id(); | 252 | $user_id = cmf_get_current_user_sale_id(); |
253 | $order_where = [ | 253 | $order_where = [ |
254 | - 'o.user_id' => $user_id, | ||
255 | - 'o.is_stop' => 0, | ||
256 | - 'o.delete_time' => 0 | 254 | + 'user_id' => $user_id, |
255 | + 'is_stop' => 0, | ||
256 | + 'delete_time' => 0 | ||
257 | ]; | 257 | ]; |
258 | - $orderList = $this->order_model | ||
259 | - ->alias('o') | ||
260 | - ->field(['o.id,o.order_sn,o.status,o.create_time,o.over_time,os.name']) | ||
261 | - ->join('__ORDER_SORT__ os','o.sort_id = os.id') | ||
262 | - ->where($order_where) | ||
263 | - ->order(['create_time'=>'DESC']) | ||
264 | - ->select(); | 258 | + $orderList = Db::name('OrderView')->where($order_where)->select()->toArray(); |
259 | + foreach ($orderList as $k=>$v) { | ||
260 | + $mobile = ''; | ||
261 | + $v['options'] = json_decode($v['options'],true); | ||
262 | + foreach ($v['options'] as $ko=>$vo) { | ||
263 | + if($vo['id'] == 10) { | ||
264 | + $mobile = $vo['user_choose']; | ||
265 | + } | ||
266 | + } | ||
267 | + $orderList[$k]['mobile'] = $mobile; | ||
268 | + } | ||
265 | $this->assign('sort_id',$id); | 269 | $this->assign('sort_id',$id); |
266 | $this->assign('orderUrl',url('portal/MemberSales/write',['id'=>$id])); | 270 | $this->assign('orderUrl',url('portal/MemberSales/write',['id'=>$id])); |
267 | $this->assign('orderList',$orderList); | 271 | $this->assign('orderList',$orderList); |
-
请 注册 或 登录 后发表评论