fix
This commit is contained in:
parent
0854748cfe
commit
efd58ac624
@ -63,7 +63,7 @@ insert_order(Fields = #{
|
|||||||
<<"equipValue">> := EquipValue, <<"etype">> := EType,
|
<<"equipValue">> := EquipValue, <<"etype">> := EType,
|
||||||
<<"storeId">> := StoreId, <<"storeName">> := StoreName}) ->
|
<<"storeId">> := StoreId, <<"storeName">> := StoreName}) ->
|
||||||
|
|
||||||
mysql_pool:insert(<<"order">>, #{
|
mysql_pool:insert(<<"orders">>, #{
|
||||||
<<"outTradeNo">> => OutTradeNo,
|
<<"outTradeNo">> => OutTradeNo,
|
||||||
<<"orderAmount">> => OrderAmount,
|
<<"orderAmount">> => OrderAmount,
|
||||||
<<"serviceName">> => maps:get(<<"serviceName">>, Fields, <<"">>),
|
<<"serviceName">> => maps:get(<<"serviceName">>, Fields, <<"">>),
|
||||||
|
|||||||
@ -45,7 +45,7 @@ CREATE TABLE `equip_status` (
|
|||||||
KEY (`equipValue`)
|
KEY (`equipValue`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
|
||||||
CREATE TABLE `order` (
|
CREATE TABLE `orders` (
|
||||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
`outTradeNo` varchar(100) NOT NULL DEFAULT '' COMMENT '订单号',
|
`outTradeNo` varchar(100) NOT NULL DEFAULT '' COMMENT '订单号',
|
||||||
`orderAmount` decimal(11,2) DEFAULT NULL COMMENT '订单金额',
|
`orderAmount` decimal(11,2) DEFAULT NULL COMMENT '订单金额',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user