亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

報錯 沒有值

@Test
public?void?inserBatch(){
User?user1=new?User();
user1.setName("李天意");
user1.setAge(34);
user1.setManagerId(1088248166370832385L);
User?user2=new?User();
user2.setName("何文博");
user2.setAge(31);
user2.setManagerId(1088248166370832385L);
List<User>?asList?=?Arrays.asList(user1,user2);
int?rows?=?userMapper.insertBatchSomeColumn(asList);
System.out.println("受影響行數"+rows);
}

控制臺輸出:
insertFill~
insertFill~
DEBUG==>??Preparing:?INSERT?INTO?user?(id,deleted)?VALUES?(?,?)?,?(?,?)?
DEBUG==>?Parameters:?1197042953618677762(Long),?null,?1197042953639649281(Long),?null
DEBUG<==????Updates:?2
受影響行數2


正在回答

1 回答

你使用的選裝件是怎么配置的,我懷疑你選裝件InsertBatchSomeColumn那配置的可能有問題,是不是很多字段都被你排除了?

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

報錯 沒有值

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號