Commit 4ec5975a authored by fangxinjiang's avatar fangxinjiang

代码优化-fxj

parent b2841903
......@@ -178,7 +178,7 @@
<update id="updateAllAncestors">
update sys_dept set ancestors = REPLACE(ancestors,#{oldStr},#{newStr})
where project_no = #{projectNo} and ancestors like concat(#{oldStr},',', '%') and dept_id != #{deptId}
where project_no = #{projectNo} and ancestors like concat(#{oldStr}, '%') and dept_id != #{deptId}
</update>
</mapper>
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