Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
nyx
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
发现
nyx
Commits
22e51fc7
Commit
22e51fc7
authored
Jun 03, 2020
by
jscat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nyx: 更改为online store模式
添加新的mysql语句。
parent
a59618ef
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
120 行增加
和
10 行删除
+120
-10
增值产品-小程序及app/doc/create_table_sql/mall/create_table_goods.sql
+29
-0
增值产品-小程序及app/doc/create_table_sql/mall/create_table_goods_detail.sql
+66
-0
增值产品-小程序及app/doc/create_table_sql/mall/create_view_goods.sql
+21
-0
增值产品-小程序及app/nyx_app_key/.idea/workspace.xml
+4
-10
没有找到文件。
增值产品-小程序及app/doc/create_table_sql/mall/create_table_goods.sql
0 → 100644
查看文件 @
22e51fc7
USE
rockwell_key
;
USE
rockwell_key
;
/*
wine与member映射表
什么wine,在哪家member,有多少数量,价格多少
wine和member的关系 1:n 一种wine可以在多个member那里
*/
DROP
TABLE
IF
EXISTS
tbl_goods
;
CREATE
TABLE
tbl_goods
(
`goods_id`
VARCHAR
(
100
)
COMMENT
'goods的id, uuid format'
,
`goods_status`
VARCHAR
(
10
)
COMMENT
'商品状态: 0:非可售 1:可售'
,
`detail_id`
VARCHAR
(
100
)
COMMENT
'商品的详情id, uuid format'
,
`member_id`
VARCHAR
(
100
)
COMMENT
'渠道id, uuid format'
,
`price`
decimal
(
18
,
2
)
DEFAULT
'0.00'
COMMENT
'价格'
,
`amount`
decimal
(
18
,
2
)
DEFAULT
'0.00'
COMMENT
'数量'
,
`create_datetime`
DATETIME
NOT
NULL
DEFAULT
'0000-00-00 00:00:00'
,
`update_datetime`
DATETIME
DEFAULT
NULL
,
PRIMARY
KEY
(
`goods_id`
,
`detail_id`
,
`member_id`
),
KEY
`query_key`
(
`goods_status`
))
ENGINE
=
INNODB
DEFAULT
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
COMMENT
=
'酒肆商品主表,记录wine、商家映射表'
;
insert
into
`tbl_goods`
(
`goods_id`
,
`goods_status`
,
`detail_id`
,
`member_id`
,
`price`
,
`amount`
,
`create_datetime`
,
`update_datetime`
)
values
(
'gid_001'
,
'1'
,
'did_001'
,
'mid_001'
,
10
.
5
,
10
,
'2020-05-20 11:24:45'
,
'2020-05-20 11:24:45'
),
(
'gid_002'
,
'1'
,
'did_001'
,
'mid_002'
,
11
.
5
,
20
,
'2020-05-20 11:24:45'
,
'2020-05-20 11:24:45'
);
增值产品-小程序及app/doc/create_table_sql/mall/create_table_goods_detail.sql
0 → 100644
查看文件 @
22e51fc7
USE
`rockwell_key`
;
USE
`rockwell_key`
;
/*
wine信息 与 商户无关
场景
需求:
1) 我想要买什么: sb,输入sb
2) 我想要配餐酒:brie,输入brie
搜索附近的sb或者与brie匹配的wine,按评分(scores)从高到底排序: 图片,名字,价格,评分,评论数
点击 进入 详情页
名字, 评分, 评论数,
类型/ abv / 产地
详情/评论
category
region
abv
body
sweet-dry scale
tasting notes
food pairing
suggested glassware
suggested serving temperature
review
write review / sort 最新/最高/最低
分页
*/
DROP
TABLE
IF
EXISTS
`tbl_goods_detail`
;
CREATE
TABLE
`tbl_goods_detail`
(
`detail_id`
VARCHAR
(
100
)
NOT
NULL
COMMENT
'具体描述的id, uuid format'
,
`wine_name`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'wine名字'
,
`category`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'类别'
,
`region`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'产地'
,
`abv`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'酒精度'
,
`wine_body`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'酒体'
,
`scale`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'甜度'
,
`tasting_notes`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'notes'
,
`glassware`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'酒杯'
,
`temperature`
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'温度'
,
`scores`
VARCHAR
(
10
)
DEFAULT
'0'
COMMENT
'评分'
,
`num_reviews`
VARCHAR
(
10
)
DEFAULT
'0'
COMMENT
'评论数'
,
`food_pairing`
VARCHAR
(
200
)
DEFAULT
''
COMMENT
'食物配餐'
,
`img_url`
VARCHAR
(
1000
)
DEFAULT
NULL
COMMENT
'图片链接'
,
`create_datetime`
DATETIME
NOT
NULL
DEFAULT
'0000-00-00 00:00:00'
COMMENT
'创建时间'
,
`update_datetime`
DATETIME
DEFAULT
NULL
COMMENT
'最近一次更新时间'
,
PRIMARY
KEY
(
`detail_id`
),
KEY
`query_key`
(
`wine_name`
,
`food_pairing`
)
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'wine商品详细表'
;
/*Data for the table `tbl_goods_detail` */
INSERT
INTO
`tbl_goods_detail`
(
`detail_id`
,
`wine_name`
,
`category`
,
`region`
,
`abv`
,
`wine_body`
,
`scale`
,
`tasting_notes`
,
`glassware`
,
`temperature`
,
`scores`
,
`num_reviews`
,
`food_pairing`
,
`img_url`
,
`create_datetime`
,
`update_datetime`
)
VALUES
(
'did_001'
,
'Oyster Bay Marlborough Sauvignon Blanc'
,
'Sauvignon Blanc'
,
'Marlborough, New Zealand'
,
'13%'
,
'light'
,
'dry'
,
'citrus, tropical fruit, vegetal'
,
'standard white glass'
,
'45-50° F'
,
'4.6'
,
'82'
,
'醉蟹,毛豆,水煮虾姑'
,
'https://930-test-sh.oss-cn-shanghai.aliyuncs.com/m_image/cincin.jpg
\r\n
'
,
'2020-05-20 11:24:45'
,
'2020-05-20 11:24:45'
)
;
增值产品-小程序及app/doc/create_table_sql/mall/create_view_goods.sql
0 → 100644
查看文件 @
22e51fc7
USE
rockwell_key
;
USE
rockwell_key
;
/*
view goods
*/
DROP
VIEW
IF
EXISTS
view_goods
;
CREATE
VIEW
view_goods
AS
SELECT
aa
.
goods_id
,
aa
.
goods_status
,
aa
.
price
,
aa
.
amount
,
bb
.
wine_name
,
CONCAT
(
bb
.
category
,
" / ABV "
,
bb
.
abv
,
" / "
,
bb
.
region
)
AS
wine_desc
,
bb
.
category
,
bb
.
region
,
bb
.
abv
,
bb
.
wine_body
,
bb
.
scale
,
bb
.
tasting_notes
,
bb
.
glassware
,
bb
.
temperature
,
bb
.
scores
,
bb
.
num_reviews
,
bb
.
food_pairing
,
cc
.
member_name
,
cc
.
member_address
,
cc
.
lon
,
cc
.
lat
,
cc
.
geo_code
,
bb
.
img_url
,
aa
.
create_datetime
,
aa
.
update_datetime
FROM
tbl_goods
aa
LEFT
JOIN
tbl_goods_detail
bb
ON
aa
.
detail_id
=
bb
.
detail_id
LEFT
JOIN
tbl_member
cc
ON
aa
.
member_id
=
cc
.
id
增值产品-小程序及app/nyx_app_key/.idea/workspace.xml
查看文件 @
22e51fc7
<?xml
version="1.0" encoding="UTF-8"?>
<?xml
version="1.0" encoding="UTF-8"?>
...
@@ -3,14 +3,6 @@
...
@@ -3,14 +3,6 @@
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"86dc399d-9323-4124-8c4f-671d1ecb849c"
name=
"Default Changelist"
comment=
""
>
<list
default=
"true"
id=
"86dc399d-9323-4124-8c4f-671d1ecb849c"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/api/pom.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/api/pom.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/api/src/main/java/cn/com/fun/nyxkey/api/common/Constants.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/api/src/main/java/cn/com/fun/nyxkey/api/common/Constants.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/api/src/main/java/cn/com/fun/nyxkey/api/common/JSONResult.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/api/src/main/java/cn/com/fun/nyxkey/api/common/JSONResult.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/api/src/main/java/cn/com/fun/nyxkey/api/domain/Rockwell_userT_user.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/api/src/main/java/cn/com/fun/nyxkey/api/domain/Rockwell_userT_user.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/api/src/main/java/cn/com/fun/nyxkey/api/service/Rockwell_userService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/api/src/main/java/cn/com/fun/nyxkey/api/service/Rockwell_userService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/api/src/main/java/cn/com/fun/nyxkey/api/service/impl/Rockwell_userServiceImpl.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/api/src/main/java/cn/com/fun/nyxkey/api/service/impl/Rockwell_userServiceImpl.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/api/src/main/java/cn/com/fun/nyxkey/api/web/controller/UserApiController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/api/src/main/java/cn/com/fun/nyxkey/api/web/controller/UserApiController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/api/src/main/resources/config/application.yml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/api/src/main/resources/config/application.yml"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
@@ -59,7 +51,7 @@
...
@@ -59,7 +51,7 @@
</list>
</list>
</option>
</option>
</component>
</component>
<component
name=
"RunManager"
selected=
"
Maven.mvn_package
"
>
<component
name=
"RunManager"
selected=
"
Application.nyx-api
"
>
<configuration
name=
"nyx-api"
type=
"Application"
factoryName=
"Application"
>
<configuration
name=
"nyx-api"
type=
"Application"
factoryName=
"Application"
>
<envs>
<envs>
<env
name=
"LOG_LEVEL"
value=
"DEBUG"
/>
<env
name=
"LOG_LEVEL"
value=
"DEBUG"
/>
...
@@ -125,6 +117,8 @@
...
@@ -125,6 +117,8 @@
<workItem
from=
"1586478722332"
duration=
"33083000"
/>
<workItem
from=
"1586478722332"
duration=
"33083000"
/>
<workItem
from=
"1586702255071"
duration=
"7517000"
/>
<workItem
from=
"1586702255071"
duration=
"7517000"
/>
<workItem
from=
"1586829319403"
duration=
"14510000"
/>
<workItem
from=
"1586829319403"
duration=
"14510000"
/>
<workItem
from=
"1591083963062"
duration=
"2416000"
/>
<workItem
from=
"1591154378115"
duration=
"1508000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论