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
cc1ebdda
Commit
cc1ebdda
authored
Jul 15, 2020
by
liuyuanjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改课程标签查询bug
parent
9a93a2cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
BLabelRepository.java
...ava/org/rcisoft/business/blabel/dao/BLabelRepository.java
+12
-0
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+10
-1
No files found.
src/main/java/org/rcisoft/business/blabel/dao/BLabelRepository.java
View file @
cc1ebdda
package
org
.
rcisoft
.
business
.
blabel
.
dao
;
import
org.apache.ibatis.annotations.*
;
import
org.rcisoft.business.blabel.dto.QueryLabelResDTO
;
import
org.rcisoft.business.blabel.entity.BLabel
;
import
org.rcisoft.core.base.BaseMapper
;
import
org.springframework.stereotype.Repository
;
...
...
@@ -32,4 +33,15 @@ public interface BLabelRepository extends BaseMapper<BLabel> {
@Update
(
"UPDATE b_label SET del_flag='1' where business_id = #{businessId}"
)
int
removeLabel
(
@Param
(
"businessId"
)
String
id
);
/**
* 查询课程push标签
* @return
*/
@Select
(
"<script>"
+
" select business_id businessId ,l_name lName "
+
" from b_label where del_flag != 1 and flag = 1 "
+
" and business_id in "
+
"<foreach collection=\"list\" item=\"item\" open=\"(\" separator=\",\" close=\")\" > #{item} </foreach>"
+
"</script>"
)
List
<
QueryLabelResDTO
>
queryPushLabel
(
@Param
(
"list"
)
String
[]
list
);
}
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
cc1ebdda
...
...
@@ -16,6 +16,7 @@ import org.rcisoft.business.bfile.dao.BPFileRepository;
import
org.rcisoft.business.bfile.dao.BTrainFileRepository
;
import
org.rcisoft.business.bfile.entity.BFile
;
import
org.rcisoft.business.bfile.entity.BTrainFile
;
import
org.rcisoft.business.blabel.dao.BLabelRepository
;
import
org.rcisoft.business.blabel.dto.QueryLabelResDTO
;
import
org.rcisoft.business.blesson.dao.*
;
import
org.rcisoft.business.blesson.dto.*
;
...
...
@@ -163,6 +164,9 @@ public class BLessonServiceImpl implements BLessonService {
@Autowired
BFileRepository
bFileRepository
;
@Autowired
BLabelRepository
bLabelRepository
;
@Value
(
"${upload.replaceHttp:false}"
)
private
String
replaceHttp
;
...
...
@@ -227,7 +231,12 @@ public class BLessonServiceImpl implements BLessonService {
if
(
LessonSycnEnum
.
OPEN
.
getCode
().
equals
(
flag
))
bLessonRepository
.
hotNumberReCount2
(
bLesson
.
getBusinessId
());
}
//添加 推送至企业信息 标签信息
if
(
StringUtils
.
isNotEmpty
(
bLesson
.
getPushLable
()))
{
String
[]
labels
=
bLesson
.
getPushLable
().
split
(
","
);
List
<
QueryLabelResDTO
>
dto
=
bLabelRepository
.
queryPushLabel
(
labels
);
bLesson
.
setLabelList
(
dto
);
}
return
bLesson
;
}
...
...
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