mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 04:13:58 +00:00
swagger doc
This commit is contained in:
@@ -36,7 +36,6 @@ class ContractObligationContractDependencyModule extends BaseController
|
||||
|
||||
$contract_obligation_hash_id = $contract_obligation_id = $request->get('contract_obligation_id', []);
|
||||
|
||||
$name = $request->get('name', null);
|
||||
$status = $request->get('status', []);
|
||||
$page = $request->get('page', null);
|
||||
$limit = $request->get('limit', 10);
|
||||
@@ -48,10 +47,6 @@ class ContractObligationContractDependencyModule extends BaseController
|
||||
$query->whereIn('contract_obligation_id', $contract_obligation_id);
|
||||
}
|
||||
|
||||
if (strlen($name) > 0) {
|
||||
$query->where('name', 'like', '%' . $name . '%');
|
||||
}
|
||||
|
||||
if (!empty($status) > 0) {
|
||||
$query->whereIn('status', $status);
|
||||
}
|
||||
|
||||
@@ -123,8 +123,8 @@ class ContractTemplateObligationModule extends BaseController
|
||||
$contract_template_obligation->sequence = $sequence;
|
||||
$contract_template_obligation->reference = $reference;
|
||||
$contract_template_obligation->content = json_encode($content);
|
||||
$contract_template_obligation->must_complete = $must_complete;
|
||||
$contract_template_obligation->must_accept = $must_accept;
|
||||
$contract_template_obligation->must_complete = $must_complete ?? 2;
|
||||
$contract_template_obligation->must_accept = $must_accept ?? 2;
|
||||
$contract_template_obligation->complete_day_range = $complete_day_range;
|
||||
$contract_template_obligation->type = $type;
|
||||
$contract_template_obligation->status = config('constants.contract_template_obligation.status.active');
|
||||
|
||||
Reference in New Issue
Block a user