|
|
@ -527,6 +527,19 @@ class ActivityController extends Controller |
|
|
|
return response()->json(['status' => 'success', 'code' => 200, 'data' => $dataGet, 'totalRecord' => $totalRecord], 200); |
|
|
|
return response()->json(['status' => 'success', 'code' => 200, 'data' => $dataGet, 'totalRecord' => $totalRecord], 200); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function searchAnalysisPrep(Request $request) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$data = $request->all(); |
|
|
|
|
|
|
|
$dataGet = DB::table('m_activity') |
|
|
|
|
|
|
|
->select('m_activity.name') |
|
|
|
|
|
|
|
->where('m_activity.proyek_id', $data['columns'][0]['value']) |
|
|
|
|
|
|
|
->where('m_activity.type_activity', 'task') |
|
|
|
|
|
|
|
->where('m_activity.persentase_progress', '>', 0) |
|
|
|
|
|
|
|
->groupByRaw('m_activity.name') |
|
|
|
|
|
|
|
->get(); |
|
|
|
|
|
|
|
return response()->json(['status' => 'success', 'code' => 200, 'data' => $dataGet ], 200); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function searchAnalysis(Request $request) |
|
|
|
public function searchAnalysis(Request $request) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$dataBuilder = $this->setUpPayload($request->all(), 'm_activity'); |
|
|
|
$dataBuilder = $this->setUpPayload($request->all(), 'm_activity'); |
|
|
|