Breaks the restriction of constant water depth in almost all of the previous studies. Closed-form band expression for shallow-water waves over two kinds of bars is given. Gap maps in various cases are plotted which show the distribution of band gaps. Influences of given frequency and bar height and width on band gaps are analyzed.