mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 02:45:33 +08:00
163 lines
5.0 KiB
PHP
163 lines
5.0 KiB
PHP
<?php
|
|
/**
|
|
* Copyright 2012-2026 ShopeX (https://www.shopex.cn)
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
$db['channel_bills']=array (
|
|
'columns' => array(
|
|
'bill_id' => array(
|
|
'type' => 'int unsigned',
|
|
'required' => true,
|
|
'pkey' => true,
|
|
'extra' => 'auto_increment',
|
|
'editable' => false,
|
|
),
|
|
'bid' => array(
|
|
'type' => 'varchar(32)',
|
|
'label' => '账单编号',
|
|
),
|
|
'account_id' => array(
|
|
'type' => 'varchar(32)',
|
|
'label' => '科目编号',
|
|
),
|
|
'tid' => array(
|
|
'type' => 'varchar(32)',
|
|
'label' => '交易订单编号',
|
|
'default_in_list' => true,
|
|
'in_list' => true,
|
|
),
|
|
'oid' => array(
|
|
'type' => 'varchar(32)',
|
|
'label' => '交易子订单编号',
|
|
'default_in_list' => true,
|
|
'in_list' => true,
|
|
),
|
|
'total_amount' => array(
|
|
'type' => 'money',
|
|
'label' => '交易金额',
|
|
'default_in_list' => true,
|
|
'in_list' => true,
|
|
),
|
|
'amount' => array(
|
|
'type' => 'money',
|
|
'label' => '账单金额',
|
|
'default_in_list' => true,
|
|
'in_list' => true,
|
|
),
|
|
'book_time' => array(
|
|
'type' => 'time',
|
|
'label' => '记账时间',
|
|
'default_in_list' => true,
|
|
'in_list' => true,
|
|
),
|
|
'biz_time' => array(
|
|
'type' => 'time',
|
|
'label' => '订单交易完成的时间',
|
|
'in_list' => true,
|
|
),
|
|
'pay_time' => array(
|
|
'type' => 'time',
|
|
'label' => '支付时间',
|
|
'in_list' => true,
|
|
),
|
|
'alipay_mail' => array(
|
|
'type' => 'varchar(255)',
|
|
'label' => '支付宝账户名称',
|
|
'default_in_list' => true,
|
|
'in_list' => true,
|
|
),
|
|
'obj_alipay_mail' => array(
|
|
'type' => 'varchar(255)',
|
|
'label' => '目标支付宝账户名称',
|
|
'default_in_list' => true,
|
|
'in_list' => true,
|
|
),
|
|
'obj_alipay_id' => array(
|
|
'type' => 'varchar(255)',
|
|
'label' => '目标支付宝账户编号',
|
|
'in_list' => true,
|
|
),
|
|
'alipay_outno' => array(
|
|
'type' => 'varchar(100)',
|
|
'label' => '支付宝商户订单号',
|
|
'default_in_list' => true,
|
|
'in_list' => true,
|
|
),
|
|
'alipay_notice' => array(
|
|
'type' => 'longtext',
|
|
'label' => '支付宝备注',
|
|
),
|
|
'status' => array(
|
|
'type' => array(
|
|
'0' => '未支付',
|
|
'1' => '支付成功',
|
|
'2' => '支付失败',
|
|
),
|
|
'label' => '状态',
|
|
'default' => '0',
|
|
'default_in_list' => true,
|
|
'in_list' => true,
|
|
),
|
|
'gmt_create' => array(
|
|
'type' => 'time',
|
|
'label' => '创建时间',
|
|
'in_list' => true,
|
|
),
|
|
'gmt_modified' => array(
|
|
'type' => 'time',
|
|
'label' => '修改时间',
|
|
'in_list' => true,
|
|
),
|
|
'num_iid' => array(
|
|
'type' => 'varchar(50)',
|
|
'label' => '所属商品编号',
|
|
),
|
|
'alipay_id' => array(
|
|
'type' => 'varchar(50)',
|
|
'label' => '支付宝账户编号',
|
|
),
|
|
'alipay_no' => array(
|
|
'type' => 'varchar(50)',
|
|
'label' => '支付宝交易号',
|
|
),
|
|
'shop_id' => array(
|
|
'type' => 'table:shop@ome',
|
|
'label' => '店铺名称',
|
|
'default_in_list' => true,
|
|
'in_list' => true,
|
|
'filtertype' => true,
|
|
'filterdefault' => true,
|
|
),
|
|
'shop_type' => array(
|
|
'type' => 'varchar(50)',
|
|
'label' => '店铺类型',
|
|
'width' => 75,
|
|
'editable' => false,
|
|
'in_list' => true,
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
),
|
|
'time_type' => array(
|
|
'type' => array(
|
|
'1' => '交易订单完成时间',
|
|
'2' => '支付宝扣款时间',
|
|
),
|
|
'label' => '时间类型',
|
|
),
|
|
),
|
|
'comment' => '弃用',
|
|
'engine' => 'innodb',
|
|
'version' => '$Rev: $',
|
|
); |