update jsh_depot_head set delete_flag='1' where 1=1 and id in ( #{id} ) update jsh_depot_head dh set dh.account_id = null where dh.id=#{id} and ifnull(dh.delete_flag,'0') !='1'