java110
2023-05-25 781c2e20a4bb844dae3f4eafbf5f0e494b942ea8
java110-db/src/main/resources/mapper/store/ReserveParamsOpenTimeV1ServiceDaoImplMapper.xml
@@ -13,6 +13,16 @@
        #{hours},#{paramsId},#{isOpen},#{timeId},#{communityId}
        )
    </insert>
    <!-- 保存预约时间信息 add by wuxw 2018-07-03 -->
    <insert id="saveReserveParamsOpenTimeInfos" parameterType="Map">
        insert into reserve_params_open_time(
        hours,params_id,is_open,time_id,community_id
        ) values
        <foreach collection="openTimes" item="item" separator=",">
            (#{item.hours},#{item.paramsId},#{item.isOpen},#{item.timeId},#{item.communityId})
        </foreach>
    </insert>
    <!-- 查询预约时间信息 add by wuxw 2018-07-03 -->
@@ -27,6 +37,12 @@
        <if test="paramsId !=null and paramsId != ''">
            and t.params_id= #{paramsId}
        </if>
        <if test="paramsIds !=null">
            and t.params_id in
            <foreach collection="paramsIds" item="item" open="(" close=")" separator=",">
                #{item}
            </foreach>
        </if>
        <if test="isOpen !=null and isOpen != ''">
            and t.is_open= #{isOpen}
        </if>
@@ -39,7 +55,7 @@
        <if test="communityId !=null and communityId != ''">
            and t.community_id= #{communityId}
        </if>
        order by t.create_time desc
        order by t.hours
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}
        </if>
@@ -83,6 +99,12 @@
        <if test="paramsId !=null and paramsId != ''">
            and t.params_id= #{paramsId}
        </if>
        <if test="paramsIds !=null">
            and t.params_id in
            <foreach collection="paramsIds" item="item" open="(" close=")" separator=",">
                #{item}
            </foreach>
        </if>
        <if test="isOpen !=null and isOpen != ''">
            and t.is_open= #{isOpen}
        </if>