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
8b6fa377
Commit
8b6fa377
authored
Jun 23, 2020
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 外链管理
parent
17ac1eba
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
BExternalLink.java
.../rcisoft/business/bexternallink/entity/BExternalLink.java
+7
-0
BLessonController.java
...cisoft/business/blesson/controller/BLessonController.java
+1
-1
BLessonRepository.java
...a/org/rcisoft/business/blesson/dao/BLessonRepository.java
+2
-3
BExternalLinkMapper.xml
...per/business/bexternallink/mapper/BExternalLinkMapper.xml
+2
-0
No files found.
src/main/java/org/rcisoft/business/bexternallink/entity/BExternalLink.java
View file @
8b6fa377
...
...
@@ -52,6 +52,13 @@ public class BExternalLink extends IdEntity<BExternalLink> {
private
String
corpId
;
@ApiModelProperty
(
value
=
"平台推送标志(1:推荐 其他:非推荐)"
)
private
String
isPush
;
@ApiModelProperty
(
value
=
"推送源主键id"
)
private
String
supperId
;
public
BExternalLink
(
String
businessId
){
this
.
businessId
=
businessId
;
}
...
...
src/main/java/org/rcisoft/business/blesson/controller/BLessonController.java
View file @
8b6fa377
...
...
@@ -801,7 +801,7 @@ public class BLessonController extends PaginationController<BLesson> {
* @return
*/
@ApiOperation
(
value
=
"646 分页查询平台推荐"
,
notes
=
"分页查询平台推荐"
,
response
=
BLesson
.
class
)
@GetMapping
(
value
=
"/queryP
ersonMore
ByPagination"
)
@GetMapping
(
value
=
"/queryP
ush
ByPagination"
)
public
Result
queryPushByPagination
(
CurUser
curUser
,
BindingResult
bindingResult
)
{
bLessonService
.
queryPushByPagination
(
getPaginationUtility
(),
curUser
);
GridModel
gridModel
=
getGridModelResponse
();
...
...
src/main/java/org/rcisoft/business/blesson/dao/BLessonRepository.java
View file @
8b6fa377
...
...
@@ -357,7 +357,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
* @param lessonId
* @return
*/
@Select
(
"
<script>
select * from ( "
+
@Select
(
"select * from ( "
+
"select business_id businessId,l_name lName from b_label "
+
"where business_id in (SELECT "
+
"SUBSTRING_INDEX(SUBSTRING_INDEX((select push_lable from b_lesson where business_id = #{lessonId}),',',help_topic_id+1),',',-1) AS num "
+
...
...
@@ -380,8 +380,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" AND bls.flag = 1 "
+
" AND bls.business_id = #{lessonId} "
+
"ORDER BY "
+
" CAST( bll.sort AS UNSIGNED ) ASC) b"
+
" </script>"
)
" CAST( bll.sort AS UNSIGNED ) ASC) b "
)
List
<
QueryLabelResDTO
>
queryPushLabelByLessonId
(
String
lessonId
);
/**
...
...
src/main/resources/mapper/business/bexternallink/mapper/BExternalLinkMapper.xml
View file @
8b6fa377
...
...
@@ -17,6 +17,8 @@
<result
column=
"type"
jdbcType=
"VARCHAR"
property=
"type"
/>
<result
column=
"sort"
jdbcType=
"INTEGER"
property=
"sort"
/>
<result
column=
"corp_id"
jdbcType=
"VARCHAR"
property=
"corpId"
/>
<result
column=
"is_push"
jdbcType=
"VARCHAR"
property=
"isPush"
/>
<result
column=
"supper_id"
jdbcType=
"VARCHAR"
property=
"supperId"
/>
</resultMap>
<!--<cache type="${corePackag!}.util.RedisCache"/>-->
...
...
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