mybatis中写法:
序列一定要放在外面,不然会报 此处不允许序号
<insert id="addInvestorFileupload" parameterType="java.util.List"> insert into investor_file_info (id, userid, url, type, uploaddate, path, approve_id ) select SEQ_INVESTOR_FILE_INFO.NEXTVAL , A.* from( <foreach collection="list" index="index" item="item" separator=" union " > select #{item.userId}, #{item.investorUrl}, #{item.investorType}, sysdate, #{item.investorPath}, #{item.investorApproveId} from dual </foreach> )A </insert>