Melakukan Perubahan

This commit is contained in:
Vinsensiaaa
2024-09-19 16:39:56 +07:00
parent f55b8490d6
commit b2e27d2c41
2 changed files with 89 additions and 86 deletions
@@ -47,6 +47,9 @@ class ItemSearchController extends Controller
if (getRole() == "sbpk") {
$sqlStr .= " AND y.C_WIL_SP2DPROSES=" . Auth::user()->wilayah;
} elseif (getRole() == "walikota") {
$id = Tropd::where("C_OPD", Auth::user()->nrk)->first()["i_id"];
$sqlStr .= " AND x.KODE_SKPD IN (SELECT C_OPD FROM NEWSIPKD.TROPD WHERE I_IDINDUK=" . $id . ")";
}
if ($request->has('q')) {