TComment tComment = new TComment().set("study_play_id", id).set("comment_time", commentTime).set("comment_content", commentContent).set("comment_name", userName);
tComment.save();
System.out.println("111111"+tComment.getInt("comment_id"));
看代码。这样获取不到id值,
输出的值
Sql: insert into `t_comment`(`comment_content`, `comment_name`, `comment_time`, `study_play_id`) values(?, ?, ?, ?)
111111null
{comment_content:3123, comment_name:zhangsan, comment_time:2018-07-12 21:05:38, study_play_id:1}
项目:JFinal