select id,name from section
select id,name from section
where pid = #{pid,jdbcType=INTEGER}
select id,name from section
where pid in
#{item}
select id,name from section
where id in
#{item}
select id,name,pid from section where id = #{id}
SELECT DISTINCT s.pid
FROM section s
WHERE s.id IN
#{item}
SELECT s.id,s.`name`
FROM section s
WHERE s.pid = #{pid}
AND s.id IN
#{item}
insert into section(pid,`name`,createtime,timezone)
values (#{pid},#{name},#{createTime},#{timezone})
select
count(*)
from section s
where s.pid = #{pid} and s.name = #{name}
and s.id != #{id}
update section s
set
s.name = #{name}
where s.id = #{id}
select s.pid
from section s
where s.id = #{id}
delete
from section
where id = #{id};
SELECT s.id,s.name,s.pid
FROM section s
select s.id,s.name,s.pid
from section s
left join global_location a on s.pid = a.id
left join global_location c on a.pid = c.id
left join global_location p on c.pid = p.id
left join global_location g on p.pid = g.id
where g.id = #{id}