Mybits中 Example 使用


mybits 中 通过Example 进行sql查询


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

----- 未完待续