|
@@ -21,9 +21,11 @@ class HouseKeepingController extends JBaseController
|
|
|
// id筛选
|
|
|
if ($id) {
|
|
|
$criteria->user_id('==', new MongoId($id));
|
|
|
+ $je = JEmploye::get(new MongoId($id));
|
|
|
+ $criteria->store_id('==', $je->owned_stores);
|
|
|
}
|
|
|
- $je = JEmploye::get(new MongoId($id));
|
|
|
- $criteria->store_id('==', $je->owned_stores);
|
|
|
+
|
|
|
+ $criteria->store_id('==', $store_id);
|
|
|
|
|
|
$cursor = HouseKeeping::model()->findAll($criteria);
|
|
|
$rows = CommonFn::getRowsFromCursor($cursor);
|