1. 程式人生 > >mybatis generator 自動生成程式碼模糊查詢

mybatis generator 自動生成程式碼模糊查詢

 LoanDksqxxExample example = new LoanDksqxxExample();
 example.setOrderByClause("shenqriq desc");
 LoanDksqxxExample.Criteria criteria = example.createCriteria();

 String gshmchen = "%"+param.getGshmchen()+"%";
 criteria.andGshmchenLike(gshmchen);