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
72523e22
Commit
72523e22
authored
Sep 13, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
机构成员
parent
01cabc67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
UserInfoOrg.java
...npu/community/api/beans/vo/feign/fatools/UserInfoOrg.java
+6
-0
ThemeTextCheckService.java
...va/com/tanpu/community/service/ThemeTextCheckService.java
+7
-5
No files found.
community-api/src/main/java/com/tanpu/community/api/beans/vo/feign/fatools/UserInfoOrg.java
View file @
72523e22
...
@@ -31,5 +31,11 @@ public class UserInfoOrg {
...
@@ -31,5 +31,11 @@ public class UserInfoOrg {
private
String
certPosition
;
private
String
certPosition
;
@ApiModelProperty
(
"是否已关注 0未关注 1已关注"
)
@ApiModelProperty
(
"是否已关注 0未关注 1已关注"
)
private
Integer
isFollower
=
0
;
private
Integer
isFollower
=
0
;
@ApiModelProperty
(
"全新用户等级体系 详见 UserLevelEnum"
)
private
Integer
levelGrade
;
@ApiModelProperty
(
"当levelGrade=10有值 1投资萌新 2投资达人"
)
private
Integer
userInvestorType
;
@ApiModelProperty
(
"用户类型 1个人 2机构账号 3机构人员"
)
private
Integer
userType
;
}
}
community-service/src/main/java/com/tanpu/community/service/ThemeTextCheckService.java
View file @
72523e22
...
@@ -5,6 +5,7 @@ import com.tanpu.common.constant.BizStatus;
...
@@ -5,6 +5,7 @@ import com.tanpu.common.constant.BizStatus;
import
com.tanpu.common.exception.BizException
;
import
com.tanpu.common.exception.BizException
;
import
com.tanpu.community.dao.entity.community.ThemeCheckDuplicateEntity
;
import
com.tanpu.community.dao.entity.community.ThemeCheckDuplicateEntity
;
import
com.tanpu.community.dao.mapper.community.ThemeCheckDuplicateMapper
;
import
com.tanpu.community.dao.mapper.community.ThemeCheckDuplicateMapper
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
...
@@ -28,8 +29,8 @@ public class ThemeTextCheckService {
...
@@ -28,8 +29,8 @@ public class ThemeTextCheckService {
content
=
content
.
replaceAll
(
regex
,
"。"
);
content
=
content
.
replaceAll
(
regex
,
"。"
);
String
[]
split
=
content
.
split
(
"。"
);
String
[]
split
=
content
.
split
(
"。"
);
for
(
int
i
=
0
;
i
<
split
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
split
.
length
;
i
++)
{
getMD5
(
split
[
i
]);
String
trim
=
StringUtils
.
trim
(
split
[
i
]);
insert
(
themeId
,
split
[
i
],
getMD5
(
split
[
i
]
),
i
+
1
,
split
.
length
,
userId
);
insert
(
themeId
,
trim
,
getMD5
(
trim
),
i
+
1
,
split
.
length
,
userId
);
}
}
}
}
...
@@ -58,7 +59,8 @@ public class ThemeTextCheckService {
...
@@ -58,7 +59,8 @@ public class ThemeTextCheckService {
String
[]
split
=
content
.
split
(
"。"
);
String
[]
split
=
content
.
split
(
"。"
);
List
<
String
>
list
=
new
ArrayList
<>();
List
<
String
>
list
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
split
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
split
.
length
;
i
++)
{
list
.
add
(
getMD5
(
split
[
i
]));
String
trim
=
StringUtils
.
trim
(
split
[
i
]);
list
.
add
(
getMD5
(
trim
));
}
}
LambdaQueryWrapper
<
ThemeCheckDuplicateEntity
>
w
=
new
LambdaQueryWrapper
<
ThemeCheckDuplicateEntity
>().
in
(
ThemeCheckDuplicateEntity:
:
getPartitionHash
,
list
)
LambdaQueryWrapper
<
ThemeCheckDuplicateEntity
>
w
=
new
LambdaQueryWrapper
<
ThemeCheckDuplicateEntity
>().
in
(
ThemeCheckDuplicateEntity:
:
getPartitionHash
,
list
)
.
eq
(
ThemeCheckDuplicateEntity:
:
getDeleteTag
,
BizStatus
.
DeleteTag
.
tag_init
)
.
eq
(
ThemeCheckDuplicateEntity:
:
getDeleteTag
,
BizStatus
.
DeleteTag
.
tag_init
)
...
@@ -92,11 +94,11 @@ public class ThemeTextCheckService {
...
@@ -92,11 +94,11 @@ public class ThemeTextCheckService {
content
=
content
.
replaceAll
(
regex
,
"。"
);
content
=
content
.
replaceAll
(
regex
,
"。"
);
String
[]
split
=
content
.
split
(
"。"
);
String
[]
split
=
content
.
split
(
"。"
);
for
(
int
i
=
0
;
i
<
split
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
split
.
length
;
i
++)
{
getMD5
(
split
[
i
]);
String
trim
=
StringUtils
.
trim
(
split
[
i
]);
ThemeCheckDuplicateEntity
build
=
ThemeCheckDuplicateEntity
.
builder
()
ThemeCheckDuplicateEntity
build
=
ThemeCheckDuplicateEntity
.
builder
()
.
themeId
(
themeId
)
.
themeId
(
themeId
)
.
partitionText
(
split
[
i
]
)
.
partitionText
(
trim
)
.
partitionHash
(
getMD5
(
split
[
i
]))
.
partitionHash
(
getMD5
(
split
[
i
]))
.
partitionNum
(
i
+
1
)
.
partitionNum
(
i
+
1
)
.
totalParts
(
split
.
length
)
.
totalParts
(
split
.
length
)
...
...
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