The invention relates to the technical field of storage equipment, in particular to a shelf device and a locker. The shelf device includes a shelf body; a support frame, the support frame includes a lead screw and a connecting bracket, the lead screw is fixedly connected to the connection bracket; a drive assembly, the drive assembly is connected to the shelf body, the drive assembly includes a drive member and a screw sleeve, and the drive member It is dynamically coupled with the screw sleeve, and the screw sleeve is threaded with the lead screw. The shelf device can realize the independent adjustment of multiple shelf bodies only by arranging a set of lead screws, which not only saves the cost, but also is convenient for installation, beautiful and simple. Moreover, no matter whether the shelf body is in a moving state or a fixed state, it is threadedly connected to the lead screw through the screw sleeve. Therefore, under the joint constraints of the external thread of the lead screw and the internal thread of the screw sleeve, the shelf body does not It will slide down due to load-bearing or self-weight, which meets the load-bearing requirements of the shelf body. In addition, since the drive assembly is connected to the shelf body, the installation space of the drive assembly can be saved.