fixed tr list query
This commit is contained in:
@@ -7,7 +7,7 @@ if ($user->has_authority(1)) {
|
|||||||
substring(tr_date,1,16) 'date',
|
substring(tr_date,1,16) 'date',
|
||||||
trt_name 'name',
|
trt_name 'name',
|
||||||
GROUP_CONCAT(DISTINCT ua_name) 'coaches',
|
GROUP_CONCAT(DISTINCT ua_name) 'coaches',
|
||||||
COUNT(pr_id) 'count'
|
COUNT(DISTINCT pr_id) 'count'
|
||||||
FROM
|
FROM
|
||||||
training
|
training
|
||||||
JOIN
|
JOIN
|
||||||
@@ -31,7 +31,7 @@ else {
|
|||||||
substring(tr_date,1,16) 'date',
|
substring(tr_date,1,16) 'date',
|
||||||
trt_name 'name',
|
trt_name 'name',
|
||||||
GROUP_CONCAT(DISTINCT ua_name) 'coaches',
|
GROUP_CONCAT(DISTINCT ua_name) 'coaches',
|
||||||
COUNT(pr_id) 'count'
|
COUNT(DISTINCT pr_id) 'count'
|
||||||
FROM
|
FROM
|
||||||
training
|
training
|
||||||
JOIN
|
JOIN
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ if ($user->has_authority(1)) {
|
|||||||
substring(tr_date,1,16) 'date',
|
substring(tr_date,1,16) 'date',
|
||||||
trt_name 'name',
|
trt_name 'name',
|
||||||
GROUP_CONCAT(DISTINCT ua_name) 'coaches',
|
GROUP_CONCAT(DISTINCT ua_name) 'coaches',
|
||||||
COUNT(pr_id) 'count'
|
COUNT(DISTINCT pr_id) 'count'
|
||||||
FROM
|
FROM
|
||||||
training
|
training
|
||||||
JOIN
|
JOIN
|
||||||
@@ -31,7 +31,7 @@ else {
|
|||||||
substring(tr_date,1,16) 'date',
|
substring(tr_date,1,16) 'date',
|
||||||
trt_name 'name',
|
trt_name 'name',
|
||||||
GROUP_CONCAT(DISTINCT ua_name) 'coaches',
|
GROUP_CONCAT(DISTINCT ua_name) 'coaches',
|
||||||
COUNT(pr_id) 'count'
|
COUNT(DISTINCT pr_id) 'count'
|
||||||
FROM
|
FROM
|
||||||
training
|
training
|
||||||
JOIN
|
JOIN
|
||||||
|
|||||||
Reference in New Issue
Block a user