puzhibing
2023-11-25 53e7558400dcacecdce70e39ebfe1727740f9296
cloud-server-other/src/main/resources/mapper/SiteBookingMapper.xml
@@ -8,7 +8,7 @@
        payMoney as amount,
        `status`
        from t_site_booking
        where  payType != 3 and status != 0
        where payType != 3 and status != 0
        <if test="null != monthStart and '' != monthStart and null != monthEnd and '' != monthEnd">
            and DATE_FORMAT(payTime, '%Y-%m-%d %H:%i:%s') between #{monthStart} and #{monthEnd}
        </if>
@@ -20,24 +20,24 @@
    <select id="listAll" resultType="com.dsh.other.entity.SiteBooking">
        select * from t_site_booking t1
        <where>
        <if test="amount!=null and amount!= ''">
            and t1.payMoney &lt;= #{amount}
        </if>
        <if test="query.userIds != null and query.userIds.size()>0">
            AND t1.appUserId IN
            <foreach collection="query.userIds" separator="," item="id" open="(" close=")">
                #{id}
            </foreach>
        </if>
            <if test="amount!=null and amount!= ''">
                and t1.payMoney &lt;= #{amount}
            </if>
            <if test="query.userIds != null and query.userIds.size()>0">
                AND t1.appUserId IN
                <foreach collection="query.userIds" separator="," item="id" open="(" close=")">
                    #{id}
                </foreach>
            </if>
            <if test="query.storeIds != null and query.storeIds.size()>0">
                AND t1.storeId IN
                <foreach collection="query.storeIds" separator="," item="id" open="(" close=")">
                    #{id}
                </foreach>
            </if>
        <if test="sTime !=null and sTime!= '' and eTime !=null and eTime!= ''">
            and t1.insertTime between #{sTime} and #{eTime}
        </if>
            <if test="sTime !=null and sTime!= '' and eTime !=null and eTime!= ''">
                and t1.insertTime between #{sTime} and #{eTime}
            </if>
        </where>
    </select>
    <select id="queryByCode" resultType="java.lang.Integer">