From 4f39f34307de10c5c5b8e5a8f77239fefb2f661f Mon Sep 17 00:00:00 2001 From: Wizzer Date: Tue, 11 Jul 2017 00:25:27 +0800 Subject: [PATCH] .. --- .../cn/wizzer/framework/base/service/BaseServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wk-framework/src/main/java/cn/wizzer/framework/base/service/BaseServiceImpl.java b/wk-framework/src/main/java/cn/wizzer/framework/base/service/BaseServiceImpl.java index bdb616a3c..dbf318efe 100644 --- a/wk-framework/src/main/java/cn/wizzer/framework/base/service/BaseServiceImpl.java +++ b/wk-framework/src/main/java/cn/wizzer/framework/base/service/BaseServiceImpl.java @@ -177,10 +177,11 @@ public T insert(T obj, FieldFilter filter) { } /** - * 插入或修改对象 + * 根据对象的主键(@Id/@Name/@Pk)先查询, 如果存在就更新, 不存在就插入 * * @param obj - * @return + * 对象 + * @return 原对象 */ public T insertOrUpdate(T obj) { return this.dao().insertOrUpdate(obj);