|
|
@@ -60,6 +60,14 @@ class AccountLogLists extends BaseShopDataLists
|
|
|
if(isset($this->params['type']) && $this->params['type'] == 'integral') {
|
|
|
$this->searchWhere[] = ['change_type', 'in', AccountLogEnum::getIntegralChangeType()];
|
|
|
}
|
|
|
+
|
|
|
+ // 按日期查询
|
|
|
+ if(isset($this->params['search_date']) && $this->params['search_date'] <> '') {
|
|
|
+
|
|
|
+ $start_date = strtotime($this->params['search_date'].'-01 00:00:00');
|
|
|
+ $end_date = strtotime(date('Y-m-t 23:59:59', $start_date)); // 获取当月最后一天
|
|
|
+ $this->searchWhere[] = ['create_time', 'between', [$start_date,$end_date]];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|