Mybits中 Example 使用

mybits 中 通过Example 进行sql查询


 Example example = new Example(HlsCusLonContractRepayment.class);
        Example.Criteria criteria = example.createCriteria();
        criteria.andEqualTo(HlsCusLonContractRepayment.FIELD_SUER_ID, userId) ;
        List<dto> dtoList=   mapper.selectByExample(example);

----- 未完待续

posted @ 2022-01-07 14:34  当个胖子  阅读(56)  评论(0编辑  收藏  举报