fixed:操作日志为空的情况

This commit is contained in:
yystopf 2025-08-01 14:34:17 +08:00
parent a35537694c
commit 01ef87f5a3
1 changed files with 2 additions and 1 deletions

View File

@ -532,6 +532,7 @@ class Journal < ApplicationRecord
def operate_content
content = "#{operate_by_content}"
detail = self.journal_details.take
content = ""
case detail.property
when 'issue'
content += "创建了<b>疑修</b>"
@ -605,7 +606,7 @@ class Journal < ApplicationRecord
content += "由<b>#{old_value}</b>更改为<b>#{new_value}</b>"
end
end
content = self.pm_operate_content if content == ""
end
def journal_content