Merge branch 'develop' into standalone_develop

This commit is contained in:
yystopf 2023-03-13 14:42:14 +08:00
commit e869c5a429
1 changed files with 4 additions and 0 deletions

View File

@ -121,6 +121,10 @@ class Journal < ApplicationRecord
old_value = detail.old_value
new_value = detail.value
content += "结束日期"
when 'assigned_to_id'
old_value = User.find_by_id(detail.old_value)&.nickname
new_value = User.find_by_id(detail.value)&.nickname
content += "负责人"
end
if old_value.nil? || old_value.blank?
content += "设置为<b>#{new_value}</b>"