这样写就可以了
insert into T_POSS_MERCHANT_BENEFICIARY (ID, MERCHANT_ID, NAME,
LICENSE_TYPE_CODE, LICENSE_NO, EFFECT_DATE,
INVALID_DATE, IS_LONG_TIME, ADDRESS,
IS_DELETE, CREATE_TIME, UPDATE_TIME
)
SELECT SEQ_T_POSS_BENEFICIARY.nextval,a.* from(
SELECT
#{item.merchantId,jdbcType=DECIMAL} as a, #{item.name,jdbcType=VARCHAR} as b,
#{item.licenseTypeCode,jdbcType=VARCHAR} as c, #{item.licenseNo,jdbcType=VARCHAR} as d,
#{item.effectDate,jdbcType=VARCHAR} as e,#{item.invalidDate,jdbcType=VARCHAR} as f,
#{item.isLongTime,jdbcType=DECIMAL} as g, #{item.address,jdbcType=VARCHAR} as h,
0 as i, sysdate as j, sysdate as k
FROM dual
) a
这个要写到外边 SELECT SEQ_T_POSS_BENEFICIARY.、
参考
https://blog.csdn.net/qq525099302/article/details/43053291