Commit 49d2940e authored by yanzg's avatar yanzg

升级新版本

parent a256431a
...@@ -186,8 +186,9 @@ public abstract class BaseDaoSql { ...@@ -186,8 +186,9 @@ public abstract class BaseDaoSql {
* @return 影响的行数 * @return 影响的行数
*/ */
protected int updateSql(SqlData sqlData, Object model) { protected int updateSql(SqlData sqlData, Object model) {
List<Object> paras = new ArrayList<Object>(); List<Object> paras = new ArrayList<>();
String sql = this.getPara(paras, sqlData, model, true); boolean isUpdate = !StringHelper.compare(sqlData.getName(), DaoConst.REMOVE);
String sql = this.getPara(paras, sqlData, model, isUpdate);
int ret = this.getDb().update(this.getClass(), sqlData.getName(), sql, paras.toArray()); int ret = this.getDb().update(this.getClass(), sqlData.getName(), sql, paras.toArray());
this.onUpdateSql(model); this.onUpdateSql(model);
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment