Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
ruoyi
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
范晓龙
ruoyi
Commits
2648754c
提交
2648754c
authored
10月 24, 2022
作者:
dingtalk_nnkplh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改学校的删除逻辑,当删除学校的时候会将学校相关的专业,图册,入学时间等所有信息都删除
上级
3cf1460a
隐藏空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
148 行增加
和
4 行删除
+148
-4
TbEnrollmentTimeMapper.java
.../java/com/ruoyi/system/mapper/TbEnrollmentTimeMapper.java
+3
-0
TbSchoolAtlasMapper.java
...ain/java/com/ruoyi/system/mapper/TbSchoolAtlasMapper.java
+4
-0
TbSchoolEntranceRequirementsMapper.java
...oyi/system/mapper/TbSchoolEntranceRequirementsMapper.java
+4
-0
TbSchoolFacilitiesMapper.java
...ava/com/ruoyi/system/mapper/TbSchoolFacilitiesMapper.java
+4
-0
TbSchoolMajorMapper.java
...ain/java/com/ruoyi/system/mapper/TbSchoolMajorMapper.java
+3
-0
TbSchoolPartnersMapper.java
.../java/com/ruoyi/system/mapper/TbSchoolPartnersMapper.java
+4
-0
TbSchoolUploadMaterialMapper.java
...com/ruoyi/system/mapper/TbSchoolUploadMaterialMapper.java
+4
-0
TbSchoolAtlasServiceImpl.java
...m/ruoyi/system/service/impl/TbSchoolAtlasServiceImpl.java
+0
-1
TbSchoolServiceImpl.java
...va/com/ruoyi/system/service/impl/TbSchoolServiceImpl.java
+39
-3
TbEnrollmentTimeMapper.xml
...c/main/resources/mapper/system/TbEnrollmentTimeMapper.xml
+12
-0
TbSchoolAtlasMapper.xml
.../src/main/resources/mapper/system/TbSchoolAtlasMapper.xml
+12
-0
TbSchoolEntranceRequirementsMapper.xml
...rces/mapper/system/TbSchoolEntranceRequirementsMapper.xml
+12
-0
TbSchoolFacilitiesMapper.xml
...main/resources/mapper/system/TbSchoolFacilitiesMapper.xml
+12
-0
TbSchoolMajorMapper.xml
.../src/main/resources/mapper/system/TbSchoolMajorMapper.xml
+12
-0
TbSchoolPartnersMapper.xml
...c/main/resources/mapper/system/TbSchoolPartnersMapper.xml
+11
-0
TbSchoolUploadMaterialMapper.xml
.../resources/mapper/system/TbSchoolUploadMaterialMapper.xml
+12
-0
没有找到文件。
ruoyi-system/src/main/java/com/ruoyi/system/mapper/TbEnrollmentTimeMapper.java
浏览文件 @
2648754c
...
@@ -54,6 +54,7 @@ public interface TbEnrollmentTimeMapper
...
@@ -54,6 +54,7 @@ public interface TbEnrollmentTimeMapper
* @return 结果
* @return 结果
*/
*/
public
int
deleteTbEnrollmentTimeById
(
Long
id
);
public
int
deleteTbEnrollmentTimeById
(
Long
id
);
public
int
deleteTbEnrollmentTimeBySchoolId
(
Long
id
);
/**
/**
* 批量删除入学时间
* 批量删除入学时间
...
@@ -62,4 +63,6 @@ public interface TbEnrollmentTimeMapper
...
@@ -62,4 +63,6 @@ public interface TbEnrollmentTimeMapper
* @return 结果
* @return 结果
*/
*/
public
int
deleteTbEnrollmentTimeByIds
(
String
[]
ids
);
public
int
deleteTbEnrollmentTimeByIds
(
String
[]
ids
);
public
int
deleteTbEnrollmentTimeBySchoolIds
(
String
[]
ids
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/TbSchoolAtlasMapper.java
浏览文件 @
2648754c
...
@@ -53,6 +53,8 @@ public interface TbSchoolAtlasMapper
...
@@ -53,6 +53,8 @@ public interface TbSchoolAtlasMapper
*/
*/
public
int
deleteTbSchoolAtlasById
(
Long
id
);
public
int
deleteTbSchoolAtlasById
(
Long
id
);
public
int
deleteTbSchoolAtlasBySchoolId
(
Long
id
);
/**
/**
* 批量删除学校图册
* 批量删除学校图册
*
*
...
@@ -60,4 +62,6 @@ public interface TbSchoolAtlasMapper
...
@@ -60,4 +62,6 @@ public interface TbSchoolAtlasMapper
* @return 结果
* @return 结果
*/
*/
public
int
deleteTbSchoolAtlasByIds
(
String
[]
ids
);
public
int
deleteTbSchoolAtlasByIds
(
String
[]
ids
);
public
int
deleteTbSchoolAtlasBySchoolIds
(
String
[]
ids
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/TbSchoolEntranceRequirementsMapper.java
浏览文件 @
2648754c
...
@@ -65,6 +65,8 @@ public interface TbSchoolEntranceRequirementsMapper
...
@@ -65,6 +65,8 @@ public interface TbSchoolEntranceRequirementsMapper
*/
*/
public
int
deleteTbSchoolEntranceRequirementsById
(
Long
id
);
public
int
deleteTbSchoolEntranceRequirementsById
(
Long
id
);
public
int
deleteTbSchoolEntranceRequirementsBySchoolId
(
Long
id
);
/**
/**
* 批量删除入学要求
* 批量删除入学要求
*
*
...
@@ -72,4 +74,6 @@ public interface TbSchoolEntranceRequirementsMapper
...
@@ -72,4 +74,6 @@ public interface TbSchoolEntranceRequirementsMapper
* @return 结果
* @return 结果
*/
*/
public
int
deleteTbSchoolEntranceRequirementsByIds
(
String
[]
ids
);
public
int
deleteTbSchoolEntranceRequirementsByIds
(
String
[]
ids
);
public
int
deleteTbSchoolEntranceRequirementsBySchoolIds
(
String
[]
ids
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/TbSchoolFacilitiesMapper.java
浏览文件 @
2648754c
...
@@ -53,6 +53,8 @@ public interface TbSchoolFacilitiesMapper
...
@@ -53,6 +53,8 @@ public interface TbSchoolFacilitiesMapper
*/
*/
public
int
deleteTbSchoolFacilitiesById
(
Long
id
);
public
int
deleteTbSchoolFacilitiesById
(
Long
id
);
public
int
deleteTbSchoolFacilitiesBySchoolId
(
Long
id
);
/**
/**
* 批量删除学校设施
* 批量删除学校设施
*
*
...
@@ -60,4 +62,6 @@ public interface TbSchoolFacilitiesMapper
...
@@ -60,4 +62,6 @@ public interface TbSchoolFacilitiesMapper
* @return 结果
* @return 结果
*/
*/
public
int
deleteTbSchoolFacilitiesByIds
(
String
[]
ids
);
public
int
deleteTbSchoolFacilitiesByIds
(
String
[]
ids
);
public
int
deleteTbSchoolFacilitiesBySchoolIds
(
String
[]
ids
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/TbSchoolMajorMapper.java
浏览文件 @
2648754c
...
@@ -63,6 +63,7 @@ public interface TbSchoolMajorMapper
...
@@ -63,6 +63,7 @@ public interface TbSchoolMajorMapper
* @return 结果
* @return 结果
*/
*/
public
int
deleteTbSchoolMajorById
(
Long
id
);
public
int
deleteTbSchoolMajorById
(
Long
id
);
public
int
deleteTbSchoolMajorBySchoolId
(
Long
id
);
/**
/**
* 批量删除学校专业
* 批量删除学校专业
...
@@ -71,4 +72,6 @@ public interface TbSchoolMajorMapper
...
@@ -71,4 +72,6 @@ public interface TbSchoolMajorMapper
* @return 结果
* @return 结果
*/
*/
public
int
deleteTbSchoolMajorByIds
(
String
[]
ids
);
public
int
deleteTbSchoolMajorByIds
(
String
[]
ids
);
public
int
deleteTbSchoolMajorBySchoolIds
(
String
[]
ids
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/TbSchoolPartnersMapper.java
浏览文件 @
2648754c
...
@@ -53,6 +53,8 @@ public interface TbSchoolPartnersMapper
...
@@ -53,6 +53,8 @@ public interface TbSchoolPartnersMapper
*/
*/
public
int
deleteTbSchoolPartnersById
(
Long
id
);
public
int
deleteTbSchoolPartnersById
(
Long
id
);
public
int
deleteTbSchoolPartnersBySchoolId
(
Long
id
);
/**
/**
* 批量删除合作院校
* 批量删除合作院校
*
*
...
@@ -60,4 +62,6 @@ public interface TbSchoolPartnersMapper
...
@@ -60,4 +62,6 @@ public interface TbSchoolPartnersMapper
* @return 结果
* @return 结果
*/
*/
public
int
deleteTbSchoolPartnersByIds
(
String
[]
ids
);
public
int
deleteTbSchoolPartnersByIds
(
String
[]
ids
);
public
int
deleteTbSchoolPartnersBySchoolIds
(
String
[]
ids
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/TbSchoolUploadMaterialMapper.java
浏览文件 @
2648754c
...
@@ -53,6 +53,8 @@ public interface TbSchoolUploadMaterialMapper
...
@@ -53,6 +53,8 @@ public interface TbSchoolUploadMaterialMapper
*/
*/
public
int
deleteTbSchoolUploadMaterialById
(
Long
id
);
public
int
deleteTbSchoolUploadMaterialById
(
Long
id
);
public
int
deleteTbSchoolUploadMaterialBySchoolId
(
Long
id
);
/**
/**
* 批量删除学校上传的材料
* 批量删除学校上传的材料
*
*
...
@@ -60,4 +62,6 @@ public interface TbSchoolUploadMaterialMapper
...
@@ -60,4 +62,6 @@ public interface TbSchoolUploadMaterialMapper
* @return 结果
* @return 结果
*/
*/
public
int
deleteTbSchoolUploadMaterialByIds
(
String
[]
ids
);
public
int
deleteTbSchoolUploadMaterialByIds
(
String
[]
ids
);
public
int
deleteTbSchoolUploadMaterialBySchoolIds
(
String
[]
ids
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TbSchoolAtlasServiceImpl.java
浏览文件 @
2648754c
...
@@ -62,7 +62,6 @@ public class TbSchoolAtlasServiceImpl implements ITbSchoolAtlasService
...
@@ -62,7 +62,6 @@ public class TbSchoolAtlasServiceImpl implements ITbSchoolAtlasService
{
{
List
<
TbSchoolAtlas
>
list
=
tbSchoolAtlasMapper
.
selectTbSchoolAtlasList
(
tbSchoolAtlas
);
List
<
TbSchoolAtlas
>
list
=
tbSchoolAtlasMapper
.
selectTbSchoolAtlasList
(
tbSchoolAtlas
);
list
.
stream
().
filter
(
tbSchoolAtlas1
->
{
list
.
stream
().
filter
(
tbSchoolAtlas1
->
{
// TbSchool ts=tbSchoolMapper.selectTbSchoolById(tbSchoolAtlas1.getSchoolId());
tbSchoolAtlas1
.
setSchoolName
(
commonService
.
getSchoolCnName
(
tbSchoolAtlas1
.
getSchoolId
()));
tbSchoolAtlas1
.
setSchoolName
(
commonService
.
getSchoolCnName
(
tbSchoolAtlas1
.
getSchoolId
()));
convertUserIDToString
(
tbSchoolAtlas1
);
convertUserIDToString
(
tbSchoolAtlas1
);
return
true
;
return
true
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TbSchoolServiceImpl.java
浏览文件 @
2648754c
...
@@ -7,15 +7,14 @@ import com.ruoyi.common.constant.Constants;
...
@@ -7,15 +7,14 @@ import com.ruoyi.common.constant.Constants;
import
com.ruoyi.common.core.domain.entity.SysDictData
;
import
com.ruoyi.common.core.domain.entity.SysDictData
;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.system.mapper.SysDictDataMapper
;
import
com.ruoyi.system.mapper.*
;
import
com.ruoyi.system.mapper.SysUserMapper
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.TbSchoolMapper
;
import
com.ruoyi.system.domain.TbSchool
;
import
com.ruoyi.system.domain.TbSchool
;
import
com.ruoyi.system.service.ITbSchoolService
;
import
com.ruoyi.system.service.ITbSchoolService
;
import
com.ruoyi.common.core.text.Convert
;
import
com.ruoyi.common.core.text.Convert
;
import
org.springframework.transaction.annotation.Transactional
;
/**
/**
* 学校信息Service业务层处理
* 学校信息Service业务层处理
...
@@ -35,6 +34,27 @@ public class TbSchoolServiceImpl implements ITbSchoolService
...
@@ -35,6 +34,27 @@ public class TbSchoolServiceImpl implements ITbSchoolService
@Autowired
@Autowired
private
SysUserMapper
sysUserMapper
;
private
SysUserMapper
sysUserMapper
;
@Autowired
private
TbSchoolMajorMapper
tbSchoolMajorMapper
;
@Autowired
private
TbSchoolEntranceRequirementsMapper
tbSchoolEntranceRequirementsMapper
;
@Autowired
private
TbSchoolFacilitiesMapper
tbSchoolFacilitiesMapper
;
@Autowired
private
TbSchoolPartnersMapper
tbSchoolPartnersMapper
;
@Autowired
private
TbSchoolUploadMaterialMapper
tbSchoolUploadMaterialMapper
;
@Autowired
private
TbSchoolAtlasMapper
tbSchoolAtlasMapper
;
@Autowired
private
TbEnrollmentTimeMapper
tbEnrollmentTimeMapper
;
/**
/**
* 查询学校信息
* 查询学校信息
*
*
...
@@ -202,8 +222,16 @@ public class TbSchoolServiceImpl implements ITbSchoolService
...
@@ -202,8 +222,16 @@ public class TbSchoolServiceImpl implements ITbSchoolService
* @return 结果
* @return 结果
*/
*/
@Override
@Override
@Transactional
public
int
deleteTbSchoolByIds
(
String
ids
)
public
int
deleteTbSchoolByIds
(
String
ids
)
{
{
tbSchoolMajorMapper
.
deleteTbSchoolMajorBySchoolIds
(
Convert
.
toStrArray
(
ids
));
tbSchoolEntranceRequirementsMapper
.
deleteTbSchoolEntranceRequirementsBySchoolIds
(
Convert
.
toStrArray
(
ids
));
tbSchoolFacilitiesMapper
.
deleteTbSchoolFacilitiesBySchoolIds
(
Convert
.
toStrArray
(
ids
));
tbSchoolPartnersMapper
.
deleteTbSchoolPartnersBySchoolIds
(
Convert
.
toStrArray
(
ids
));
tbSchoolUploadMaterialMapper
.
deleteTbSchoolUploadMaterialBySchoolIds
(
Convert
.
toStrArray
(
ids
));
tbSchoolAtlasMapper
.
deleteTbSchoolAtlasBySchoolIds
(
Convert
.
toStrArray
(
ids
));
tbEnrollmentTimeMapper
.
deleteTbEnrollmentTimeBySchoolIds
(
Convert
.
toStrArray
(
ids
));
return
tbSchoolMapper
.
deleteTbSchoolByIds
(
Convert
.
toStrArray
(
ids
));
return
tbSchoolMapper
.
deleteTbSchoolByIds
(
Convert
.
toStrArray
(
ids
));
}
}
...
@@ -214,8 +242,16 @@ public class TbSchoolServiceImpl implements ITbSchoolService
...
@@ -214,8 +242,16 @@ public class TbSchoolServiceImpl implements ITbSchoolService
* @return 结果
* @return 结果
*/
*/
@Override
@Override
@Transactional
public
int
deleteTbSchoolById
(
Long
id
)
public
int
deleteTbSchoolById
(
Long
id
)
{
{
tbSchoolMajorMapper
.
deleteTbSchoolMajorBySchoolId
(
id
);
tbSchoolEntranceRequirementsMapper
.
deleteTbSchoolEntranceRequirementsBySchoolId
(
id
);
tbSchoolFacilitiesMapper
.
deleteTbSchoolFacilitiesBySchoolId
(
id
);
tbSchoolPartnersMapper
.
deleteTbSchoolPartnersBySchoolId
(
id
);
tbSchoolUploadMaterialMapper
.
deleteTbSchoolUploadMaterialBySchoolId
(
id
);
tbSchoolAtlasMapper
.
deleteTbSchoolAtlasBySchoolId
(
id
);
tbEnrollmentTimeMapper
.
deleteTbEnrollmentTimeBySchoolId
(
id
);
return
tbSchoolMapper
.
deleteTbSchoolById
(
id
);
return
tbSchoolMapper
.
deleteTbSchoolById
(
id
);
}
}
}
}
ruoyi-system/src/main/resources/mapper/system/TbEnrollmentTimeMapper.xml
浏览文件 @
2648754c
...
@@ -126,4 +126,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -126,4 +126,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</foreach>
</delete>
</delete>
<delete
id=
"deleteTbEnrollmentTimeBySchoolId"
parameterType=
"Long"
>
delete from tb_enrollment_time where school_id = #{id}
</delete>
<delete
id=
"deleteTbEnrollmentTimeBySchoolIds"
parameterType=
"String"
>
delete from tb_enrollment_time where school_id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
</mapper>
\ No newline at end of file
ruoyi-system/src/main/resources/mapper/system/TbSchoolAtlasMapper.xml
浏览文件 @
2648754c
...
@@ -76,4 +76,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -76,4 +76,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</foreach>
</delete>
</delete>
<delete
id=
"deleteTbSchoolAtlasBySchoolId"
parameterType=
"Long"
>
delete from tb_school_atlas where school_id = #{id}
</delete>
<delete
id=
"deleteTbSchoolAtlasBySchoolIds"
parameterType=
"String"
>
delete from tb_school_atlas where school_id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
</mapper>
\ No newline at end of file
ruoyi-system/src/main/resources/mapper/system/TbSchoolEntranceRequirementsMapper.xml
浏览文件 @
2648754c
...
@@ -93,4 +93,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -93,4 +93,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</foreach>
</delete>
</delete>
<delete
id=
"deleteTbSchoolEntranceRequirementsBySchoolId"
parameterType=
"Long"
>
delete from tb_school_entrance_requirements where school_id = #{id}
</delete>
<delete
id=
"deleteTbSchoolEntranceRequirementsBySchoolIds"
parameterType=
"String"
>
delete from tb_school_entrance_requirements where school_id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
</mapper>
\ No newline at end of file
ruoyi-system/src/main/resources/mapper/system/TbSchoolFacilitiesMapper.xml
浏览文件 @
2648754c
...
@@ -55,4 +55,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -55,4 +55,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</foreach>
</delete>
</delete>
<delete
id=
"deleteTbSchoolFacilitiesBySchoolId"
parameterType=
"Long"
>
delete from tb_school_facilities where school_id = #{id}
</delete>
<delete
id=
"deleteTbSchoolFacilitiesBySchoolIds"
parameterType=
"String"
>
delete from tb_school_facilities where school_id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
</mapper>
\ No newline at end of file
ruoyi-system/src/main/resources/mapper/system/TbSchoolMajorMapper.xml
浏览文件 @
2648754c
...
@@ -167,6 +167,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -167,6 +167,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
delete from tb_school_major where id = #{id}
delete from tb_school_major where id = #{id}
</delete>
</delete>
<delete
id=
"deleteTbSchoolMajorBySchoolId"
parameterType=
"Long"
>
delete from tb_school_major where school_id = #{id}
</delete>
<delete
id=
"deleteTbSchoolMajorByIds"
parameterType=
"String"
>
<delete
id=
"deleteTbSchoolMajorByIds"
parameterType=
"String"
>
delete from tb_school_major where id in
delete from tb_school_major where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
...
@@ -174,4 +178,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -174,4 +178,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</foreach>
</delete>
</delete>
<delete
id=
"deleteTbSchoolMajorBySchoolIds"
parameterType=
"String"
>
delete from tb_school_major where school_id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
</mapper>
\ No newline at end of file
ruoyi-system/src/main/resources/mapper/system/TbSchoolPartnersMapper.xml
浏览文件 @
2648754c
...
@@ -82,4 +82,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -82,4 +82,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</foreach>
</delete>
</delete>
<delete
id=
"deleteTbSchoolPartnersBySchoolId"
parameterType=
"Long"
>
delete from tb_school_partners where school_id = #{id}
</delete>
<delete
id=
"deleteTbSchoolPartnersBySchoolIds"
parameterType=
"String"
>
delete from tb_school_partners where school_id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
</mapper>
\ No newline at end of file
ruoyi-system/src/main/resources/mapper/system/TbSchoolUploadMaterialMapper.xml
浏览文件 @
2648754c
...
@@ -77,4 +77,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -77,4 +77,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</foreach>
</delete>
</delete>
<delete
id=
"deleteTbSchoolUploadMaterialSchoolById"
parameterType=
"Long"
>
delete from tb_school_upload_material where school_id = #{id}
</delete>
<delete
id=
"deleteTbSchoolUploadMaterialBySchoolIds"
parameterType=
"String"
>
delete from tb_school_upload_material where school_id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
</mapper>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论