SELECT ID,
NAME,
text,
longitude,
latitude,
dept_id,
user_id,
create_by,
create_time,
update_by,
update_time
FROM ard_dispatch_police
insert into ard_dispatch_police
id,name,text,longitude,latitude,dept_id,user_id,create_by,create_time,update_by,update_time,#{id},#{name},#{text},#{longitude},#{latitude},#{deptId},#{userId},#{createBy},#{createTime},#{updateBy},#{updateTime},
update ard_dispatch_police
name = #{name},text = #{text},longitude = #{longitude},latitude = #{latitude},dept_id = #{deptId},user_id = #{userId},create_by = #{createBy},create_time = #{createTime},update_by = #{updateBy},update_time = #{updateTime},
where id = #{id}
delete
from ard_dispatch_police
where id = #{id}
delete from ard_dispatch_police where id in
#{id}
delete from ard_dispatch_police_user where dispatch_id in
#{dispatchId}
delete
from ard_dispatch_police_user
where dispatch_id = #{dispatchId}
insert into ard_dispatch_police_user( dispatch_id, user_id) values
( #{item.dispatchId}, #{item.userId})