add
This commit is contained in:
parent
d68f042298
commit
553026c7cb
@ -28,6 +28,7 @@ class CostApprovedProjectLogic extends BaseLogic
|
||||
CostApprovedProject::create([
|
||||
'contract_name' => $params['contract_name'],
|
||||
'contract_num' => date('Ymd',time()).'-'.mt_rand(100000, 999999),
|
||||
'contract_type' => $params['contract_type'],
|
||||
'part_a' => $params['part_a'],
|
||||
'part_a_contract' => $params['part_a_contract'] ?? '',
|
||||
'part_a_address' => $params['part_a_address'] ?? '',
|
||||
@ -88,6 +89,7 @@ class CostApprovedProjectLogic extends BaseLogic
|
||||
Db::startTrans();
|
||||
try {
|
||||
CostApprovedProject::where('id', $params['id'])->update([
|
||||
'contract_type' => $params['contract_type'],
|
||||
'contract_name' => $params['contract_name'],
|
||||
'part_a' => $params['part_a'],
|
||||
'part_a_contract' => $params['part_a_contract'] ?? '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user