|
@@ -341,9 +341,16 @@ class Member extends Controller
|
|
|
public function shoucang(){
|
|
|
$id=$this->request->get('id');
|
|
|
$hash_send=$this->request->get('hash_send');
|
|
|
- echo $hash_send;
|
|
|
$this->title = Db::name($this->table)->where('id',$id)->value('name').'--收藏明细';
|
|
|
- $query = $this->_query('store_order_info')->where('mid',$id)->whereIn('status','1,3');
|
|
|
+ $query = $this->_query('store_order_info')
|
|
|
+ ->where('mid',$id)->whereIn('status','1,3');
|
|
|
+ if ($hash_send){
|
|
|
+ if ($hash_send==1){
|
|
|
+ $query->where('collectors_hash','neq','');
|
|
|
+ }else if ($hash_send==2){
|
|
|
+ $query->where('collectors_hash','eq','');
|
|
|
+ }
|
|
|
+ }
|
|
|
$query->dateBetween('create_at')->order('id desc')->page();
|
|
|
$this->fetch();
|
|
|
}
|