The utility model relates to the technical field of automobile controllers, in particular to a shell sealing structure for a controller and the controller, and the shell sealing structure for the controller comprises an upper shell sealing piece and an upper shell arranged on the controller; the lower shell sealing piece is arranged on a lower shell of the controller; the connector is installed on the controller, and the connector can be arranged on the upper shell and the lower shell in a penetrating mode; when the upper shell and the lower shell are buckled, the upper shell sealing piece and the lower shell sealing piece surround the periphery of the connector, the side portion, close to the connector, of the upper shell sealing piece is provided with a first glue storage groove, the side portion, close to the connector, of the lower shell sealing piece is provided with a second glue storage groove, and the connector can extrude glue in the first glue storage groove and the second glue storage groove. And the glue flows back. According to the shell sealing structure for the controller and the controller, the problem of poor sealing caused by difficult glue retention of a shell sealing structure of an existing controller can be solved.