fix
This commit is contained in:
@@ -2299,15 +2299,20 @@ class AdminPageController extends Controller
|
|||||||
|
|
||||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||||
|
|
||||||
// $gadai = Gadai::on($cawangan['mysql'])
|
|
||||||
// ->where([['sttebus','=',$gadai_status],['nokp','=',$ic],['trkhtuntut',null],['t_lelong','>=',$request->mula],['t_lelong','<=', $request->hingga]])
|
$mula = explode('-', $request->mula);
|
||||||
// ->rightJoin('lelong', 'gadai.norujukan', '=', 'lelong.norujukan')
|
$hingga = explode('-', $request->hingga);
|
||||||
// ->get();
|
|
||||||
$lelong = Lelong::on($cawangan['mysql'])
|
|
||||||
->where([['baki','>',0],['trkhtuntut',null],['t_lelong','>=',$request->mula],['t_lelong','<=', $request->hingga]])
|
|
||||||
->get();
|
|
||||||
|
|
||||||
return response()->json($lelong,200);
|
|
||||||
|
$lelong = Lelong::on($cawangan['mysql'])
|
||||||
|
->where([['baki','>',0],['trkhtuntut',null]])
|
||||||
|
->whereMonth('t_lelong','>=',$mula[0])
|
||||||
|
->whereMonth('t_lelong','<=',$hingga[0])
|
||||||
|
->whereYear('t_lelong','>=',$mula[1])
|
||||||
|
->whereYear('t_lelong','<=',$hingga[1])
|
||||||
|
->get()->toArray();
|
||||||
|
|
||||||
|
return response()->json($lelong,200);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function InsertDraftWTD(Request $request){
|
public function InsertDraftWTD(Request $request){
|
||||||
|
|||||||
Reference in New Issue
Block a user