上个功能,我们获取到了用户的优惠券信息了,现在我们对购买的流程进行设计和梳理。在支付的过程中我们需要完成以下流程:
1、将用户账号中的金额转到第三方boss系统的账号中去。
新增金额表:
账号金额表(account_amount):id,user_account_id,amount,created_time,modified_time
DROP TABLE IF EXISTS `account_amount`;
CREATE TABLE `account_amount` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`user_account_id` int(11) NULL DEFAULT NULL COMMENT '用户账号',
`amount` double(10, 2) NULL DEFAULT NULL COMMENT '金额',
`created_time` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0),
`modified_time` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
ALTER TABLE account_amount MODIFY created_time TIMESTAMP NULL D