fix skit2
This commit is contained in:
@@ -511,4 +511,29 @@ class LelongController extends Controller
|
||||
return response()->json($lelong,200);
|
||||
}
|
||||
|
||||
public function checkSerahLelong(Request $request)
|
||||
{
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$request->kodcaw)->first();
|
||||
|
||||
$lelong = Lelong::on($cawangan['mysql'])
|
||||
->where('norujukan', '=', $request->norujukan)
|
||||
->where('t_lelong', '=', $current->toDateString())
|
||||
->first();
|
||||
|
||||
if($lelong)
|
||||
{
|
||||
if($lelong['lel1stop'] == 1)
|
||||
{
|
||||
return response(1);
|
||||
}else{
|
||||
return response(0);
|
||||
}
|
||||
}else{
|
||||
return response(0);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user