|
...
|
...
|
@@ -151,7 +151,7 @@ class ComController extends BaseController |
|
|
|
$currentDateTime = Carbon::now();
|
|
|
|
$startTime = $currentDateTime->subMonth()->startOfMonth()->toDateString();
|
|
|
|
// 获取上个月的结束时间
|
|
|
|
$endTime = $currentDateTime->subMonth()->endOfMonth()->toDateString();
|
|
|
|
$endTime = $startTime->copy()->endOfMonth()->toDateString();
|
|
|
|
$pv = DB::table('gl_count')
|
|
|
|
->where(['project_id'=>1])
|
|
|
|
->where('date','>=',$startTime.' 00:00:00')
|
...
|
...
|
|