add status spatial plannings
This commit is contained in:
@@ -166,16 +166,13 @@ class BigdataResume extends Model
|
||||
')
|
||||
->value('total_count') ?? 0;
|
||||
|
||||
// Non-Business DLH count - for each non-business task with data_type=5:
|
||||
// Business DLH count - for each business task with data_type=5:
|
||||
// if any status != 1 then return 1, if all status = 1 then return 0, then sum all
|
||||
$business_dlh_count = DB::table('pbg_task')
|
||||
->where(function ($q) {
|
||||
$q->where(function ($q2) {
|
||||
$q2->where(function ($q3) {
|
||||
$q3->whereRaw("LOWER(TRIM(function_type)) LIKE ?", ['%fungsi usaha%'])
|
||||
->whereRaw("LOWER(TRIM(function_type)) LIKE ?", ['%sebagai tempat usaha%']);
|
||||
})
|
||||
->orWhereNull('function_type');
|
||||
$q2->whereRaw("LOWER(TRIM(function_type)) LIKE ?", ['%fungsi usaha%'])
|
||||
->orWhereRaw("LOWER(TRIM(function_type)) LIKE ?", ['%sebagai tempat usaha%']);
|
||||
})
|
||||
->whereIn("status", PbgTaskStatus::getNonVerified());
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user