审计内容3三重一大优化、接口返回附件ID优化

This commit is contained in:
2026-01-12 10:40:17 +08:00
parent 696df82963
commit a284472782
2 changed files with 52 additions and 24 deletions

View File

@@ -106,14 +106,13 @@ public abstract class BaseAuditContentController extends BaseController {
private void convertWorkPaperFileInfo(JSONObject result) {
JSONArray data = result.getJSONArray("data");
for (int i = 0; i < data.size(); i++) {
JSONObject obj = data.getJSONObject(i);
JSONArray workPaperIndexFileIds = obj.getJSONArray("workPaperIndex");
if (workPaperIndexFileIds == null || workPaperIndexFileIds.isEmpty()) {
continue;
}
// 先获取并转换 workPaperIndex 字段
if (workPaperIndexFileIds != null && !workPaperIndexFileIds.isEmpty()) {
// 先查询所有文件
List<AiCloudFile> aiCloudFiles = aiCloudFileService.list(new LambdaQueryWrapper<AiCloudFile>().in(AiCloudFile::getFileId, workPaperIndexFileIds));
@@ -135,8 +134,33 @@ public abstract class BaseAuditContentController extends BaseController {
// 将转换后的数据塞回原字段
obj.put("workPaperIndex", transformedArray);
// 使用 workPaperIndexFileIds 中的每个 fileId 替换其他字段中的四种格式
for (String key : obj.keySet()) {
if ("workPaperIndex".equals(key)) {
continue; // 跳过 workPaperIndex 字段
}
Object value = obj.get(key);
if (value instanceof String) {
String text = (String) value;
for (Object fileIdObj : workPaperIndexFileIds) {
String fileId = (String) fileIdObj;
text = text.replace("【FileId:" + fileId + "", "")
.replace("FileId:" + fileId + "", "")
.replace("(FileId:" + fileId + ")", "")
.replace("FileId:"+fileId, "")
.replace("" + fileId + "", "")
.replace("" + fileId + "", "")
.replace("(" + fileId + ")", "")
.replace(fileId, "");;
}
obj.put(key, text);
}
}
}
}
}
/**
* 生成请求哈希

View File

@@ -201,7 +201,11 @@ public class AuditContent3TripleServiceImpl extends AbstractAuditContentService
context.append("3. 工作底稿索引必须准确对应实际文件名称,避免使用附表或章节标题\n");
context.append("4. 测试结果判定需严格,对于制度不一致、执行不到位、证据不充分的情况必须判定为不通过\n");
context.append("5. 审计检查的证据主要按公司制度为主,政策内容和集团制度为次要\n");
context.append("6. 审计检查的证据增加判断公司制度是否与政策内容和集团制度相符\n\n");
context.append("6. 审计检查的证据增加判断公司制度是否与政策内容和集团制度相符\n");
context.append("7. 历史问题整改分析:需核查历史问题是否已整改,结合最新时间材料(如最新会议纪要)分析当前是否存在相同问题\n");
context.append("8. 项目上会核查:涉及三重一大的项目必须核查是否按规定上会,检查有无会议纪要作为证据\n");
context.append("9. 制度权限关系:明确分析公司制度与集团制度的关联关系,权限设置必须遵循公司权限≤集团权限的原则\n");
context.append("10. 层级关系识别:注意识别文件中的上级单位信息,分析制度执行是否符合层级管理要求\n\n");
// 3. 参考数据(从常量类中获取)
context.append("## 参考数据\n");