The invention relates to a box body lock and a meter box with the box body lock. The box body lock comprises a lock body, a lock cylinder, an inclined spring bolt and a lock catch, a rotating cavity is formed in the lock body, the lock cylinder is rotatably installed in the rotating cavity, a key hole is formed in the lock cylinder, a communicating hole corresponding to the key hole is formed in the surface of the lock body, the communicating hole communicates with the rotating cavity, and a spring bolt hole is formed in one side of the lock body. The telescopic inclined spring bolt is installed in the spring bolt hole in a sliding mode, a reset elastic piece is arranged between the inclined spring bolt and the lock body, the inclined spring bolt can stretch out and draw back to be matched with the lock catch on a door in a buckled mode, a connecting groove is formed between the spring bolt hole and the rotating cavity, a transmission mechanism is arranged in the connecting groove, and the lock cylinder drives the inclined spring bolt to stretch out and draw back through a transmission mechanism. Most of lock accessories are arranged in a door body, compared with a padlock, the lock accessories are not prone to being rusted, the inclined spring bolt can freely stretch out and draw back, and a worker can easily lock the door body and a door frame.