Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李丛阳
education
Commits
a9c07450
Commit
a9c07450
authored
Jul 15, 2020
by
liuyuanjun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'meiteng-2.0' into master-1.0.2
parents
c760f820
9a93a2cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
BLessonPersonServiceImpl.java
...siness/blesson/service/impl/BLessonPersonServiceImpl.java
+1
-0
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+1
-1
No files found.
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonPersonServiceImpl.java
View file @
a9c07450
...
@@ -494,6 +494,7 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
...
@@ -494,6 +494,7 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
for
(
BLessonPerson
b
:
result
)
{
for
(
BLessonPerson
b
:
result
)
{
//step 1 查询look表中是否有对应任何课程的点击记录
//step 1 查询look表中是否有对应任何课程的点击记录
int
flag
=
bLessonRepository
.
getCountByUserAndLesson
(
userId
,
b
.
getBusinessId
(),
"0"
);
int
flag
=
bLessonRepository
.
getCountByUserAndLesson
(
userId
,
b
.
getBusinessId
(),
"0"
);
log
.
info
(
"-----------addNew------课程查看状态2--"
+
flag
+
"--"
+
b
.
getBusinessId
()
+
"--"
+
userId
+
"---------------"
);
//step 2 存在则返回,不存在则判断时间 满足条件 setIsNew() flag <= 0 说明此用户未点击过该课程
//step 2 存在则返回,不存在则判断时间 满足条件 setIsNew() flag <= 0 说明此用户未点击过该课程
if
(
flag
<=
0
)
{
if
(
flag
<=
0
)
{
//获取课程的 指派时间
//获取课程的 指派时间
...
...
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
a9c07450
...
@@ -1980,7 +1980,7 @@ public class BLessonServiceImpl implements BLessonService {
...
@@ -1980,7 +1980,7 @@ public class BLessonServiceImpl implements BLessonService {
for
(
BLesson
b
:
result
)
{
for
(
BLesson
b
:
result
)
{
//step 1 查询look表中是否有对应任何课程的点击记录
//step 1 查询look表中是否有对应任何课程的点击记录
int
flag
=
bLessonRepository
.
getCountByUserAndLesson
(
userId
,
b
.
getBusinessId
(),
"0"
);
int
flag
=
bLessonRepository
.
getCountByUserAndLesson
(
userId
,
b
.
getBusinessId
(),
"0"
);
log
.
info
(
"-----------addNew------课程查看状态--"
+
flag
+
"--"
+
b
.
getBusinessId
()
+
"--"
+
userId
+
"---------------"
);
log
.
info
(
"-----------addNew------课程查看状态
1
--"
+
flag
+
"--"
+
b
.
getBusinessId
()
+
"--"
+
userId
+
"---------------"
);
//step 2 存在则返回,不存在则判断时间 满足条件 setIsNew() flag <= 0 说明此用户未点击过该课程
//step 2 存在则返回,不存在则判断时间 满足条件 setIsNew() flag <= 0 说明此用户未点击过该课程
if
(
flag
<=
0
)
{
if
(
flag
<=
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