需求:英文模糊查詢狀態,不區分大小寫app
- //查詢語句
- hql.append("from TripBusAppoinInfo busAppoin where (1=1)");
- //設置查詢條件
- if(!name.equals("")){
- hql.append("and lower(busAppoin.busAppoinName) like lower(?) ");
- param.add("%"+name+"%");
- }
- if(!cardNber.equals("")){
- hql.append("and busAppoin.busAppoinMemberNumber = ? ");
- param.add(cardNber);
- }
- hql.append(" Order by busAppoin.busAppoinTime");//排序條件