select id, client_id, policy_id, script_id, version_id, policy_status, create_time, update_time, create_by, update_by from rm_policy_device_details insert into rm_policy_device_details client_id, policy_id, script_id, version_id, policy_status, create_time, update_time, create_by, update_by, #{clientId}, #{policyId}, #{scriptId}, #{versionId}, #{policyStatus}, #{createTime}, #{updateTime}, #{createBy}, #{updateBy}, update rm_policy_device_details policy_status = #{policyStatus}, create_time = #{createTime}, update_time = #{updateTime}, create_by = #{createBy}, update_by = #{updateBy}, where id = #{id} policy_id = #{policyId} and client_id = #{clientId} 1=0 delete from rm_policy_device_details where id = #{id} delete from rm_policy_device_details where id in #{id}