mybati 多个having条件的写法

多个having条件动态拼接

 		select * from sometable 
 		GROUP BY aa,bb,cc,dd
         
               id is null
              aa= #{aa} and
               method = #{bb} and
                target = #{cc} and
                result = #{dd} and
         

参考教程:
https://www.w3cschool.cn/mybatis/l5cx1ilz.html

你可能感兴趣的:(mybatis)