Browse Source

时间

master
lemon 5 years ago
parent
commit
588407f6f8
  1. 2
      app/Admin/Metrics/Examples/AgentStatistics.php
  2. 2
      app/Admin/Metrics/Examples/OrderStatistics.php
  3. 2
      app/Admin/Metrics/Examples/ProductStatistics.php
  4. 2
      app/Admin/Metrics/Examples/SupplierStatistics.php
  5. 2
      app/AdminAgent/Metrics/Examples/FinanceStatistics.php
  6. 2
      app/AdminAgent/Metrics/Examples/OrderStatistics.php
  7. 2
      app/AdminAgent/Metrics/Examples/ProductStatistics.php
  8. 2
      app/AdminSupplier/Metrics/Examples/FinanceStatistics.php
  9. 2
      app/AdminSupplier/Metrics/Examples/OrderStatistics.php
  10. 2
      app/AdminSupplier/Metrics/Examples/ProductStatistics.php

2
app/Admin/Metrics/Examples/AgentStatistics.php

@ -77,7 +77,7 @@ class AgentStatistics extends Chart
$dateTime = request('created_at', 0);
if ($dateTime) {
$query->whereBetween('created_at',$dateTime);
$query->whereBetween('created_at',[$dateTime['start'] . ' 00:00:00',$dateTime['end'].' 23:59:59']);
}
switch (request('time_key', 0)) {

2
app/Admin/Metrics/Examples/OrderStatistics.php

@ -74,7 +74,7 @@ class OrderStatistics extends Chart
$dateTime = request('created_at', 0);
if ($dateTime) {
$query->whereBetween('created_at',$dateTime);
$query->whereBetween('created_at',[$dateTime['start'] . ' 00:00:00',$dateTime['end'].' 23:59:59']);
}
switch (request('time_key', 0)) {

2
app/Admin/Metrics/Examples/ProductStatistics.php

@ -70,7 +70,7 @@ class ProductStatistics extends Chart
->select('*');
$dateTime = request('created_at', 0);
if ($dateTime) {
$query->whereBetween('created_at',$dateTime);
$query->whereBetween('created_at',[$dateTime['start'] . ' 00:00:00',$dateTime['end'].' 23:59:59']);
}
switch (request('time_key', 0)) {
case '1':

2
app/Admin/Metrics/Examples/SupplierStatistics.php

@ -78,7 +78,7 @@ class SupplierStatistics extends Chart
$dateTime = request('created_at', 0);
if ($dateTime) {
$query->whereBetween('created_at',$dateTime);
$query->whereBetween('created_at',[$dateTime['start'] . ' 00:00:00',$dateTime['end'].' 23:59:59']);
}
switch (request('time_key', 0)) {

2
app/AdminAgent/Metrics/Examples/FinanceStatistics.php

@ -76,7 +76,7 @@ class FinanceStatistics extends Chart
$dateTime = request('created_at', 0);
if ($dateTime) {
$query->whereBetween('created_at',$dateTime);
$query->whereBetween('created_at',[$dateTime['start'] . ' 00:00:00',$dateTime['end'].' 23:59:59']);
}
switch (request('time_key', 0)) {

2
app/AdminAgent/Metrics/Examples/OrderStatistics.php

@ -75,7 +75,7 @@ class OrderStatistics extends Chart
$dateTime = request('created_at', 0);
if ($dateTime) {
$query->whereBetween('created_at',$dateTime);
$query->whereBetween('created_at',[$dateTime['start'] . ' 00:00:00',$dateTime['end'].' 23:59:59']);
}
switch (request('time_key', 0)) {

2
app/AdminAgent/Metrics/Examples/ProductStatistics.php

@ -71,7 +71,7 @@ class ProductStatistics extends Chart
->select('*');
$dateTime = request('created_at', 0);
if ($dateTime) {
$query->whereBetween('created_at',$dateTime);
$query->whereBetween('created_at',[$dateTime['start'] . ' 00:00:00',$dateTime['end'].' 23:59:59']);
}
switch (request('time_key', 0)) {
case '1':

2
app/AdminSupplier/Metrics/Examples/FinanceStatistics.php

@ -79,7 +79,7 @@ class FinanceStatistics extends Chart
$dateTime = request('created_at', 0);
if ($dateTime) {
$query->whereBetween('created_at',$dateTime);
$query->whereBetween('created_at',[$dateTime['start'] . ' 00:00:00',$dateTime['end'].' 23:59:59']);
}
switch (request('time_key', 0)) {

2
app/AdminSupplier/Metrics/Examples/OrderStatistics.php

@ -76,7 +76,7 @@ class OrderStatistics extends Chart
$dateTime = request('created_at', 0);
if ($dateTime) {
$query->whereBetween('created_at',$dateTime);
$query->whereBetween('created_at',[$dateTime['start'] . ' 00:00:00',$dateTime['end'].' 23:59:59']);
}
switch (request('time_key', 0)) {

2
app/AdminSupplier/Metrics/Examples/ProductStatistics.php

@ -72,7 +72,7 @@ class ProductStatistics extends Chart
->select('*');
$dateTime = request('created_at', 0);
if ($dateTime) {
$query->whereBetween('created_at',$dateTime);
$query->whereBetween('created_at',[$dateTime['start'] . ' 00:00:00',$dateTime['end'].' 23:59:59']);
}
switch (request('time_key', 0)) {
case '1':

Loading…
Cancel
Save