正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -150,12 +150,13 @@ class Business extends Base | @@ -150,12 +150,13 @@ class Business extends Base | ||
150 | $where['c.receive_no'] =['like', '%' . $keyfield . '%']; | 150 | $where['c.receive_no'] =['like', '%' . $keyfield . '%']; |
151 | $where['e.mobile'] = ['like', '%' . $keyfield . '%']; | 151 | $where['e.mobile'] = ['like', '%' . $keyfield . '%']; |
152 | } | 152 | } |
153 | - $field = "a.id,a.createtime,b.name,d.name as coupon_name,c.type"; | 153 | + $field = "a.id,a.createtime,b.name,d.name as coupon_name,c.type,DATE_FORMAT(FROM_UNIXTIME(c.closetime), '%Y-%m-%d %H:%i:%S') AS closetime,c.type,c.receive_no"; |
154 | $cancel=Db::name('verification_cancel') | 154 | $cancel=Db::name('verification_cancel') |
155 | ->alias('a') | 155 | ->alias('a') |
156 | ->join('verification_staff b','a.verification_staff_id=b.id') | 156 | ->join('verification_staff b','a.verification_staff_id=b.id') |
157 | ->join('verification_receive c','a.verification_receive_id=c.id') | 157 | ->join('verification_receive c','a.verification_receive_id=c.id') |
158 | ->join('verification_coupon d','c.verification_coupon_id=d.id') | 158 | ->join('verification_coupon d','c.verification_coupon_id=d.id') |
159 | + ->field($field) | ||
159 | ->join('user e','c.user_id=e.id') | 160 | ->join('user e','c.user_id=e.id') |
160 | ->where($where) | 161 | ->where($where) |
161 | ->paginate($total, false, ['page' => $page]) | 162 | ->paginate($total, false, ['page' => $page]) |
-
请 注册 或 登录 后发表评论