<!--父子表批量插入 --> <insert id="insertBatch" parameterType="com.niwopay.dto.benifit.JFOrderVipDTO"> begin insert into TB_JF_ORDER <trim prefix="(" suffix=")" suffixOverrides="," > <if test="orderId != null" > ORDER_ID, </if> <if test="extOrderId != null" > EXT_ORDER_ID, </if> <if test="deviceChannel != null" > DEVICE_CHANNEL, </if> <if test="bizChannel != null" > BIZ_CHANNEL, </if> <if test="orderType != null" > ORDER_TYPE, </if> <if test="userId != null" > USER_ID, </if> <if test="orderDate != null" > ORDER_DATE, </if> <if test="orderAmount != null" > ORDER_AMOUNT, </if> <if test="productAmount != null" > PRODUCT_AMOUNT, </if> <if test="payAmount != null" > PAY_AMOUNT, </if> <if test="fee != null" > FEE, </if> <if test="sales != null" > SALES, </if> <if test="freight != null" > FREIGHT, </if> <if test="deliveryState != null" > DELIVERY_STATE, </if> <if test="orderState != null" > ORDER_STATE, </if> <if test="orderDesc != null" > ORDER_DESC, </if> <if test="remark != null" > REMARK, </
mybatis父子表批量插入
最新推荐文章于 2024-07-15 00:01:07 发布
本文介绍了如何在MyBatis中进行批量插入父子表的操作,包括调用`batchUpdate`方法传递参数集合实现批量插入,以及在插入主表的同时插入多张字表的场景。详细内容可参考原文链接。

最低0.47元/天 解锁文章
1355

被折叠的 条评论
为什么被折叠?



