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
0a802620
Commit
0a802620
authored
Jul 15, 2020
by
liuyuanjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
isNew的修改
parent
421c9425
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
BLessonPersonServiceImpl.java
...siness/blesson/service/impl/BLessonPersonServiceImpl.java
+1
-4
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+1
-3
No files found.
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonPersonServiceImpl.java
View file @
0a802620
...
@@ -494,7 +494,7 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
...
@@ -494,7 +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
+
"---------------"
);
log
.
info
(
"-----------addNew------课程查看状态2--"
+
"--"
+
b
.
getBusinessId
()
+
"--"
+
userId
+
flag
+
"---------------"
);
//step 2 存在则返回,不存在则判断时间 满足条件 setIsNew() flag <= 0 说明此用户未点击过该课程
//step 2 存在则返回,不存在则判断时间 满足条件 setIsNew() flag <= 0 说明此用户未点击过该课程
if
(
flag
<=
0
)
{
if
(
flag
<=
0
)
{
//获取课程的 指派时间
//获取课程的 指派时间
...
@@ -511,10 +511,7 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
...
@@ -511,10 +511,7 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
b
.
setIsNew
(
"1"
);
b
.
setIsNew
(
"1"
);
log
.
info
(
"-----------addNew---------当前课程已设置new-------"
+
b
);
log
.
info
(
"-----------addNew---------当前课程已设置new-------"
+
b
);
}
}
}
else
{
b
.
setIsNew
(
""
);
}
}
b
.
setIsNew
(
""
);
}
}
return
result
;
return
result
;
}
}
...
...
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
0a802620
...
@@ -1989,7 +1989,7 @@ public class BLessonServiceImpl implements BLessonService {
...
@@ -1989,7 +1989,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------课程查看状态1--"
+
flag
+
"--"
+
b
.
getBusinessId
()
+
"--"
+
userId
+
"---------------"
);
log
.
info
(
"-----------addNew------课程查看状态1--"
+
"--"
+
b
.
getBusinessId
()
+
"--"
+
userId
+
flag
+
"---------------"
);
//step 2 存在则返回,不存在则判断时间 满足条件 setIsNew() flag <= 0 说明此用户未点击过该课程
//step 2 存在则返回,不存在则判断时间 满足条件 setIsNew() flag <= 0 说明此用户未点击过该课程
if
(
flag
<=
0
)
{
if
(
flag
<=
0
)
{
//获取课程的 发布时间
//获取课程的 发布时间
...
@@ -2006,8 +2006,6 @@ public class BLessonServiceImpl implements BLessonService {
...
@@ -2006,8 +2006,6 @@ public class BLessonServiceImpl implements BLessonService {
b
.
setIsNew
(
"1"
);
b
.
setIsNew
(
"1"
);
log
.
info
(
"-----------addNew---------当前课程已设置new-------"
+
b
);
log
.
info
(
"-----------addNew---------当前课程已设置new-------"
+
b
);
}
}
}
else
{
b
.
setIsNew
(
""
);
}
}
}
}
return
result
;
return
result
;
...
...
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