The invention relates to a benzimidazole-2-piperazine derivative and a preparing method and application of the benzimidazole-2-piperazine derivative in medicine, in particular to a novel benzimidazole-2-piperazine derivative shown in the general formula (I), a preparing method of the derivative, a pharmaceutical composition containing the derivative and application of the derivative serving as a therapeutic agent, especially serving as a poly (ADP-ribose) polymerase (PARP) inhibitor. In the general formula (I), R refers to hydrogen or halogen, G refers to carbonyl or methylene, m is 1-2, n is 1-3, and Q refers to hydrogen or C1-C4 alkyl. When X is methylene and Y is NR1 or methylene, X is NR1; R1 refers to hydrogen, C1-C6 alkyl, benzyl, COR2 or SO2R2; R2 refers to the following groups which are not substituted or groups substituted by 1-3 substituent groups, including C1-C6 alkyl, C3-C8 naphthenic base, phenyl, benzyl, naphthyl and C5-C10 aromatic heterocycle base, heterocycle in the C5-C10 aromatic heterocycle base comprises 1-3 heteroatoms selected from N, O and S, and the substituent groups are selected from the following atoms or groups of C1-C6 alkyl, C1-C6 alkoxy, halogen, amidogen, nitryl, sulfydryl, hydroxyl, cyanogroup and trifluoromethyl. The general formula (I) is shown in the specification.