| | |
| | | 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> |
| | | |
| | | |
| | | |