租车套餐设置调整

This commit is contained in:
majian314
2025-09-26 12:51:23 +08:00
parent 9528a8315c
commit 46532f7d8a
5 changed files with 46 additions and 16 deletions

View File

@ -67,6 +67,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="isJoinInvite != null "> and is_join_invite = #{isJoinInvite}</if>
<if test="mealChannel != null "> and meal_channel = #{mealChannel}</if>
<if test="buyLimitType != null "> and buy_limit_type = #{buyLimitType}</if>
<if test="queryDurationType != null and queryDurationType != '' and queryDurationType == 2">
AND duration_type = 1
AND duration = 1
</if>
<if test="queryDurationType != null and queryDurationType != '' and queryDurationType == 3">
AND (duration_type = 2 OR (duration_type = 1 AND duration <![CDATA[ > ]]> 1))
</if>
</where>
</select>
@ -74,7 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectZcRentBatteyRuleVo"/>
where id = #{id}
</select>
<select id="selectZcRentBatteyRuleByIds" resultType="com.ruoyi.operation.domain.ZcRentBatteyRule">
<select id="selectZcRentBatteyRuleByIds" resultMap="ZcRentBatteyRuleResult">
select * from zc_rent_battey_rule where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}