mybatis傳入字符串分割成數組而且遍歷

      注意這裏若是使用#會報錯,因此使用$符號,若是不是數字類型,好比long,integer,還需加上單引號''。代碼片斷以下:字符串      <if test="pd.publishIds != null and pd.publishIds!= ''">       and  p.publishId in       <foreach collection="pd.publishIds
相關文章
相關標籤/搜索