...
|
...
|
@@ -131,9 +131,18 @@ class Business extends Base |
|
|
*3、核销页面的核销记录 单条
|
|
|
*/
|
|
|
public function getverification_cancel(){
|
|
|
$where["verification_store_id"] = ["=", $this->store_id];
|
|
|
$where["verification_staff_id"] = ["=", $this->staff_id];
|
|
|
$cancel=Db::name('verification_cancel')->where($where)->find();
|
|
|
$where["a.verification_store_id"] = ["=", $this->store_id];
|
|
|
$where["a.verification_staff_id"] = ["=", $this->staff_id];
|
|
|
$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";
|
|
|
$cancel=Db::name('verification_cancel')
|
|
|
->alias('a')
|
|
|
->join('verification_staff b','a.verification_staff_id=b.id')
|
|
|
->join('verification_receive c','a.verification_receive_id=c.id')
|
|
|
->join('verification_coupon d','c.verification_coupon_id=d.id')
|
|
|
->field($field)
|
|
|
->join('user e','c.user_id=e.id')
|
|
|
->where($where)
|
|
|
->find();
|
|
|
$this->success('查询成功',$cancel);
|
|
|
|
|
|
}
|
...
|
...
|
@@ -236,6 +245,8 @@ class Business extends Base |
|
|
$order['receive'][$key]['image']=$this->imgUrl.$order['receive'][$key]['image'];
|
|
|
}
|
|
|
}
|
|
|
$order['image']=$this->imgUrl.$order['image'];
|
|
|
|
|
|
$this->success("查询成功",$order);
|
|
|
}else{
|
|
|
$this->error("查询失败");
|
...
|
...
|
|