@@ -164,7 +164,7 @@ |
||
| 164 | 164 | if(!empty($row['admission_no'])){ |
| 165 | 165 | Institution_student::where('student_id','=',$studentInfo->id) |
| 166 | 166 | ->where('institution_id','=', $institution) |
| 167 | - // ->where('academic_period_id','=',$academicPeriod->id) |
|
| 167 | + // ->where('academic_period_id','=',$academicPeriod->id) |
|
| 168 | 168 | ->update(['admission_id'=> $row['admission_no']]); |
| 169 | 169 | } |
| 170 | 170 | if (!empty($row['special_need'])) { |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | public function process($student) |
| 76 | 76 | { |
| 77 | - try{ |
|
| 77 | + try{ |
|
| 78 | 78 | $wrongStudentsClass = Institution_class_student::where('institution_id', $student['institution_id']) |
| 79 | 79 | ->whereRaw('institution_class_id not in (select id from institution_classes where institution_id ='.$student['institution_id'].' )') |
| 80 | 80 | ->orWhere('institution_class_id', 0) |
@@ -142,8 +142,8 @@ discard block |
||
| 142 | 142 | array_walk($institutionClassStudent, array($this->class, 'updateClassCount')); |
| 143 | 143 | } |
| 144 | 144 | } |
| 145 | - }catch(\Exception $e){ |
|
| 145 | + }catch(\Exception $e){ |
|
| 146 | 146 | dd($e); |
| 147 | - } |
|
| 147 | + } |
|
| 148 | 148 | } |
| 149 | 149 | } |
@@ -52,16 +52,16 @@ |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | public function delete(){ |
| 55 | - try{ |
|
| 56 | - DB::statement("UPDATE student_guardians t1 |
|
| 55 | + try{ |
|
| 56 | + DB::statement("UPDATE student_guardians t1 |
|
| 57 | 57 | INNER JOIN student_guardians t2 |
| 58 | 58 | set t1.deleted_at=now() |
| 59 | 59 | WHERE |
| 60 | 60 | t1.id > t2.id AND |
| 61 | 61 | t1.student_id = t2.student_id AND |
| 62 | 62 | t1.guardian_id = t2.guardian_id"); |
| 63 | - }catch(\Exception $e){ |
|
| 64 | - dd($e); |
|
| 65 | - } |
|
| 63 | + }catch(\Exception $e){ |
|
| 64 | + dd($e); |
|
| 65 | + } |
|
| 66 | 66 | } |
| 67 | 67 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | public function array_walk($shift, $count, $params) |
| 42 | 42 | { |
| 43 | 43 | try{ |
| 44 | - DB::beginTransaction(); |
|
| 44 | + DB::beginTransaction(); |
|
| 45 | 45 | array_walk($shift, array($this, 'process'), $params); |
| 46 | 46 | DB::commit(); |
| 47 | 47 | }catch(\Exception $e){ |