...
|
...
|
@@ -243,7 +243,9 @@ class MemberSalesController extends HomeBaseController |
|
|
if(!$id) {
|
|
|
$this->redirect(url('portal/MemberSales/order_type'));
|
|
|
}
|
|
|
$user_id = cmf_get_current_user_sale_id();
|
|
|
$order_where = [
|
|
|
'o.user_id' => $user_id,
|
|
|
'o.is_stop' => 0,
|
|
|
'o.delete_time' => 0
|
|
|
];
|
...
|
...
|
@@ -267,6 +269,7 @@ class MemberSalesController extends HomeBaseController |
|
|
public function choosetime_detail() {
|
|
|
if($this->request->isAjax()) {
|
|
|
$date = $this->request->param('date');
|
|
|
$sort_id = $this->request->param('sort_id');
|
|
|
$user_id = cmf_get_current_user_sale_id();
|
|
|
$order_where = [
|
|
|
'o.user_id' => $user_id,
|
...
|
...
|
@@ -281,8 +284,8 @@ class MemberSalesController extends HomeBaseController |
|
|
->where($order_where)
|
|
|
->select();
|
|
|
foreach ($orderList as $k=>$v) {
|
|
|
$orderList[$k]['detail_url'] = url('detail',['id'=>$v['id']]);
|
|
|
$orderList[$k]['edit_url'] = url('edit',['id'=>$v['id']]);
|
|
|
$orderList[$k]['detail_url'] = url('detail',['id'=>$sort_id,'order_id'=>$v['id']]);
|
|
|
$orderList[$k]['edit_url'] = url('edit',['id'=>$sort_id,'order_id'=>$v['id']]);
|
|
|
$orderList[$k]['create_time'] = date('Y-m-d',$v['create_time']);
|
|
|
}
|
|
|
$this->success('成功',strtotime($date),$orderList);
|
...
|
...
|
|