|
|
@@ -39,7 +39,13 @@ class AwardIntegralPriceDao extends BaseDao
|
|
|
|
|
|
public function search($where)
|
|
|
{
|
|
|
- return $this->getModel()::getDB()->where($where);
|
|
|
+// return $this->getModel()::getDB()->where($where);
|
|
|
+ $query = $this->getModel()::getDB()
|
|
|
+ ->when(isset($where['day']) && $where['day'] !== '',function($query) use($where){
|
|
|
+ $query->where('day',$where['day']);
|
|
|
+ });
|
|
|
+ $query->order('create_time DESC');
|
|
|
+ return $query;
|
|
|
}
|
|
|
|
|
|
}
|