|
@@ -398,8 +398,8 @@ class StatisticService extends Service
|
|
|
$item = Item::Clear($user, $data);
|
|
$item = Item::Clear($user, $data);
|
|
|
$item_list = $item->where('del_time', 0)
|
|
$item_list = $item->where('del_time', 0)
|
|
|
->where(function ($query) use ($month_start, $month_end) {
|
|
->where(function ($query) use ($month_start, $month_end) {
|
|
|
- $query->where('start_time', '>=', $month_start)
|
|
|
|
|
- ->orWhere('end_time', '<=', $month_end);
|
|
|
|
|
|
|
+ $query->where('start_time', '<=', $month_start)
|
|
|
|
|
+ ->orWhere('end_time', '>=', $month_end);
|
|
|
})->select("code", "title", "start_time", "end_time", "id", "state")->orderby("start_time","asc")->get()->toArray();
|
|
})->select("code", "title", "start_time", "end_time", "id", "state")->orderby("start_time","asc")->get()->toArray();
|
|
|
$item_key_list = [];
|
|
$item_key_list = [];
|
|
|
foreach ($item_list as $v) {
|
|
foreach ($item_list as $v) {
|