This commit is contained in:
xiaoyu
2024-12-12 17:45:42 +08:00
parent 6452f23de8
commit 3c8e6badec
+8 -10
View File
@@ -113,20 +113,18 @@ class OrdersList
}
//是否有合同
$order_time[0] && $where_od['u_time >='] = $order_time[0] . ' 00:00:00';
if ($params['iscontract'] == 1) {
if ($params['iscontract']) {
$where_od['contract_img <>'] = '';
}
if ($params['iscontract'] == 2) {
$where_od['contract_img'] = '';
}
if(count($where_od) > 0){
$order_time[0] && $where_od['u_time >='] = $order_time[0] . ' 00:00:00';
$rows_od = $this->ci->mdOrderData->select($where_od, '', 0, 0, 'o_id');
if ($rows_od) {
$str_ids = implode(',', array_column($rows_od, 'o_id'));
$rows_od && $str_ids = implode(',', array_column($rows_od, 'o_id'));
if($params['iscontract'] == 1){
$where["id in({$str_ids})"] = null;
}else{
$where["id not in({$str_ids})"] = null;
}
}
//是否开票