Home  >  Q&A  >  body text

java - mybatis mapper文件中如何实现group by having?

mapper文件中如何在group by 之后接having?having字段可能会传也可能不传,该怎么处理

PHP中文网PHP中文网2713 days ago1091

reply all(2)I'll reply

  • 高洛峰

    高洛峰2017-04-18 10:53:09

    <isNotEmpty property="property">

       条件   

    </isNotEmpty>
    Try this

    reply
    0
  • 高洛峰

    高洛峰2017-04-18 10:53:09

    Then use conditional judgment statements

    reply
    0
  • Cancelreply