Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizzercn committed Jul 10, 2017
1 parent 0967b17 commit 4f39f34
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,11 @@ public <T> T insert(T obj, FieldFilter filter) {
}

/**
* 插入或修改对象
* 根据对象的主键(@Id/@Name/@Pk)先查询, 如果存在就更新, 不存在就插入
*
* @param obj
* @return
* 对象
* @return 原对象
*/
public <T> T insertOrUpdate(T obj) {
return this.dao().insertOrUpdate(obj);
Expand Down

0 comments on commit 4f39f34

Please sign in to comment.