mapper中参数为实体类和int数
此时不用再单独指定输入参数的Type或者Map
在select语句中采用实体类.属性等
比如:

<select id="selectCleanAllevelTabChartSlotDetailList"  resultMap="TabChartSlotDetailResult">
        <include refid="selectTabChartSlotDetailVo"/>
        <where>
            <if test="tabChartSlotDetail.slotCode != null "> and slot_code like concat('%', #{tabChartSlotDetail.slotCode}, '%')</if>
             and Al_level != "" 
        </where>
        order by Al_level
        limit #{lowlevel},#{num}
    </select>
对于普通的参数#{参数}取值即可
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐