修复资源删除时,判断是否有子资源的错误判断
This commit is contained in:
parent
1f7c71e31f
commit
f218c959bc
@ -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">
|
||||||
|
Loading…
Reference in New Issue
Block a user