dashboard issues

This commit is contained in:
gandhimathi 2018-10-30 19:48:01 +05:30
parent 165b836271
commit 7f707f16dd

View File

@ -707,7 +707,7 @@ public function leadCountMonth($branchId = null, $requestedBy = null){
SUM(IF((MONTH(std.CreatedOn) = 3), 1, 0)) AS March,
SUM(IF((MONTH(std.CreatedOn) = 4), 1, 0)) AS April,
SUM(IF((MONTH(std.CreatedOn) = 5), 1, 0)) AS May,
COUNT(DISTINCT std.StudentID) AS total,
COUNT( std.StudentID) AS total,
GROUP_CONCAT(DISTINCT sc.sname, '-', sc.cnt SEPARATOR ';') AS AdmissionTakenBy
FROM
T_StudentDetails std
@ -752,7 +752,7 @@ public function leadCountMonth($branchId = null, $requestedBy = null){
SUM(IF((MONTH(std.CreatedOn) = 3), 1, 0)) AS March,
SUM(IF((MONTH(std.CreatedOn) = 4), 1, 0)) AS April,
SUM(IF((MONTH(std.CreatedOn) = 5), 1, 0)) AS May,
COUNT(DISTINCT std.StudentID) AS total,
COUNT( std.StudentID) AS total,
GROUP_CONCAT(DISTINCT sc.sname, '-', sc.cnt SEPARATOR ';') AS AdmissionTakenBy
FROM
T_StudentDetails std