The department shall inspect or cause the work to be inspected, and shall issue a certificate of occupancy if the work has been performed in accordance with the approved plans, specifications, and statements, and in conformity with the provisions of this part; and if not, it shall refuse to issue the certificate.