mybatisplus在xml中使用wrapper备忘

mapper:

IPage<PurchasePlan> listWithZj(Page page, @Param(Constants.WRAPPER) Wrapper<PurchasePlan> wrapper);

xml:

 <select id="listWithZj" resultType="org.jeecg.modules.gz.purchase.entity.PurchasePlan">
        select a.*,case when b.project_id is null then 0 else 1 end hasLz from gz_purchase_plan a
        left join projectlz b
        on a.id=b.plan_id
        ${ew.customSqlSegment}
    </select>
上一篇:android UI开源库


下一篇:闭包函数及其应用