...
|
...
|
@@ -27,6 +27,7 @@ class OrderController extends AdminBaseController |
|
|
$this->order_model = new OrderModel();
|
|
|
$this->option_table = 'OrderOption';
|
|
|
$this->order_sort_table = 'OrderSort';
|
|
|
parent::_initialize();
|
|
|
|
|
|
// 订单字段类型定义
|
|
|
$this->sort_model[1] = '<div class="text_item form_options" data-validate="{validate}">
|
...
|
...
|
@@ -106,11 +107,12 @@ class OrderController extends AdminBaseController |
|
|
$where = [
|
|
|
'delete_time'=>0
|
|
|
];
|
|
|
if(isset($param['parent_name'])) {
|
|
|
$parent_name = '{"id":"46","type":"1","status":"0","checked":"1","values":"","user_choose":"'.$param['parent_name'].'"}';
|
|
|
$where['options'] = ['like','%'.$parent_name.'%'];
|
|
|
if(!empty($param['parent_name'])) {
|
|
|
// $parent_name = unicode_encode($param['parent_name']);
|
|
|
// $parent_name = '"{"id":"46","type":"1","status":"0","checked":"1","values":"","user_choose":"'.$parent_name.'"}';
|
|
|
$where['parent_name'] = ['like','%'.$param['parent_name'].'%'];
|
|
|
}
|
|
|
if(isset($param['mobile'])) {
|
|
|
if(!empty($param['mobile'])) {
|
|
|
$mobile = '{"id":"49","type":"3","status":"0","checked":"1","values":"","user_choose":"'.$param['mobile'].'"}';
|
|
|
$where['options'] = ['like','%'.$mobile.'%'];
|
|
|
}
|
...
|
...
|
@@ -167,6 +169,9 @@ class OrderController extends AdminBaseController |
|
|
$orderList[$k]['mobile'] = $vo['user_choose'];
|
|
|
}
|
|
|
}
|
|
|
if(!empty($orderList[$k]['parent_name'])) {
|
|
|
Db::name('order')->update(['id'=>$v['id'],'parent_name'=>$orderList[$k]['parent_name']]);
|
|
|
}
|
|
|
}
|
|
|
$list->appends($param);
|
|
|
$this->assign('list',$orderList);
|
...
|
...
|
|