<select id="selectLawHolidayList" parameterType="LawHoliday" resultMap="LawHolidayResult">
<include refid="selectLawHolidayVo"/>
<where>
<if test="holidayName != null and holidayName != ''"> and h.holiday_name like concat('%', #{holidayName}, '%')</if>
<if test="holidayDate != null "> and h.holiday_date = #{holidayDate}</if>
<if test="isWork != null and isWork != ''"> and h.is_work = #{isWork}</if>
</where>
order by h.holiday_date desc
</select>
模糊查询示例
于 2024-01-15 09:35:32 首次发布