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
a9a85e58
Commit
a9a85e58
authored
Sep 10, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
线下活动
parent
54d41e3e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
15 deletions
+21
-15
HomePageManager.java
...ain/java/com/tanpu/community/manager/HomePageManager.java
+5
-3
v2.sql
docs/v2.sql
+16
-12
No files found.
community-service/src/main/java/com/tanpu/community/manager/HomePageManager.java
View file @
a9a85e58
...
@@ -176,9 +176,11 @@ public class HomePageManager {
...
@@ -176,9 +176,11 @@ public class HomePageManager {
// 家办活动
// 家办活动
CommonResp
<
List
<
OfflineActivitySimpleResp
>>
activitySimpleResps
=
feignClientForActivity
.
simpleListByOrgid
(
userInfoNew
.
getUserInfoNewOrg
().
getCorpId
());
CommonResp
<
List
<
OfflineActivitySimpleResp
>>
activitySimpleResps
=
feignClientForActivity
.
simpleListByOrgid
(
userInfoNew
.
getUserInfoNewOrg
().
getCorpId
());
if
(
usetInfoByOrgUserId
.
isSuccess
()
&&
CollectionUtils
.
isNotEmpty
(
usetInfoByOrgUserId
.
getData
()))
{
if
(
usetInfoByOrgUserId
.
isSuccess
()
&&
CollectionUtils
.
isNotEmpty
(
usetInfoByOrgUserId
.
getData
()))
{
List
<
OfflineActivitySimpleResp
>
actities
=
activitySimpleResps
.
getData
();
List
<
OfflineActivitySimpleResp
>
activities
=
activitySimpleResps
.
getData
();
userInfoNew
.
setHoldActivities
(
actities
.
stream
().
filter
(
o
->
o
.
getActivityType
().
equals
(
1
)).
collect
(
Collectors
.
toList
()));
if
(
CollectionUtils
.
isNotEmpty
(
activities
)){
userInfoNew
.
setTeamRecruitment
(
actities
.
stream
().
filter
(
o
->
o
.
getActivityType
().
equals
(
2
)).
collect
(
Collectors
.
toList
()));
userInfoNew
.
setHoldActivities
(
activities
.
stream
().
filter
(
o
->
o
.
getActivityType
().
equals
(
1
)).
collect
(
Collectors
.
toList
()));
userInfoNew
.
setTeamRecruitment
(
activities
.
stream
().
filter
(
o
->
o
.
getActivityType
().
equals
(
2
)).
collect
(
Collectors
.
toList
()));
}
}
}
}
else
{
}
else
{
...
...
docs/v2.sql
View file @
a9a85e58
...
@@ -35,13 +35,17 @@ CREATE TABLE `user_poster_attachement` (
...
@@ -35,13 +35,17 @@ CREATE TABLE `user_poster_attachement` (
KEY
`idx_user_type_id`
(
`user_id`
,
`type`
,
`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
=
'工作室海报附件表'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'工作室海报附件表'
;
CREATE
TABLE
`theme_text_filter`
(
-- tamp_community.theme_check_duplicate definition
`id`
bigint
(
32
)
NOT
NULL
COMMENT
'id'
,
use
tamp_community
;
CREATE
TABLE
`theme_check_duplicate`
(
`id`
bigint
(
32
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'id'
,
`theme_id`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'主题Id'
,
`theme_id`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'主题Id'
,
`partition`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'分块'
,
`theme_type`
int
(
3
)
DEFAULT
'0'
,
`partition_text`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'分块'
,
`partition_hash`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'分块hash'
,
`partition_hash`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'分块hash'
,
`partition_num`
int
NOT
NULL
DEFAULT
0
COMMENT
'分块号'
,
`partition_num`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'分块号'
,
`total_parts`
int
NOT
NULL
DEFAULT
0
COMMENT
'分块总数'
,
`total_parts`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'分块总数'
,
`user_id`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'作者id'
,
`create_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`create_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`update_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`update_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`delete_tag`
int
(
3
)
NOT
NULL
DEFAULT
'0'
,
`delete_tag`
int
(
3
)
NOT
NULL
DEFAULT
'0'
,
...
...
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