fix skit2
This commit is contained in:
@@ -621,6 +621,20 @@ class TebusController extends Controller
|
||||
return response()->json($wakil,200);
|
||||
}
|
||||
|
||||
public function FirstWakil($kodcaw)
|
||||
{
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
$wakil = Wakil::on($cawangan['mysql'])
|
||||
->orderBy('nowakil','desc')
|
||||
->first();
|
||||
|
||||
if($wakil['nowakil'])
|
||||
return response($wakil['nowakil']);
|
||||
else
|
||||
return response(0);
|
||||
}
|
||||
|
||||
public function getWakil($kodcaw,$icno){
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user