正在显示
1 个修改的文件
包含
14 行增加
和
3 行删除
| @@ -131,9 +131,18 @@ class Business extends Base | @@ -131,9 +131,18 @@ class Business extends Base | ||
| 131 | *3、核销页面的核销记录 单条 | 131 | *3、核销页面的核销记录 单条 |
| 132 | */ | 132 | */ |
| 133 | public function getverification_cancel(){ | 133 | public function getverification_cancel(){ |
| 134 | - $where["verification_store_id"] = ["=", $this->store_id]; | ||
| 135 | - $where["verification_staff_id"] = ["=", $this->staff_id]; | ||
| 136 | - $cancel=Db::name('verification_cancel')->where($where)->find(); | 134 | + $where["a.verification_store_id"] = ["=", $this->store_id]; |
| 135 | + $where["a.verification_staff_id"] = ["=", $this->staff_id]; | ||
| 136 | + $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"; | ||
| 137 | + $cancel=Db::name('verification_cancel') | ||
| 138 | + ->alias('a') | ||
| 139 | + ->join('verification_staff b','a.verification_staff_id=b.id') | ||
| 140 | + ->join('verification_receive c','a.verification_receive_id=c.id') | ||
| 141 | + ->join('verification_coupon d','c.verification_coupon_id=d.id') | ||
| 142 | + ->field($field) | ||
| 143 | + ->join('user e','c.user_id=e.id') | ||
| 144 | + ->where($where) | ||
| 145 | + ->find(); | ||
| 137 | $this->success('查询成功',$cancel); | 146 | $this->success('查询成功',$cancel); |
| 138 | 147 | ||
| 139 | } | 148 | } |
| @@ -236,6 +245,8 @@ class Business extends Base | @@ -236,6 +245,8 @@ class Business extends Base | ||
| 236 | $order['receive'][$key]['image']=$this->imgUrl.$order['receive'][$key]['image']; | 245 | $order['receive'][$key]['image']=$this->imgUrl.$order['receive'][$key]['image']; |
| 237 | } | 246 | } |
| 238 | } | 247 | } |
| 248 | + $order['image']=$this->imgUrl.$order['image']; | ||
| 249 | + | ||
| 239 | $this->success("查询成功",$order); | 250 | $this->success("查询成功",$order); |
| 240 | }else{ | 251 | }else{ |
| 241 | $this->error("查询失败"); | 252 | $this->error("查询失败"); |
-
请 注册 或 登录 后发表评论