From 1a21d9df86cf9e96d6abb5deaf1e156d59d0b4b1 Mon Sep 17 00:00:00 2001 From: gayathri1990 Date: Fri, 14 Sep 2018 15:08:29 +0530 Subject: [PATCH] batchschdule changes --- Apollo/api/application/models/Hallticket_model.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Apollo/api/application/models/Hallticket_model.php b/Apollo/api/application/models/Hallticket_model.php index 17d2e960..5eb88285 100644 --- a/Apollo/api/application/models/Hallticket_model.php +++ b/Apollo/api/application/models/Hallticket_model.php @@ -114,15 +114,15 @@ class Hallticket_model extends CI_Model //////////// public function get_unShedules($mapid,$subid,$branchcode,$CourseID,$universityID) { - + //echo $mapid; $sql="SELECT semchild.SubjectID,semchild.MapID,bsc.ScheduleDate,bsc.FromTime,bsc.ToTime,sm.SubjectName FROM T_SemSubMap_Child semchild LEFT JOIN T_SemSubMap_Master semmaster ON semmaster.MapID = semchild.MapID LEFT JOIN T_Batch_Schedule_Master bsm ON bsm.UniversityID = semmaster.UniversityID -and bsm.CourseID=semmaster.CourseID -LEFT JOIN T_Batch_Schedule_Child bsc ON bsc.SchId = bsm.SchId and bsc.SubjectID=semchild.SubjectID -LEFT JOIN T_SubjectMaster sm ON sm.SubjectID=semchild.SubjectID -WHERE semchild.isActive = '1' and bsm.SchId='".$mapid."' + and bsm.CourseID=semmaster.CourseID + LEFT JOIN T_Batch_Schedule_Child bsc ON bsc.SchId = bsm.SchId and bsc.SubjectID=semchild.SubjectID + LEFT JOIN T_SubjectMaster sm ON sm.SubjectID=semchild.SubjectID + WHERE semchild.isActive = '1' and bsm.SchId='".$mapid."' group by semchild.SubjectID,semchild.MapID"; $b=$this->db->query($sql); //print_r($b); @@ -137,7 +137,7 @@ group by semchild.SubjectID,semchild.MapID"; $this->db->join('T_Batch_Schedule_Child','T_Batch_Schedule_Child.SchId = SCM.SchId'); $this->db->where('SCM.BranchCode',$branchcode); $this->db->where('SCM.CourseID',$CourseID); - $this->db->where('T_Batch_Schedule_Child.SchId',$mapid); + // $this->db->where('T_Batch_Schedule_Child.SchId',$mapid); $this->db->where('T_Batch_Schedule_Child.SubjectID',$row->SubjectID); $existsheduledetails = $this->db->get(); //print_r($existsheduledetails);