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
6f2f749b
Commit
6f2f749b
authored
Nov 05, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
8ae0353f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
BLessonRepository.java
...a/org/rcisoft/business/blesson/dao/BLessonRepository.java
+3
-1
BMaterialController.java
...ft/business/bmaterial/controller/BMaterialController.java
+1
-1
BMaterialRepository.java
...g/rcisoft/business/bmaterial/dao/BMaterialRepository.java
+6
-6
DelMoreDTO.java
...n/java/org/rcisoft/business/bmaterial/dto/DelMoreDTO.java
+2
-0
No files found.
src/main/java/org/rcisoft/business/blesson/dao/BLessonRepository.java
View file @
6f2f749b
...
@@ -1049,8 +1049,10 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
...
@@ -1049,8 +1049,10 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
/**
/**
* 分页查询我收藏
* 分页查询我收藏
*/
*/
@Select
(
"<script>select
*
from b_lesson bl "
+
@Select
(
"<script>select
bl.*,su.name lecturerName, suc.name createByName
from b_lesson bl "
+
"left join b_collect bc on bl.business_id = bc.lesson_id "
+
"left join b_collect bc on bl.business_id = bc.lesson_id "
+
"left join s_user su on bl.lecturer_id = su.business_id "
+
"left join s_user suc on bl.create_by = suc.business_id "
+
"where 1=1 "
+
"where 1=1 "
+
"and bl.del_flag = 0 and bl.flag = 1 "
+
"and bl.del_flag = 0 and bl.flag = 1 "
+
"and bl.corp_id = #{curUser.corpId} "
+
"and bl.corp_id = #{curUser.corpId} "
+
...
...
src/main/java/org/rcisoft/business/bmaterial/controller/BMaterialController.java
View file @
6f2f749b
...
@@ -73,7 +73,7 @@ public class BMaterialController extends PaginationController<BMaterial> {
...
@@ -73,7 +73,7 @@ public class BMaterialController extends PaginationController<BMaterial> {
@ApiOperation
(
value
=
"1303批量删除"
,
notes
=
"批量删除"
)
@ApiOperation
(
value
=
"1303批量删除"
,
notes
=
"批量删除"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"ids"
,
value
=
"删除business 用逗号隔开"
,
required
=
false
,
dataType
=
"varchar"
)})
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"ids"
,
value
=
"删除business 用逗号隔开"
,
required
=
false
,
dataType
=
"varchar"
)})
@
Delete
Mapping
(
"/deleteMore"
)
@
Post
Mapping
(
"/deleteMore"
)
public
Result
deleteMore
(
CurUser
curUser
,
@Valid
String
ids
,
BindingResult
bindingResult
)
{
public
Result
deleteMore
(
CurUser
curUser
,
@Valid
String
ids
,
BindingResult
bindingResult
)
{
PersistModel
data
=
bMaterialServiceImpl
.
removeMore
(
ids
,
curUser
);
PersistModel
data
=
bMaterialServiceImpl
.
removeMore
(
ids
,
curUser
);
return
Result
.
builder
(
data
,
return
Result
.
builder
(
data
,
...
...
src/main/java/org/rcisoft/business/bmaterial/dao/BMaterialRepository.java
View file @
6f2f749b
...
@@ -100,15 +100,15 @@ public interface BMaterialRepository extends BaseMapper<BMaterial> {
...
@@ -100,15 +100,15 @@ public interface BMaterialRepository extends BaseMapper<BMaterial> {
@Update
({
"<script>"
,
@Update
({
"<script>"
,
"update b_material"
,
"update b_material"
,
" <set>"
,
" <set>"
,
" <if test='
updateBy != null'>update_by=#{
updateBy},</if>"
,
" <if test='
param.updateBy != null'>update_by=#{param.
updateBy},</if>"
,
" <if test='
updateDate != null'>update_date=#{
updateDate},</if>"
,
" <if test='
param.updateDate != null'>update_date=#{param.
updateDate},</if>"
,
" <if test='
delFlag != null'>del_flag=#{
delFlag},</if>"
,
" <if test='
param.delFlag != null'>del_flag=#{param.
delFlag},</if>"
,
" <if test='
flag != null'>flag=#{
flag},</if>"
,
" <if test='
param.flag != null'>flag=#{param.
flag},</if>"
,
" </set>"
,
" </set>"
,
"where business_id in "
,
"where business_id in "
,
"<foreach item='item' index='index' collection='
delMoreDTO
.idList' open='(' separator=',' close=')'> #{item} </foreach> "
,
"<foreach item='item' index='index' collection='
param
.idList' open='(' separator=',' close=')'> #{item} </foreach> "
,
"</script>"
})
"</script>"
})
int
deleteMore
(
@Param
(
"
delMoreDTO
"
)
DelMoreDTO
delMoreDTO
);
int
deleteMore
(
@Param
(
"
param
"
)
DelMoreDTO
delMoreDTO
);
}
}
src/main/java/org/rcisoft/business/bmaterial/dto/DelMoreDTO.java
View file @
6f2f749b
...
@@ -14,6 +14,8 @@ public class DelMoreDTO {
...
@@ -14,6 +14,8 @@ public class DelMoreDTO {
private
String
delFlag
;
private
String
delFlag
;
private
String
flag
;
private
List
<
String
>
idList
;
private
List
<
String
>
idList
;
}
}
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