### 需更新sql
#### 规则
alter table t_deposit_rule add type varchar(3);
alter table t_deposit_rule add pid varchar(3) default 1;
alter table t_amount add wy_score number(10,2) default 0;
alter table t_orders add pid varchar(3) ;
INSERT INTO "TONGBAO"."T_DEPOSIT_TIME" (ID, MIN_TIME, MAX_TIME, TYPE, USERID, USERNAME, DATETIME, RATE) VALUES ('2', '2', '12', '2', '1', 'tb_admin', '1583200329', '15')
注意删除利率表ostart:
DELETE FROM t_deposit_rule;
end;
创建分类表
CREATE TABLE "TONGBAO"."T_DEPOSIT_AREA"
( "ID" VARCHAR2(20 BYTE) NOT NULL ENABLE,
"NAME" VARCHAR2(2000 BYTE),
"TYPE" VARCHAR2(20 BYTE),
"DATETIME" VARCHAR2(20 BYTE),
CONSTRAINT "T_DEPOSIT_AREA_PK" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
TABLESPACE "TONGBAO" ENABLE
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "TONGBAO" ;
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_AREA"."NAME" IS '名称';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_AREA"."TYPE" IS '类型:1商品霸王餐2物业霸王餐';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_AREA"."DATETIME" IS '创建时间';
create sequence seq_deposit_area_id
increment by 1
start with 1
nomaxvalue
nominvalue
nocache;
#### 商品订单表
CREATE TABLE "TONGBAO"."T_DEPOSIT_SHOP"
( "ID" CHAR(10 BYTE) NOT NULL ENABLE,
"SORDER" VARCHAR2(50 BYTE),
"DEPOSIT_AMOUNT" VARCHAR2(200 BYTE),
"DEPOSIT_SCORE" VARCHAR2(20 BYTE),
"DEPOSIT_DATE" VARCHAR2(200 BYTE),
"DEPOSIT_RULE" VARCHAR2(200 BYTE),
"DEPOSIT_DETAILS" VARCHAR2(200 BYTE),
"CUSTOMID" VARCHAR2(50 BYTE),
"DATETIME" VARCHAR2(200 BYTE),
"UPDATETIME" VARCHAR2(200 BYTE),
"DEPOSIT_TYPE" VARCHAR2(20 BYTE) DEFAULT 0,
"STATUS" VARCHAR2(20 BYTE) DEFAULT 0,
"PAID_AMOUNT" VARCHAR2(20 BYTE),
CONSTRAINT "T_DEPOSIT_SHOP_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_DEPOSIT_SHOP"."ID" IS 'ID';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_SHOP"."SORDER" IS '商品订单';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_SHOP"."DEPOSIT_AMOUNT" IS '定存的金额';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_SHOP"."DEPOSIT_SCORE" IS '定存计息';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_SHOP"."DEPOSIT_DATE" IS '定存日期';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_SHOP"."DEPOSIT_RULE" IS '定存规则';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_SHOP"."DEPOSIT_DETAILS" IS '定存信息';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_SHOP"."CUSTOMID" IS '会员id';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_SHOP"."DATETIME" IS '添加时间';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_SHOP"."UPDATETIME" IS '修改时间';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_SHOP"."DEPOSIT_TYPE" IS '支付方式 1 pos 2 大额 0未选择支付方式';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_SHOP"."STATUS" IS '0 创建中 1确定支付方式 2进行中 3支付完成 4失效 5 退款';
#### 分笔支付记录表
CREATE TABLE "TONGBAO"."T_DEPOSIT_POINTPEN"
( "ID" VARCHAR2(20 BYTE) NOT NULL ENABLE,
"SORDER" VARCHAR2(20 BYTE),
"PAY_AMOUNT" NUMBER(10,2),
"DEPOSIT_TYPE" VARCHAR2(20 BYTE),
"DATETIME" VARCHAR2(20 BYTE),
CONSTRAINT "PAYORDERS_PK" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
TABLESPACE "TONGBAO" ENABLE
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "TONGBAO" ;
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_POINTPEN"."ID" IS 'ID';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_POINTPEN"."SORDER" IS '商品订单';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_POINTPEN"."PAY_AMOUNT" IS '支付金额';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_POINTPEN"."DEPOSIT_TYPE" IS '支付方式 pos充值(301)302 银行卡 303 支付宝 304 微信';
COMMENT ON COLUMN "TONGBAO"."T_DEPOSIT_POINTPEN"."DATETIME" IS '支付时间';
create sequence seq_deposit_pointpen_id
increment by 1
start with 1
nomaxvalue
nominvalue
nocache;
create sequence seq_deposit_shop_id
increment by 1
start with 1
nomaxvalue
nominvalue
nocache;
- 通宝+后台
- 新数据字典
- 测试数据库配置
- 核心账户改造需求文档
- 物业霸王餐
- 物业霸王餐上线流程
- 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手机号查询信息接口