//判断数据库是否存在一样的值
if (data_riverList.size() > 0) {
//t_Data_RiverDao.update(t_data_river),报标题的错误
t_Data_RiverDao.merge(t_data_river);
} else {
t_Data_RiverDao.save(t_data_river);
}
解决A different object with the same identifier value was already associated with the session
最新推荐文章于 2023-02-13 16:58:04 发布