Commit 6f2f749b authored by zhangqingle's avatar zhangqingle

修改接口

parent 8ae0353f
...@@ -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} " +
......
...@@ -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")})
@DeleteMapping("/deleteMore") @PostMapping("/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,
......
...@@ -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);
} }
...@@ -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;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment