Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
8f1dda00
Commit
8f1dda00
authored
Sep 08, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql update
parent
05233729
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
3 deletions
+34
-3
BatchFeignCallService.java
...va/com/tanpu/community/service/BatchFeignCallService.java
+2
-2
v2.sql
docs/v2.sql
+32
-1
No files found.
community-service/src/main/java/com/tanpu/community/service/BatchFeignCallService.java
View file @
8f1dda00
...
@@ -108,9 +108,9 @@ public class BatchFeignCallService {
...
@@ -108,9 +108,9 @@ public class BatchFeignCallService {
Map
<
String
,
String
>
topicMap
=
Maps
.
newHashMap
();
Map
<
String
,
String
>
topicMap
=
Maps
.
newHashMap
();
// 图片信息
// 图片信息
Map
<
String
,
UserInfoResp
>
userMap
=
Maps
.
newHashMap
();
Map
<
String
,
UserInfoResp
>
userMap
=
Maps
.
newHashMap
();
// 批量查询资源信息
// 批量查询资源信息
,将不同类型的id抽取,并通过ids查询并存放到id-对象Map中
this
.
getResInfo
(
shortVideoMap
,
curriculumMap
,
courseMap
,
zhiboMap
,
fundMap
,
activityMap
,
imgMap
,
topicMap
,
userMap
,
themeQos
);
this
.
getResInfo
(
shortVideoMap
,
curriculumMap
,
courseMap
,
zhiboMap
,
fundMap
,
activityMap
,
imgMap
,
topicMap
,
userMap
,
themeQos
);
//逐个装入
//逐个装入
,将对象放入到Content中的detail对象中
setResInfo
(
themeQos
,
shortVideoMap
,
curriculumMap
,
courseMap
,
zhiboMap
,
fundMap
,
activityMap
,
imgMap
,
userMap
,
topicMap
);
setResInfo
(
themeQos
,
shortVideoMap
,
curriculumMap
,
courseMap
,
zhiboMap
,
fundMap
,
activityMap
,
imgMap
,
userMap
,
topicMap
);
}
}
...
...
docs/v2.sql
View file @
8f1dda00
...
@@ -16,4 +16,35 @@ CREATE TABLE `notification` (
...
@@ -16,4 +16,35 @@ CREATE TABLE `notification` (
`delete_tag`
int
(
3
)
NOT
NULL
DEFAULT
'0'
,
`delete_tag`
int
(
3
)
NOT
NULL
DEFAULT
'0'
,
PRIMARY
KEY
(
`id`
),
PRIMARY
KEY
(
`id`
),
KEY
`idx_user_type_time`
(
`notified_user_id`
,
`update_time`
,
`message_type`
)
USING
BTREE
KEY
`idx_user_type_time`
(
`notified_user_id`
,
`update_time`
,
`message_type`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'消息通知记录'
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'消息通知记录'
;
\ No newline at end of file
CREATE
TABLE
`user_poster_attachement`
(
`id`
bigint
(
32
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'id'
,
`user_id`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'用户Id'
,
`type`
varchar
(
16
)
NOT
NULL
DEFAULT
''
COMMENT
'附件类型'
,
`target_id`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'附件Id'
,
`sub_type`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'子类型,article-source,fund-type'
,
`course_packageId`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'课程包'
,
`product_is_recommend`
int
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'是否推荐'
,
`product_recommend`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
COMMENT
'推荐语'
,
`create_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`update_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`delete_tag`
int
(
3
)
NOT
NULL
DEFAULT
'0'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
KEY
`idx_type_id`
(
`tpye`
,
`target_id`
,
`delete_tag`
)
USING
BTREE
,
KEY
`idx_user_type_id`
(
`user_id`
,
`type`
,
`target_id`
,
`delete_tag`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'工作室海报附件表'
;
CREATE
TABLE
`theme_text_filter`
(
`id`
bigint
(
32
)
NOT
NULL
COMMENT
'id'
,
`theme_id`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'主题Id'
,
`partition`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'分块'
,
`partition_hash`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'分块hash'
,
`partition_num`
int
NOT
NULL
DEFAULT
0
COMMENT
'分块号'
,
`total_parts`
int
NOT
NULL
DEFAULT
0
COMMENT
'分块总数'
,
`create_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`update_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`delete_tag`
int
(
3
)
NOT
NULL
DEFAULT
'0'
,
PRIMARY
KEY
(
`id`
),
KEY
`idx_hash_theme_num`
(
`partition_hash`
,
`theme_id`
,
`partition_num`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'主题文字查重表'
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment