feat: AI风险检查以身份证号为员工唯一标识
- buildOrgContext 员工列表加入脱敏身份证号(前6后4,中间*) - 单员工/部门预测上下文加入脱敏身份证号 - AI prompt 更新:要求用身份证号标识员工,姓名仅辅助参考 - 同名员工以身份证号区分 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
@@ -181,10 +181,12 @@ ${orgContext}
|
||||
|
||||
请按以下格式输出:
|
||||
【未来30天预计风险】
|
||||
- [员工姓名/风险描述] → [建议措施]
|
||||
- [员工身份证号(脱敏)/姓名/风险描述] → [建议措施]
|
||||
|
||||
【优先级建议】
|
||||
[先处理什么,再处理什么]`
|
||||
[先处理什么,再处理什么]
|
||||
|
||||
注意:员工唯一标识为身份证号(脱敏),姓名仅作辅助参考,同名员工以身份证号区分。`
|
||||
|
||||
const response = await client.chat.completions.create({
|
||||
model: 'qwen-plus',
|
||||
@@ -208,8 +210,8 @@ export async function* predictRisksStream(orgContext: string) {
|
||||
|
||||
用表格列出每个风险项:
|
||||
|
||||
| 优先级 | 员工/范围 | 风险描述 | 法律依据 | 建议措施 | 截止日期 |
|
||||
|--------|-----------|----------|----------|----------|----------|
|
||||
| 优先级 | 员工(身份证号/姓名) | 风险描述 | 法律依据 | 建议措施 | 截止日期 |
|
||||
|--------|---------------------|----------|----------|----------|----------|
|
||||
|
||||
## 优先级建议
|
||||
|
||||
@@ -219,6 +221,8 @@ export async function* predictRisksStream(orgContext: string) {
|
||||
|
||||
简要总结企业当前用工合规状况和改进方向。
|
||||
|
||||
注意:员工唯一标识为身份证号(脱敏),姓名仅作辅助参考,同名员工以身份证号区分。
|
||||
|
||||
企业数据:
|
||||
${orgContext}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user