From 69b5cae870013bfb38ec6c92dc868f6480469fb9 Mon Sep 17 00:00:00 2001 From: yystopf Date: Tue, 20 Aug 2024 16:43:31 +0800 Subject: [PATCH] fix --- app/models/journal.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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!('已解决', '已修复')