puzhibing
2023-11-25 53e7558400dcacecdce70e39ebfe1727740f9296
cloud-server-other/src/main/resources/mapper/GameMapper.xml
@@ -37,7 +37,8 @@
    </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
@@ -63,7 +64,8 @@
            <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>
@@ -82,8 +84,6 @@
            </if>
        
        </where>
    </select>