| xqd
@@ -121,7 +121,7 @@ class SpecialBuy extends ModelBasic
|
|
|
$join = [
|
|
|
['PlanBuy pb', "pb.planid = pt.pid and pb.uid=" . $uid, 'inner']
|
|
|
];
|
|
|
- $planItems = PlanItems::alias('pt')->join($join)->where(['pt.cid'=>$special_id])->select();
|
|
|
+ $planItems = PlanItems::alias('pt')->join($join)->where(['pt.cid'=>$special_id])->count();
|
|
|
$flag = $planItems ? true : false;
|
|
|
}
|
|
|
return $flag;
|