首页 > 代码库 > 批量新增

批量新增

    <!-- 添加 -->    <insert id="saveBatchApproveDetailRepModel" parameterType="java.util.List">         INSERT INTO APPROVE_DETAIL         (APPROVE_NAME,APPROVE_TYPE,APPROVE_PROMOTE_DESC,COLOR,IS_DELETE,ADD_USER_ID,ADD_TIME,EDIT_USER_ID,EDIT_TIME,CLIENT,`ORDER`)          VALUES           <foreach collection="list" item="item" index="index" separator="," >           (#{item.approveName},#{item.approveType},#{item.approvePromoteDesc},#{item.color},#{item.isDelete},#{item.addUserId},#{item.addTime},#{item.editUserId},#{item.editTime},#{item.client},#{item.order})           </foreach>    </insert>

 

批量新增