| | |
| | | </update> |
| | | |
| | | <delete id="deleteArdAppPatrolpointById" parameterType="String"> |
| | | delete from ard_app_patrolpoint where id = #{id} |
| | | delete from ard_app_patrolpoint where patrolplan_id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteArdAppPatrolpointByIds" parameterType="String"> |
| | |
| | | #{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> |