insertSelective---Java MyBatis 插入数据库返回主键--insertSelective这样就不用每次到数据库里面查询了 https://www.cnblogs.com/xingyunblog/p/6243179.html 列子:
我写的: SELECT LAST_INSERT_ID() INSERT INTO t_product(productName,productDesrcible,merchantId)values(#{productName},#{productDesrcible},#{merchantId});
SELECT LAST_INSERT_ID() insert into newrunfast.runfast_business_type