A weak Galerkin finite element method for the second order elliptic problems with mixed boundary conditions