...
|
...
|
@@ -329,6 +329,15 @@ class Business extends Base |
|
|
*/
|
|
|
public function userstaff(){
|
|
|
$store_id=$this->store_id;
|
|
|
//通过门店id查询到活动
|
|
|
$time=time();
|
|
|
$where["verification_store_id"] = ["=", $this->store_id];
|
|
|
$activity=Db::name('verification_activity')
|
|
|
->alias('a')
|
|
|
->join('verification_store b','a.verification_store_id=b.id')
|
|
|
->field('a.*,b.address,b.name,b.phone')
|
|
|
->where($where)->find();
|
|
|
|
|
|
//查询员工
|
|
|
$page = $this->request->post('page', 1);
|
|
|
$total = $this->request->post('total', 10);
|
...
|
...
|
@@ -337,6 +346,8 @@ class Business extends Base |
|
|
->where($where)
|
|
|
->paginate($total, false, ['page' => $page])
|
|
|
->toArray();
|
|
|
$staff['activity_name']=$activity['title'];
|
|
|
$staff['staff_name']=$activity['name'];
|
|
|
$this->success("查询成功",$staff);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -419,6 +430,14 @@ class Business extends Base |
|
|
public function red_packet(){
|
|
|
$store_id=$this->store_id;
|
|
|
$user_id = $this->auth->id;
|
|
|
//通过门店id查询到活动
|
|
|
$time=time();
|
|
|
$where["verification_store_id"] = ["=", $this->store_id];
|
|
|
$activity=Db::name('verification_activity')
|
|
|
->alias('a')
|
|
|
->join('verification_store b','a.verification_store_id=b.id')
|
|
|
->field('a.*,b.address,b.name,b.phone')
|
|
|
->where($where)->find();
|
|
|
|
|
|
//参数
|
|
|
$param = request()->param();
|
...
|
...
|
@@ -436,7 +455,8 @@ class Business extends Base |
|
|
$item['send_result'] = $item['send_result'] == 1?'成功':'失败';
|
|
|
return $item;
|
|
|
});
|
|
|
|
|
|
$rows['activity_name']=$activity['title'];
|
|
|
$rows['staff_name']=$activity['name'];
|
|
|
$this->success("查询成功",$rows);
|
|
|
}
|
|
|
|
...
|
...
|
|