ry-ocr/ (新)
本地发票识别微服务 (PaddleOCR 3.x + FastAPI, 8801)
- QR 优先: 扫到二维码即取开票时间/发票号/金额; 没扫到/格式不合法直接判非发票, 不跑 OCR
- 配置 QR_FULL_OCR 控制快路径(false, 0.2s)还是全字段(true, 4.5s)
- /recognize/invoice (multipart) + /recognize/invoice/by-path (本地路径, 白名单) + /recognize/text
- is_invoice / from_qr / qr_raw / qr_error / error_code 字段
- 12 字段发票抽取 (regex + 启发式, 左右主体识别)
- 超时保护 (15s 单页 / 60s 总流程) + PaddleOCR 单例 + ThreadPoolExecutor
ry-api/ruoyi-business/
- pom.xml: 加 hutool-http/json/core 5.8.27, lombok 1.18.30 (OcrClient @Slf4j 所需)
- ocr/: OcrClient + InvoiceResult/Fields/Line + ZipExtractor + InvoiceOcrScheduler
- oss/: OssUploader + OssConfMeta (OCR 识别后重传 OSS)
- config/: OcrConfig + OcrExecutorConfig (后台线程池)
- service/impl/InvoiceOcrService: 后台提交 OCR, ZIP 路径解压识别, 替换场景先清旧
- 会议材料 CRUD 全套 (BizMeetingAuditLog/Executor/Invoice/Material/Supervisor):
controller + service + mapper + domain + xml
ry-vue3/
- MeetingDetail.vue (新建): 会议详情页 (含评分维度章节, 改只读)
- Meetings.vue / OssFileUploader.vue / router / Login.vue: 适配新字段
ry-api/ruoyi-admin/
- RuoYiApplication.java + application.yml: 启用 @Async 异步支持
_self/
- manager_meetings.md / manager_meeting_detail.md: 文档
80 lines
2.8 KiB
XML
80 lines
2.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.org/POM/4.0.0 http://maven.org/xsd/maven-4.0.0.xsd">
|
|
<parent>
|
|
<artifactId>ruoyi</artifactId>
|
|
<groupId>com.ruoyi</groupId>
|
|
<version>3.9.2</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>ruoyi-business</artifactId>
|
|
|
|
<description>
|
|
业务模块 - 北京整合医学学会项目管理系统
|
|
</description>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.ruoyi</groupId>
|
|
<artifactId>ruoyi-common</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.ruoyi</groupId>
|
|
<artifactId>ruoyi-framework</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.ruoyi</groupId>
|
|
<artifactId>ruoyi-system</artifactId>
|
|
</dependency>
|
|
<!-- 阿里云短信 SMS SDK -->
|
|
<dependency>
|
|
<groupId>com.aliyun</groupId>
|
|
<artifactId>aliyun-java-sdk-dysmsapi</artifactId>
|
|
<version>2.2.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.aliyun</groupId>
|
|
<artifactId>aliyun-java-sdk-core</artifactId>
|
|
<version>4.6.4</version>
|
|
</dependency>
|
|
<!-- 阿里云 OSS SDK (服务端上传: zip 解压 → OCR → 重传 invoice 文件, copy 自 hwt-serve ruoyi-common AliOssService) -->
|
|
<dependency>
|
|
<groupId>com.aliyun.oss</groupId>
|
|
<artifactId>aliyun-sdk-oss</artifactId>
|
|
<version>3.17.4</version>
|
|
</dependency>
|
|
<!-- HTML 转 PDF (iText 7 html2pdf, 宽容 HTML 解析, 兼容非 XHTML 的 <img> 等) -->
|
|
<dependency>
|
|
<groupId>com.itextpdf</groupId>
|
|
<artifactId>html2pdf</artifactId>
|
|
<version>3.0.2</version>
|
|
</dependency>
|
|
<!-- ry-ocr Java 调用客户端依赖: hutool-http / hutool-json / hutool-core -->
|
|
<dependency>
|
|
<groupId>cn.hutool</groupId>
|
|
<artifactId>hutool-http</artifactId>
|
|
<version>5.8.27</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cn.hutool</groupId>
|
|
<artifactId>hutool-json</artifactId>
|
|
<version>5.8.27</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cn.hutool</groupId>
|
|
<artifactId>hutool-core</artifactId>
|
|
<version>5.8.27</version>
|
|
</dependency>
|
|
<!-- Lombok (OcrClient 等用了 @Slf4j) -->
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>1.18.30</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
</project>
|