edit-liche-order

This commit is contained in:
lccsw
2022-09-19 20:43:27 +08:00
parent cf98a1e59f
commit 932b0524a3
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -216,7 +216,7 @@ class Order extends Wxapp{
$agree = $this->receiver_order_contracts_model->count(['o_id'=>$val['o_id'],'status'=>1]) ? true : false;
$contract_list = [];
if($agree){
$contracts = $this->receiver_order_contracts_model->select(['o_id'=>$val['o_id'],'status'=>1],'','','','id,type,file');
$contracts = $this->receiver_order_contracts_model->select(['o_id'=>$val['o_id'],'status'=>1,'type <> 6' => null],'','','','id,type,file');
foreach ($contracts as $item) {
$contract_list[] = [
'title' => $contract_type_arr[$item['type']],
+1 -1
View File
@@ -380,7 +380,7 @@ class User extends Wxapp{
$mobile = $this->session['mobile'];
$where = [
"(mobile={$mobile} or owner_name={$mobile})" => null,
"(mobile={$mobile} or owner_mobile={$mobile})" => null,
"status" => 1,
];
$count = $this->receiver_orders_v2_model->count($where);