| | |
| | | <select id="selectEmergencyPlanFileByPlanId" resultMap="emergencyPlanFileInfoDOResult"> |
| | | select id,`plan_id`,`file_url`,`file_name` from emergency_plan_file where del_flag = 0 and plan_id = #{planId} |
| | | </select> |
| | | |
| | | <update id = "deleteEmergencyPlanFileByIds" > |
| | | update emergency_plan_file set del_flag = 1 where id in |
| | | <foreach item="id" collection="ids" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <update id="deleteEmergencyPlanFileByPlanId"> |
| | | update emergency_plan_file set del_flag = 1 where plan_id = #{planId} |
| | | </update> |
| | | |
| | | </mapper> |