ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
public void testMapper_update_book() throws DataAccessException { System.out.println("--------------------------------- update_book"); Map<String, Object> map = new HashMap<String, Object>(); map.put("bookName", "更新为Mapper用法"); map.put("autoIndex", 29); int affect = mlinkmapper.update("update_book", map); System.out.println("affect>>"+affect); } public void testMapper_update_book_2() throws DataAccessException { System.out.println("--------------------------------- update_book_2"); //String[] paramNames = { "bookName","autoIndex"}; Object[] values = {",,??,更新为Mapper用法", 30}; int affect = mlinkmapper.update("update_book_2", values); System.out.println("affect>>"+affect); }