sql的查询多次in 操作的导致查询数据为空

  通过if else的方式解决
     <choose>             <when test=site==5>                 and p.is_default=1                 and p.payment_method in('1','7','8','12','13','14')             </when>             <otherwise>                 and p.payment_method in('7','8')             </otherwise>         </choose>