|
|
|
@ -15,7 +15,7 @@ class ProjectPackages::SaveService < ApplicationService
|
|
|
|
|
|
|
|
|
|
is_create = package.new_record?
|
|
|
|
|
raise Error, '类型不存在' unless ProjectPackageCategory.where(id: params[:category_id]).exists?
|
|
|
|
|
params[:project_package_category_id] = params[:category_id].to_i
|
|
|
|
|
params[:project_package_category_id] = params.delete(:category_id).to_i
|
|
|
|
|
|
|
|
|
|
raise Error, '竞标截止时间不能小于当前时间' if params[:deadline_at].present? && params[:deadline_at].to_time < Time.now
|
|
|
|
|
|
|
|
|
|