insert into MB_BATCH_DIS_DETAILS
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="batchNo != null">
        BATCH_NO,
      </if>
      <if test="seqNo != null">
        SEQ_NO,
      </if>
      <if test="contractNo != null">
        CONTRACT_NO,
      </if>
      <if test="prodType != null">
        PROD_TYPE,
      </if>
      <if test="discSubType != null">
        DISC_SUB_TYPE,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="batchNo != null">
        #{batchNo,jdbcType=VARCHAR},
      </if>
      <if test="seqNo != null">
        #{seqNo,jdbcType=VARCHAR},
      </if>
      <if test="contractNo != null">
        #{contractNo,jdbcType=VARCHAR},
      </if>
      <if test="prodType != null">
        #{prodType,jdbcType=VARCHAR},
      </if>
      <if test="discSubType != null">
        #{discSubType,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。