Mybaits
久眠
这个作者很懒,什么都没留下…
展开
-
MybatisPlus自定义搜索条件
使用自定义FIND_IN_SET List<ShopDiscountLevelDetail> subList = levelDetailService.list( new QueryWrapper<ShopDiscountLevelDetail>() .eq("shop_discount_level_id", level) .apply(tags != null, "FIND_IN_SET ('" + tags + "',原创 2021-03-12 15:44:18 · 586 阅读 · 0 评论 -
Mybatis 查询树形结构列表
mapper文件: public List<ShopCateTreeDTO> getTree(); public List<ShopCateTreeDTO> TreeChildrenMap(Integer kt_cate_id); xml文件: <resultMap id="TreeMap" type="com.wscx.jingjie.entity.dto.ShopCateTreeDTO"> <id column="kt原创 2021-03-12 15:41:49 · 228 阅读 · 0 评论