---
title: "iBatis中应用 in 语句方法（原）"
author: "eoasis"
date: "2011-02-28T16:14:30Z"
tags: []
categories: ["企业架构"]
slug: "ibatis-in"
draft: false
lastmod: "2011-08-30T15:56:04Z"
id: 933928
url: "https://eoasis.iteye.com/blog/933928"
---

```
<select id="XXXX.list" parameterClass="java.util.ArrayList" resultClass="XXXXX">
		select * from XXXX
		<dynamic  prepend=" where XXXX in">
			<iterate open="("  close=")"  conjunction="," >
				#[]#
			</iterate>
		</dynamic> 
	</select>
```

 

 

  传入一个List 用迭代器转换为 in （x,x,x,x,x,x,x……）