diff --git a/app/models/journal.rb b/app/models/journal.rb
index 9a0624cf0..1c37d2f1b 100644
--- a/app/models/journal.rb
+++ b/app/models/journal.rb
@@ -300,20 +300,20 @@ class Journal < ApplicationRecord
new_value = "未设置" if new_value.blank?
content += "将状态由#{old_value}更改为#{new_value}"
end
- case self.issue.pm_issue_type
- when 'requirement'
+ case self.issue.pm_issue_type.to_i
+ when 1
content.gsub!('新增', '待评审')
content.gsub!('正在解决', '进行中')
content.gsub!('已解决', '已完成')
content.gsub!('关闭', '已关闭')
content.gsub!('拒绝', '已拒绝')
- when 'task'
+ when 2
content.gsub!('新增', '待处理')
content.gsub!('正在解决', '进行中')
content.gsub!('已解决', '已完成')
content.gsub!('关闭', '已关闭')
content.gsub!('拒绝', '已拒绝')
- when 'bug'
+ when 3
content.gsub!('新增', '待修复')
content.gsub!('正在解决', '修复中')
content.gsub!('已解决', '已修复')