MyBatis - how to create w dynamic WHERE Clause

前端 未结 2 1141
别跟我提以往
别跟我提以往 2020-12-30 16:42

The service gets an unknown object containing a list of three values ​​[column, operator, value] For example, EMAIL - like - \"TEST\"

Based on the resulting list to

2条回答
  •  暖寄归人
    2020-12-30 16:51

    There are two key parts to this answer. One is the "dynamic" element, and the other are the $$ literal elements around the "operator" in your question.

      
    

    See also the DataMapper Dynamic SQL documentation on this topic.

提交回复
热议问题