edit-api-business

This commit is contained in:
lccsw
2022-04-01 10:03:18 +08:00
parent be66e2c68d
commit aed4c8beb8
3 changed files with 5 additions and 6 deletions
@@ -64,7 +64,7 @@ class Orders extends HD_Controller
if($key2){
$where_s = [];
$key==1 && $where_s["{$t1}.payway"] = 0;//分期
$key==3 && $where_s["{$t1}.id in (select o_id from lc_app_liche_orders where status=1 group by o_id)"] = null;
$key==3 && $where_s["{$t1}.id in (select o_id from lc_receiver_order_status where pid_status=0 and status=2)"] = null;
if($key2){
$where_s["{$t2}.pid_status"] = $value['pid_status'];
$up_key = $key2+1;
@@ -77,7 +77,7 @@ class Orders extends HD_Controller
"id not in (select o_id from lc_receiver_order_status where pid_status={$value['pid_status']} and status=1)" => null
];
$key==1 && $where_s['payway'] = 0;
$key==3 && $where_s['id in (select o_id from lc_app_liche_orders where status=1 group by o_id)'] = null;
$key==3 && $where_s['id in (select o_id from lc_receiver_order_status where pid_status=0 and status=2)'] = null;
$where_s = array_merge($where,$where_s);
$count2 = $this->receiver_orders_v2_model->count($where_s);
}
+1 -1
View File
@@ -193,7 +193,7 @@ class Ordersv2List
{$this->t1}.cor_id,{$this->t1}.incor_id,{$this->t1}.money_json,{$this->t1}.payway,{$this->t1}.status,{$this->t1}.c_time,
{$this->t1}.biz_id,{$this->t1}.bill_time,{$this->t1}.customer_id,{$this->t1}.owner_name,{$this->t1}.owner_mobile,{$this->t1}.main_type,{$this->t1}.info_json";
if($params['status_pid']==3){
$where["{$this->t1}.id in (select o_id from lc_app_liche_orders where status=1 group by o_id)"] = null;
$where["{$this->t1}.id in (select o_id from lc_receiver_order_status where pid_status=0 and status=2)"] = null;
}
if(strlen($params['status_pid'])){
$where["{$this->t1}.id>="] = Orders_v2_entity::V2_START_ID;
+2 -3
View File
@@ -35,10 +35,9 @@ class Business extends Wxapp{
'status'=>1,
'if_effect'=>1,
'city_id'=>$city_id,
'year' => date('Y'),
'month' => intval(date('m'))
];
$row = $this->auto_business_model->get($where);
$rows = $this->auto_business_model->select($where,'id desc',1,1);
$row = $rows[0];
if(!$row){
throw new Exception('当前地区不支持销售该车型', API_CODE_FAIL);
}