#66 add criterion and dialect based on mybatis