1、新增百度OCR

2、新增应收应付
This commit is contained in:
2026-08-18 01:41:37 +08:00
parent 6c74983707
commit 176035ab95
35 changed files with 2255 additions and 74 deletions
+11
View File
@@ -94,6 +94,17 @@ thirdParty:
# MK开放接口地址
baseUrl: http://127.0.0.1:8080
#百度OCR配置,API Key和Secret Key请通过环境变量注入
baidu:
ocr:
enabled: ${BAIDU_OCR_ENABLED:false}
api-key: ${BAIDU_OCR_API_KEY:}
secret-key: ${BAIDU_OCR_SECRET_KEY:}
endpoint: ${BAIDU_OCR_ENDPOINT:https://aip.baidubce.com}
connect-timeout: 5s
request-timeout: 30s
token-refresh-advance: 1m
powerjob:
worker:
+11
View File
@@ -66,6 +66,17 @@ thirdParty:
# MK开放接口地址
baseUrl: http://127.0.0.1:8080
#百度OCR配置,API Key和Secret Key请通过环境变量注入
baidu:
ocr:
enabled: ${BAIDU_OCR_ENABLED:false}
api-key: ${BAIDU_OCR_API_KEY:}
secret-key: ${BAIDU_OCR_SECRET_KEY:}
endpoint: ${BAIDU_OCR_ENDPOINT:https://aip.baidubce.com}
connect-timeout: 5s
request-timeout: 30s
token-refresh-advance: 1m
powerjob:
worker:
server-address: 172.16.203.228:7700
+11
View File
@@ -43,3 +43,14 @@ blade:
url: jdbc:mysql://192.168.0.188:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
username: root
password: root
#百度OCR配置,API Key和Secret Key请通过环境变量注入
baidu:
ocr:
enabled: ${BAIDU_OCR_ENABLED:false}
api-key: ${BAIDU_OCR_API_KEY:}
secret-key: ${BAIDU_OCR_SECRET_KEY:}
endpoint: ${BAIDU_OCR_ENDPOINT:https://aip.baidubce.com}
connect-timeout: 5s
request-timeout: 30s
token-refresh-advance: 1m
@@ -0,0 +1,6 @@
-- 合同费用生成、结算配置及付款比例设置
ALTER TABLE blade_contract_manage
ADD COLUMN fee_generation_mode varchar(20) DEFAULT 'system' COMMENT '费用生成模式:system系统生成,manual手动生成' AFTER billing_enabled,
ADD COLUMN pre_settlement_config_json text DEFAULT NULL COMMENT '预结算配置JSON' AFTER settlement_rule_json,
ADD COLUMN formal_settlement_config_json text DEFAULT NULL COMMENT '正式结算配置JSON' AFTER pre_settlement_config_json,
ADD COLUMN payment_ratio_json text DEFAULT NULL COMMENT '付款比例设置JSON' AFTER formal_settlement_config_json;
@@ -0,0 +1,32 @@
-- ----------------------------
-- Table structure for blade_insurance_ocr_template
-- ----------------------------
DROP TABLE IF EXISTS `blade_insurance_ocr_template`;
CREATE TABLE `blade_insurance_ocr_template` (
`id` bigint(20) NOT NULL COMMENT '主键',
`tenant_id` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '000000' COMMENT '租户ID',
`name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '模板名称',
`mapping_config` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字段映射配置JSON',
`create_user` bigint(20) DEFAULT NULL COMMENT '创建人',
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_user` bigint(20) DEFAULT NULL COMMENT '更新人',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`is_deleted` int(11) NOT NULL DEFAULT '0' COMMENT '是否已删除',
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_insurance_ocr_template_name` (`tenant_id`, `name`) USING BTREE,
KEY `idx_insurance_ocr_template_status` (`status`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='保险OCR识别模板';
-- ----------------------------
-- Menu data for insurance OCR template
-- parent_id:基础配置 1164733399668962201
-- ----------------------------
INSERT INTO `blade_menu` (`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `component`, `remark`, `is_deleted`) VALUES
(2086000000000000001, 1164733399668962201, 'insurance_ocr_template', '保险OCR识别模板', 'insurance_ocr_template', '/base/insurance-ocr-template', 'iconfont iconicon_doc', 90, 1, 0, 1, NULL, '', 0),
(2086000000000000002, 2086000000000000001, 'insurance_ocr_template_add', '新增', 'insurance_ocr_template_add', '', '', 1, 2, 0, 1, NULL, '', 0),
(2086000000000000003, 2086000000000000001, 'insurance_ocr_template_edit', '编辑', 'insurance_ocr_template_edit', '', '', 2, 2, 0, 1, NULL, '', 0),
(2086000000000000004, 2086000000000000001, 'insurance_ocr_template_delete', '删除', 'insurance_ocr_template_delete', '', '', 3, 2, 0, 1, NULL, '', 0),
(2086000000000000005, 2086000000000000001, 'insurance_ocr_template_view', '查看', 'insurance_ocr_template_view', '', '', 4, 2, 0, 1, NULL, '', 0),
(2086000000000000006, 2086000000000000001, 'insurance_ocr_template_list', '列表', 'insurance_ocr_template_list', '/blade-transport/insurance-ocr-template/list', '', 5, 2, 0, 1, NULL, '', 0);