|
@@ -57,7 +57,8 @@ class WechatPlanRecord extends Model
|
|
|
$xwhere = null;
|
|
|
$order = "id desc";
|
|
|
if (isset($where['id']) && $where['id'] > 0) $xwhere['id'] = $where['id'];
|
|
|
-
|
|
|
+ if (isset($where['cid']) && $where['cid'] > 0) $xwhere['cid'] = $where['cid'];
|
|
|
+ if (isset($where['uid']) && $where['uid'] > 0) $xwhere['uid'] = $where['uid'];
|
|
|
|
|
|
$data = $model->where($xwhere)->where('is_signing',0)->order($order)->select();
|
|
|
$count = $model->where($xwhere)->count();
|