优化审计报告部分章节的AI提示词
This commit is contained in:
@@ -1563,10 +1563,16 @@ public class AuditReportController extends BaseController {
|
||||
promptBuilder.append(String.format("请根据传入的取证单及相关资料库的数据,总结%s 任职期间的主要业绩。要求:1.基于审计事实和数据;2.突出重要贡献和成绩;3.内容客观真实;4.条理清晰。\n", personName));
|
||||
} else if (formCommit == 41) {
|
||||
// (二)XX 公司概况的特殊提示词模板
|
||||
promptBuilder.append(String.format("请生成关于'%s'的详细说明。要求按以下格式返回:\n" +
|
||||
promptBuilder.append(String.format("请从知识库中检索关于'%s'的公司基本信息。要求按以下格式返回:\n" +
|
||||
"%s 为(说明企业性质,如:国有独资/控股公司),成立于 XXXX 年 X 月 X 日,注册资本**元,法定代表人 XX,统一社会信用代码:XXX。\n" +
|
||||
"公司主营业务为……(简述主营业务)。\n" +
|
||||
"%s 下设……(组织架构)。", title, companyName, companyName));
|
||||
"%s 下设……(组织架构)。\n\n" +
|
||||
"重要要求:\n" +
|
||||
"1. 法定代表人、统一社会信用代码、成立日期、注册资本等信息必须从知识库中准确提取,不得编造或推测;\n" +
|
||||
"2. 如果知识库中找不到该公司的任何信息,请仅返回一行文字:'未找到相关信息',不要重复多行,不要添加其他说明;\n" +
|
||||
"3. 对于同一家公司,这些信息是固定不变的,请确保多次查询返回的结果完全一致;\n" +
|
||||
"4. 优先使用知识库中最权威、最新的企业工商信息;\n" +
|
||||
"5. 如果知识库中存在多个版本的信息,以最新的为准,并在括号中标注变更日期。", title, companyName, companyName));
|
||||
} else if (formCommit == 42) {
|
||||
// (三)XX 同志任职及分工情况的特殊提示词模板
|
||||
promptBuilder.append(String.format("请生成关于《%s任职及分工情况》的详细说明。按以下格式返回:\n" +
|
||||
|
||||
@@ -18,6 +18,7 @@ import com.gxwebsoft.common.system.service.FileRecordService;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
@@ -37,6 +38,7 @@ import java.util.List;
|
||||
* @author WebSoft
|
||||
* @since 2018-12-24 16:10:24
|
||||
*/
|
||||
@Slf4j
|
||||
@Tag(name = "文件上传下载")
|
||||
@RestController
|
||||
@RequestMapping("/api/file")
|
||||
@@ -150,7 +152,7 @@ public class FileController extends BaseController {
|
||||
fileRecordService.save(result);
|
||||
return map;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
log.error("上传图片失败", e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -332,9 +334,10 @@ public class FileController extends BaseController {
|
||||
.execute()
|
||||
.body();
|
||||
JSONObject data = JSONObject.parseObject(response).getJSONObject("data");
|
||||
log.info("文件上传结果: {}", response);
|
||||
fileRecord = data != null ? BeanUtil.copyProperties(data, FileRecord.class) : fileRecord;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
log.error("上传失败: {}", e.getMessage());
|
||||
}
|
||||
return fileRecord;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user