MyBatis中对List
首先需要定义对象的
然后:
insert into
ordersdish(id,ordersId,dishId)
values
(#{item.id,jdbcType=VARCHAR},#{item.orderId,jdbcType=BIGINT},#{item.dishId,jdbcType=INTEGER})
MyBatis中对List
首先需要定义对象的
然后:
insert into
ordersdish(id,ordersId,dishId)
values
(#{item.id,jdbcType=VARCHAR},#{item.orderId,jdbcType=BIGINT},#{item.dishId,jdbcType=INTEGER})