From 7a41bba5e99068f456b60aebe8e2d094a0d7de97 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Mon, 26 Feb 2018 19:07:44 +0530 Subject: [PATCH] course details changes done --- Apollo/api/application/models/Studentview_model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Apollo/api/application/models/Studentview_model.php b/Apollo/api/application/models/Studentview_model.php index 516ddcac..2257730a 100755 --- a/Apollo/api/application/models/Studentview_model.php +++ b/Apollo/api/application/models/Studentview_model.php @@ -79,11 +79,11 @@ class Studentview_model extends CI_Model * */ public function getStudentCourse($studentId=null){ - $this->db->select('SCU.EnrollmentID,CU.CourseID,CU.CourseName,US.UniversityID,US.UniversityName,BA.BatchName'); + $this->db->select('SCU.EnrollmentID,CU.CourseID,CU.CourseName,US.UniversityID,US.UniversityName,SM.SessionName'); $this->db->from( STUDENTCOURSE . ' as SCU'); $this->db->join( COURSE . ' as CU', 'CU.CourseID = SCU.CourseID'); $this->db->join( UNIVERSITY . ' as US', 'US.UniversityID = SCU.UniversityID'); - $this->db->join( BATCH . ' as BA', 'BA.BatchCode = SCU.BatchCode'); + $this->db->join( SESSIONMASTER . ' as SM', 'SM.SessionID = SCU.SessionID'); $this->db->where('SCU.StudentID', $studentId); $courseDetails = $this->db->get(); if($courseDetails->result()){ @@ -93,7 +93,7 @@ class Studentview_model extends CI_Model $fetchData['CourseName']=$row->CourseName; $fetchData['UniversityID']=$row->UniversityID; $fetchData['UniversityName']=$row->UniversityName; - $fetchData['BatchName']=$row->BatchName; + $fetchData['SessionName']=$row->SessionName; $fetchData['EnrollmentID']=$row->EnrollmentID; // get student fees details $fetchData['feesDetails']=$this->getStudentFeesDetails($studentId,$row->CourseID);