From 0643d24486d3ebfee67f1c7e2fd740c8e96e9cad Mon Sep 17 00:00:00 2001 From: yystopf Date: Wed, 21 Aug 2024 17:30:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/journal.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/models/journal.rb b/app/models/journal.rb index 4a78ed301..d2410a2b7 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -117,12 +117,12 @@ class Journal < ApplicationRecord old_value = "#{Issue.find_by_id(detail.old_value)&.subject}" new_value = "#{Issue.find_by_id(detail.value)&.subject}" if detail.old_value.nil? || detail.old_value.blank? - content += "关联了父需求<#{new_value}>" + content += "关联了父需求<#{new_value}>" else if detail.value.nil? || detail.value.blank? - content += "取消了关联的父需求<#{old_value}>" + content += "取消了关联的父需求<#{old_value}>" else - content += "将关联的父需求由<#{old_value}>更改为<#{new_value}>" + content += "将关联的父需求由<#{old_value}>更改为<#{new_value}>" end end return content @@ -177,12 +177,12 @@ class Journal < ApplicationRecord old_value = "#{Issue.find_by_id(detail.old_value)&.subject}" new_value = "#{Issue.find_by_id(detail.value)&.subject}" if detail.old_value.nil? || detail.old_value.blank? - content += "关联了父任务<#{new_value}>" + content += "关联了父任务<#{new_value}>" else if detail.value.nil? || detail.value.blank? - content += "取消了关联的父任务<#{old_value}>" + content += "取消了关联的父任务<#{old_value}>" else - content += "将关联的父任务由<#{old_value}>更改为<#{new_value}>" + content += "将关联的父任务由<#{old_value}>更改为<#{new_value}>" end end return content @@ -237,12 +237,12 @@ class Journal < ApplicationRecord old_value = "#{Issue.find_by_id(detail.old_value)&.subject}" new_value = "#{Issue.find_by_id(detail.value)&.subject}" if detail.old_value.nil? || detail.old_value.blank? - content += "关联了父缺陷<#{new_value}>" + content += "关联了父缺陷<#{new_value}>" else if detail.value.nil? || detail.value.blank? - content += "取消了关联的父缺陷<#{old_value}>" + content += "取消了关联的父缺陷<#{old_value}>" else - content += "将关联的父缺陷由<#{old_value}>更改为<#{new_value}>" + content += "将关联的父缺陷由<#{old_value}>更改为<#{new_value}>" end end return content