|
|
|
@ -1875,3 +1875,36 @@ CREATE TABLE `tab_company_statement` (
|
|
|
|
|
KEY `op_time` (`op_time`) USING BTREE
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='聚合上游联运上下游对账单';
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `tab_company_statement_pool` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增主键',
|
|
|
|
|
`company_id` int(11) DEFAULT '0' COMMENT '对账公司id',
|
|
|
|
|
`company_name` varchar(60) NOT NULL DEFAULT '' COMMENT '对账公司名称',
|
|
|
|
|
|
|
|
|
|
`statement_id` varchar(500) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '涉及的结算单id',
|
|
|
|
|
`statement_begin_time` int(11) NOT NULL DEFAULT '0' COMMENT '对账开始时间',
|
|
|
|
|
`statement_end_time` int(11) NOT NULL DEFAULT '0' COMMENT '对账截止时间',
|
|
|
|
|
`statement_money` decimal(10,2) DEFAULT '0.00' COMMENT '对账金额',
|
|
|
|
|
`pay_amount` decimal(10,2) DEFAULT '0.00' COMMENT '流水金额',
|
|
|
|
|
|
|
|
|
|
`verify_status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '审核状态 -2:打款失败 -1审批拒绝 0:未审批 1:审核通过 2:待打款 3:打款中 4:打款成功',
|
|
|
|
|
`verify_log` text NOT NULL DEFAULT '' COMMENT '审批相关信息json',
|
|
|
|
|
`pay_type` tinyint(2) DEFAULT '0' COMMENT '1甲方收款;2乙方收款',
|
|
|
|
|
`ext_file` text COMMENT '凭证地址',
|
|
|
|
|
`first_party_info` text NOT NULL DEFAULT '' COMMENT '甲方相关信息json',
|
|
|
|
|
`second_party_info` text NOT NULL DEFAULT '' COMMENT '乙方相关信息json',
|
|
|
|
|
`statement_info` text NOT NULL DEFAULT '' COMMENT '订单相关信息json',
|
|
|
|
|
|
|
|
|
|
`collection_name` varchar(60) NOT NULL DEFAULT '' COMMENT '收款人姓名',
|
|
|
|
|
`collection_account` varchar(60) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '收款支付宝账号',
|
|
|
|
|
`payment_account` varchar(60) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '付款账号',
|
|
|
|
|
`payment_info` text NOT NULL DEFAULT '' COMMENT '支付相关json',
|
|
|
|
|
|
|
|
|
|
`op_time` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间',
|
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
|
KEY `company_id` (`company_id`) USING BTREE,
|
|
|
|
|
KEY `statement_end_time` (`statement_end_time`) USING BTREE,
|
|
|
|
|
KEY `statement_end_time` (`statement_end_time`) USING BTREE,
|
|
|
|
|
KEY `verify_status` (`verify_status`) USING BTREE,
|
|
|
|
|
KEY `op_time` (`op_time`) USING BTREE
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='对账单汇总';
|
|
|
|
|
|
|
|
|
|