fix business data

This commit is contained in:
arifal hidayat
2025-08-15 02:51:17 +07:00
parent 7a19d9f39d
commit bb63ea8084

View File

@@ -36,8 +36,8 @@ class RequestAssignmentController extends Controller
case 'non-business':
$query->where(function ($q) {
$q->where(function ($q2) {
$q2->whereRaw("LOWER(function_type) NOT LIKE ?", ['%fungsi usaha%'])
->whereRaw("LOWER(function_type) NOT LIKE ?", ['%sebagai tempat usaha%'])
$q2->whereRaw("LOWER(TRIM(function_type)) NOT LIKE ?", ['%fungsi usaha%'])
->whereRaw("LOWER(TRIM(function_type)) NOT LIKE ?", ['%sebagai tempat usaha%'])
->whereIn("status", PbgTaskStatus::getNonVerified());
})
->orWhere(function ($q3) {
@@ -50,8 +50,8 @@ class RequestAssignmentController extends Controller
case 'business':
$query->where(function ($q) {
$q->where(function ($q2) {
$q2->whereRaw("LOWER(function_type) LIKE ?", ['%fungsi usaha%'])
->orWhereRaw("LOWER(function_type) LIKE ?", ['%sebagai tempat usaha%'])
$q2->whereRaw("LOWER(TRIM(function_type)) LIKE ?", ['%fungsi usaha%'])
->orWhereRaw("LOWER(TRIM(function_type)) LIKE ?", ['%sebagai tempat usaha%'])
->whereIn("status", PbgTaskStatus::getNonVerified());
});
});