|  |  |  | 
|---|
|  |  |  | #{id} | 
|---|
|  |  |  | </foreach> | 
|---|
|  |  |  | </delete> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <insert id="insertArdAppPatrolpointList" parameterType="ArdAppPatrolpoint"> | 
|---|
|  |  |  | insert into ard_app_patrolpoint (id,patrolplan_id,alarmpoints_id,type) values | 
|---|
|  |  |  | <foreach collection="ardAppPatrolpointList" separator="," item="ardAppPatrolpoint"> | 
|---|
|  |  |  | (#{ardAppPatrolpoint.id},#{ardAppPatrolpoint.patrolplanId}, | 
|---|
|  |  |  | #{ardAppPatrolpoint.alarmpointsId},#{ardAppPatrolpoint.type}) | 
|---|
|  |  |  | </foreach> | 
|---|
|  |  |  | </insert> | 
|---|
|  |  |  | <delete id="deleteArdAppPatrolpointByPlanId" parameterType="String"> | 
|---|
|  |  |  | delete from ard_app_patrolpoint aap where aap.patrolplan_id = #{id} | 
|---|
|  |  |  | </delete> | 
|---|
|  |  |  | </mapper> | 
|---|