List<String> iscBusOrgIdList = getIscOrgIdList();
List<Map<String, Object>> iscBusOrgIds = new ArrayList<Map<String, Object>>();
for(int i=0; i<iscBusOrgIdList.size(); i++) {
Map<String, Object> tempMap = new HashMap<String, Object>();
tempMap.put("iscBusOrgId", iscBusOrgIdList.get(i));
iscBusOrgIds.add(tempMap);
}
insertEicOrgTemp(iscBusOrgIds);
public void insertEicOrgTemp(List<Map<String, Object>> iscBusOrgIds) {
this.getCommonDao().insertBatch(NAMESPACE, "insertEicOrgTemp", iscBusOrgIds);
}
mybatis文件:
<!-- 插入临时表 -->
<insert id="insertEicOrgTemp" parameterClass="java.util.Map">
INSERT INTO EIC_ORG_TEMP (ISCBUSORGID) VALUES (#iscBusOrgId#)
</insert>