直接上代碼
//查詢條件對象 TinventivePrinciple time = new TinventivePrinciple(); //設置需要查詢的條件(賦值) time.setIsTime(Short.parseShort("1")); //定義example1 Example<TinventivePrinciple> example1 = Example.of(time); //查詢數據 List<TinventivePrinciple> timeList = tinventivePrincipleDao.findAll(example1);