| | |
| | | |
| | | </select> |
| | | <select id="orderlist" resultType="map"> |
| | | SELECT *,st.`name` as storeName,si.`name` as siteName,CONCAT(DATE_FORMAT(bk.startTime, '%Y-%m-%d %H:%i:%s'), ' - ', TIME_FORMAT(bk.endTime, '%H:%i:%s')) AS timeRange |
| | | SELECT *,st.`name` as storeName,si.`name` as siteName,CONCAT(DATE_FORMAT(bk.startTime, '%Y-%m-%d %H:%i:%s'), ' - |
| | | ', TIME_FORMAT(bk.endTime, '%H:%i:%s')) AS timeRange |
| | | 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 |
| | |
| | | |
| | | |
| | | <if test="date!=null and date!= ''"> |
| | | and bk.times like concat('%',#{date},'%') </if> |
| | | and bk.times like concat('%',#{date},'%') |
| | | </if> |
| | | <if test="payMethod!=null "> |
| | | and bk.payType=#{payMethod} |
| | | </if> |
| | |
| | | </if> |
| | | |
| | | </where> |
| | | |
| | | |
| | | |
| | | |
| | | </select> |