In China, spanning from 2013 to 2017, the primary beta-lactamase gene among E. coli isolates from the milk of cows with mastitis was blaTEM, followed by blaCTX-M, blaCMY, and blaSHV. Here, LACTB is linked to mastitis.