From c4512cffe82363e9cbade38c4baaf0ff7a1040c9 Mon Sep 17 00:00:00 2001 From: LEE Wei Cheng Date: Sat, 7 Oct 2023 18:54:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0Ticket=5FType=20=E5=8F=AA?= =?UTF-8?q?=E8=A6=81=E4=B8=8D=E6=98=AF3=E9=83=BD=E5=8F=AF=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E6=9F=A5=E8=A9=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/Carpayment_model.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models/Carpayment_model.php b/models/Carpayment_model.php index 106383f..578785a 100644 --- a/models/Carpayment_model.php +++ b/models/Carpayment_model.php @@ -530,8 +530,7 @@ class Carpayment_model extends CI_Model $result = $this->db->select("in_time, date_format(pay_time, '%Y/%m/%d %T') as pay_time, in_pic_name, member_no, station_no") ->from('cario') - ->where(array('obj_type' => 1, 'obj_id' => $lpr, 'finished' => 0, 'err' => 0)) - ->or_where('ticket_type !=', 3) + ->where(array('obj_type' => 1, 'obj_id' => $lpr, 'finished' => 0, 'err' => 0, 'ticket_type !=', 3)) ->order_by('cario_no', 'desc') ->limit(1) ->get()