* 映射优先级
(priorityStr: string)
| 260 | * 映射优先级 |
| 261 | */ |
| 262 | private mapPriority(priorityStr: string): 'low' | 'medium' | 'high' | 'critical' { |
| 263 | const priority = priorityStr.toLowerCase(); |
| 264 | if (priority.includes('低') || priority === 'low') return 'low'; |
| 265 | if (priority.includes('高') || priority === 'high') return 'high'; |
| 266 | if (priority.includes('紧急') || priority.includes('critical')) return 'critical'; |
| 267 | return 'medium'; |
| 268 | } |
| 269 | |
| 270 | /** |
| 271 | * 生成任务ID |