The present invention provides a compound having a structure shown in formula (I) or an isomer, pharmaceutically acceptable solvate, or salt thereof. The compound is used as a Bruton's tyrosine kinase inhibitor, and has a higher inhibitory activity against BTK and less adverse effects.