luo
2023-10-09 014d7a35addafbc63689cda7c20bae61951f7852
cloud-server-other/src/main/resources/mapper/GameMapper.xml
@@ -36,7 +36,39 @@
        FROM t_site_booking bk
                 LEFT JOIN t_store st on bk.storeId = st.id
                 LEFT JOIN t_site si on bk.siteId = si.id
        <where>
        <if test="provinceCode!=null and provinceCode!= ''">
          and  bk.provinceCode=#{provinceCode}
        </if>
            <if test="cityCode!=null and cityCode!= ''">
                and  bk.cityCode=#{cityCode}
            </if>
            <if test="store!=null and store!= ''">
                and  st.name=#{store}
            </if>
            <if test="peopleName!=null and peopleName!= ''">
                and  bk.booker=#{peopleName}
            </if>
            <if test="phone!=null and phone!= ''">
                and  bk.phone=#{phone}
            </if>
            <if test="date!=null and date!= ''">
                and bk.times like concat('%',#{date},'%')            </if>
            <if test="payMethod!=null ">
                and  bk.payType=#{payMethod}
            </if>
            <if test="state!=null ">
                and  bk.status=#{state}
            </if>
        </where>