mybatis 参数为对象 在对象里面有集合属性 查询

    mapper  

 
               
                  and MERCHANT_ID in 
                     
                        #{merId}        
                   

             

   

pojo  

//临时查询字段 商户id集合
    private List merchantIds;

public List getMerchantIds() {
        return merchantIds;
    }

  public void setMerchantIds(List merchantIds) {
        this.merchantIds = merchantIds;
    }

  

 

 

 

 

你可能感兴趣的:(SQL)