修复资源删除时,判断是否有子资源的错误判断

This commit is contained in:
YunaiV 2019-03-10 18:01:35 +08:00
parent 1f7c71e31f
commit f218c959bc

View File

@ -86,6 +86,7 @@
COUNT(1) COUNT(1)
FROM resource FROM resource
WHERE pid = #{pid} WHERE pid = #{pid}
AND deleted = 0
</select> </select>
<insert id="insert" parameterType="ResourceDO" useGeneratedKeys="true" keyColumn="id" keyProperty="id"> <insert id="insert" parameterType="ResourceDO" useGeneratedKeys="true" keyColumn="id" keyProperty="id">