### **t_give_obsolete**(原赠送记录表t_give)赠送作废的订单**
create sequence seq_give_obsolete_id
increment by 1
start with 1
nomaxvalue
nominvalue
nocache;
### 创建表
CREATE TABLE "TONGBAO"."T_GIVE_OBSOLETE"
( "ID" CHAR(10 BYTE) NOT NULL ENABLE,
"GIVE_ID" CHAR(10 BYTE) NOT NULL ENABLE,
"RNUM" VARCHAR2(60 BYTE),
"CUSTOMID" CHAR(8 BYTE) NOT NULL ENABLE,
"ACCOUNTID" CHAR(10 BYTE) NOT NULL ENABLE,
"SCORE" NUMBER(10,2),
"TYPE" VARCHAR2(5 BYTE) DEFAULT 6,
"PAYTYPE" VARCHAR2(5 BYTE) NOT NULL ENABLE,
"DATETIME" VARCHAR2(20 BYTE) NOT NULL ENABLE,
"VERSIONS" VARCHAR2(50 BYTE) NOT NULL ENABLE,
"DATEYMD" VARCHAR2(20 BYTE),
"BALANCE" NUMBER(10,2),
"GIVESTATUS" VARCHAR2(2 BYTE) DEFAULT 1,
"ORIGINAL_DATETIME" VARCHAR2(20 BYTE) NOT NULL ENABLE,
CONSTRAINT "T_GIVE_OBSOLETE_PK" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "TONGBAO" ENABLE
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "TONGBAO" ;
###备注信息
COMMENT ON COLUMN "TONGBAO"."T_GIVE_OBSOLETE"."ID" IS 'ID';
COMMENT ON COLUMN "TONGBAO"."T_GIVE_OBSOLETE"."GIVE_ID" IS '原赠送id';
COMMENT ON COLUMN "TONGBAO"."T_GIVE_OBSOLETE"."RNUM" IS '充值单号';
COMMENT ON COLUMN "TONGBAO"."T_GIVE_OBSOLETE"."CUSTOMID" IS '会员ID';
COMMENT ON COLUMN "TONGBAO"."T_GIVE_OBSOLETE"."ACCOUNTID" IS '账户ID';
COMMENT ON COLUMN "TONGBAO"."T_GIVE_OBSOLETE"."SCORE" IS '赠送积分';
COMMENT ON COLUMN "TONGBAO"."T_GIVE_OBSOLETE"."TYPE" IS '默认6:系统';
COMMENT ON COLUMN "TONGBAO"."T_GIVE_OBSOLETE"."PAYTYPE" IS '积分补偿(611)、福利积分(612)、活动赠送(613)、充值活动赠送(614)、普通赠送(666)';
COMMENT ON COLUMN "TONGBAO"."T_GIVE_OBSOLETE"."DATETIME" IS '写入时间,时间戳';
COMMENT ON COLUMN "TONGBAO"."T_GIVE_OBSOLETE"."VERSIONS" IS '版本号';
COMMENT ON COLUMN "TONGBAO"."T_GIVE_OBSOLETE"."DATEYMD" IS '日期';
COMMENT ON COLUMN "TONGBAO"."T_GIVE_OBSOLETE"."BALANCE" IS '计息金额';
COMMENT ON COLUMN "TONGBAO"."T_GIVE_OBSOLETE"."GIVESTATUS" IS '1领取2未领取';
COMMENT ON COLUMN "TONGBAO"."T_GIVE_OBSOLETE"."ORIGINAL_DATETIME" IS '原订单时间';
### **t_recharge_obsolete**(原赠送记录表t_recharge)赠送作废的订单**
create sequence seq_recharge_obsolete_id
increment by 1
start with 1
nomaxvalue
nominvalue
nocache;
### 创建表
CREATE TABLE "TONGBAO"."T_RECHARGE_OBSOLETE"
( "ID" CHAR(10 BYTE) NOT NULL ENABLE,
"NUM" VARCHAR2(60 BYTE),
"PAYAMOUNT" NUMBER(10,2),
"BALANCE" NUMBER(10,2),
"ORIGINAL_TIME" VARCHAR2(20 BYTE) NOT NULL ENABLE,
"DATETIME" VARCHAR2(20 BYTE) NOT NULL ENABLE,
CONSTRAINT "T_RECHARGE_OBSOLETE_PK" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "TONGBAO" ENABLE
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "TONGBAO" ;
### 备注信息
COMMENT ON COLUMN "TONGBAO"."T_RECHARGE_OBSOLETE"."ID" IS 'ID';
COMMENT ON COLUMN "TONGBAO"."T_RECHARGE_OBSOLETE"."NUM" IS '原充值订单号';
COMMENT ON COLUMN "TONGBAO"."T_RECHARGE_OBSOLETE"."PAYAMOUNT" IS '充值的订单积分';
COMMENT ON COLUMN "TONGBAO"."T_RECHARGE_OBSOLETE"."BALANCE" IS '充值剩余的订单积分';
COMMENT ON COLUMN "TONGBAO"."T_RECHARGE_OBSOLETE"."ORIGINAL_TIME" IS '原充值订单时间';
COMMENT ON COLUMN "TONGBAO"."T_RECHARGE_OBSOLETE"."DATETIME" IS '处理订单时间';
### **t_AMOUNT_record**(原赠送记录表t_amount)赠送作废的订单**
create sequence seq_amount_record_id
increment by 1
start with 1
nomaxvalue
nominvalue
nocache;
### 创建表
CREATE TABLE "TONGBAO"."T_AMOUNT_RECORD"
( "ID" CHAR(10 BYTE) NOT NULL ENABLE,
"ORIGINAL_ACCOUNT" VARCHAR2(2000 BYTE),
"CHANGE_ACCOUNT" VARCHAR2(2000 BYTE),
"AMOUNT" NUMBER(10,2),
"TYPE" VARCHAR2(2 BYTE) NOT NULL ENABLE,
"REMARK" VARCHAR2(200 BYTE) NOT NULL ENABLE,
"DATETIME" VARCHAR2(20 BYTE) NOT NULL ENABLE,
“OBSOLETE_NUM” VARCHAR2(200 BYTE) NOT NULL ENABLE,
CONSTRAINT "T_AMOUNT_RECORD_PK" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "TONGBAO" ENABLE
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "TONGBAO" ;
### 备注信息
COMMENT ON COLUMN "TONGBAO"."T_AMOUNT_RECORD"."ID" IS 'ID';
COMMENT ON COLUMN "TONGBAO"."T_AMOUNT_RECORD"."ORIGINAL_ACCOUNT" IS '原账户所有的信息';
COMMENT ON COLUMN "TONGBAO"."T_AMOUNT_RECORD"."CHANGE_ACCOUNT" IS '变更后的账户所有的信息';
COMMENT ON COLUMN "TONGBAO"."T_AMOUNT_RECORD"."AMOUNT" IS '处理的积分';
COMMENT ON COLUMN "TONGBAO"."T_AMOUNT_RECORD"."TYPE" IS '1是本金,2是赠送积分';
COMMENT ON COLUMN "TONGBAO"."T_AMOUNT_RECORD"."REMARK" IS '备注信息';
COMMENT ON COLUMN "TONGBAO"."T_AMOUNT_RECORD"."DATETIME" IS '处理订单时间';
COMMENT ON COLUMN "TONGBAO"."T_AMOUNT_RECORD"."OBSOLETE_NUM" IS '处理作废的订单号';
- 通宝+后台
- 新数据字典
- 测试数据库配置
- 核心账户改造需求文档
- 物业霸王餐
- 物业霸王餐上线流程
- 4月27版本上线数据库变动情况
- 5月7日2.22版本上线数据库变动情况
- 5月7日2.22版本上线须知
- 5月26日2.23版本数据库变动情况
- 6月9日2.24版本数据库变动情况
- 7月22日2.25版本数据库变动情况
- 9月4日2.26版本数据库变动情况
- 11月11日添加汇款规则设置
- 20.11.23大额转账转用大额组件
- 20.11.25监控mns异常消息
- 20.12.04 通宝+入口限制
- 20.12.24 3.0通宝+阶梯利率
- 21.01.08 通宝+迁移景安方案
- 21.01.29 物业霸王餐2.0
- 21.02.02 结算添加88折补贴金额
- 21.03.22 大额汇款赠送活动增加限制条件
- 21.05.20 代他付
- 21.06.28 充值对账
- 21.07.03 添加折扣退款补贴
- 8月14版本,前端icon优化
- D0对账
- 账户注销
- 通宝+充值作废
- 通宝+商家商户信息
- 上线注意事项
- 上线执行sql语句
- 物业缴费
- 1.查询用户欠费绑定的信息
- 2.1手机号查询信息接口