Merge pull request 'update' (#167) from zhangwei into dev

Reviewed-on: #167
This commit is contained in:
weiz 2024-01-13 17:14:21 +08:00
commit a65a0c2d0a

View File

@ -74,7 +74,7 @@ class ProjectLogic extends BaseLogic
'strategic_significance' => $params['strategic_significance'] ?? 0,
'industry' => $params['industry'] ?? 0,
'unit_nature' => $params['unit_nature'] ?? 0,
'annex' => $params['annex'] ?? null,
'annex' => !empty($params['annex']) ? $params['annex'] : null,
'status' => 0,
'is_budget' => 0,
'add_user' => $adminId
@ -130,7 +130,7 @@ class ProjectLogic extends BaseLogic
'strategic_significance' => $params['strategic_significance'] ?? 0,
'industry' => $params['industry'] ?? 0,
'unit_nature' => $params['unit_nature'] ?? 0,
'annex' => $params['annex'] ?? null,
'annex' => !empty($params['annex']) ? $params['annex'] : null,
'update_time' => time(),
]);
Db::commit();