Merge branch '162-phase-2-changes' into 'master'

Fix bug in rider report command #162

Closes #162

See merge request jankstudio/resq!195
This commit is contained in:
Kendrick Chan 2018-09-28 02:31:59 +00:00
commit ba3b52c4cc
2 changed files with 46 additions and 2 deletions

View file

@ -42,8 +42,8 @@ class ReportRiderTime extends Command
{
$jo_events = $this->em->createQuery("select e from App\Entity\JOEvent e where e.date_create >= :dfrom and e.date_create <= :dto")
->setParameters([
'dfrom' => '20180805',
'dto' => '20180920',
'dfrom' => $date_from,
'dto' => $date_to,
])
->getResult();
// $jo_events = $this->em->getRepository(JOEvent::class)->findBy('date_create' => '20180905');

44
test.csv Normal file
View file

@ -0,0 +1,44 @@
42529,2018-07-01,1153,2192484
42641,2018-07-01,415,2183083
42663,2018-07-02,66434,2112767
42676,2018-07-01,704,2176744
42682,2018-07-01,1107,2175408
42706,2018-07-01,267,2174225
42740,2018-07-01,110,2170413
42830,2018-07-01,436,2157155
42842,2018-07-01,1825,2154668
42849,2018-07-01,1212,2154635
42851,2018-07-01,1037,2154361
42853,2018-07-01,1393,2153400
42854,2018-07-01,2064,2152743
42855,2018-07-01,1572,2153397
42869,2018-07-01,2254,2150063
42890,2018-07-01,2248,2145553
42924,2018-07-02,527,2120701
42957,2018-07-02,492,2115493
42965,2018-07-02,658,2114768
42976,2018-07-02,1567,2112955
42986,2018-07-02,1581,2111568
43007,2018-07-03,23,2110913
43015,2018-07-02,26,2110314
43016,2018-07-02,1351,2108941
43029,2018-07-02,19,2109379
43059,2018-07-02,663,2105625
43064,2018-07-02,1158,2104936
43087,2018-07-02,879,2103604
43090,2018-07-02,3262391,149
43095,2018-07-02,20,2103769
43098,2018-07-02,699,2102901
43119,2018-07-02,882,2101362
43144,2018-07-02,18,2099984
43184,2018-07-02,513,5979
43189,2018-07-02,676,2095027
43203,2018-07-02,20,2094155
43253,2018-07-02,2032,2086495
43293,2018-07-02,360,2084449
43306,2018-07-02,347,2082735
43321,2018-07-02,193,2081589
31695,2018-06-11,2083033,109687
43345,2018-08-13,58,10
43346,2018-08-15,24,42
43347,2018-08-15,20,30
1 42529 2018-07-01 1153 2192484
2 42641 2018-07-01 415 2183083
3 42663 2018-07-02 66434 2112767
4 42676 2018-07-01 704 2176744
5 42682 2018-07-01 1107 2175408
6 42706 2018-07-01 267 2174225
7 42740 2018-07-01 110 2170413
8 42830 2018-07-01 436 2157155
9 42842 2018-07-01 1825 2154668
10 42849 2018-07-01 1212 2154635
11 42851 2018-07-01 1037 2154361
12 42853 2018-07-01 1393 2153400
13 42854 2018-07-01 2064 2152743
14 42855 2018-07-01 1572 2153397
15 42869 2018-07-01 2254 2150063
16 42890 2018-07-01 2248 2145553
17 42924 2018-07-02 527 2120701
18 42957 2018-07-02 492 2115493
19 42965 2018-07-02 658 2114768
20 42976 2018-07-02 1567 2112955
21 42986 2018-07-02 1581 2111568
22 43007 2018-07-03 23 2110913
23 43015 2018-07-02 26 2110314
24 43016 2018-07-02 1351 2108941
25 43029 2018-07-02 19 2109379
26 43059 2018-07-02 663 2105625
27 43064 2018-07-02 1158 2104936
28 43087 2018-07-02 879 2103604
29 43090 2018-07-02 3262391 149
30 43095 2018-07-02 20 2103769
31 43098 2018-07-02 699 2102901
32 43119 2018-07-02 882 2101362
33 43144 2018-07-02 18 2099984
34 43184 2018-07-02 513 5979
35 43189 2018-07-02 676 2095027
36 43203 2018-07-02 20 2094155
37 43253 2018-07-02 2032 2086495
38 43293 2018-07-02 360 2084449
39 43306 2018-07-02 347 2082735
40 43321 2018-07-02 193 2081589
41 31695 2018-06-11 2083033 109687
42 43345 2018-08-13 58 10
43 43346 2018-08-15 24 42
44 43347 2018-08-15 20 30