Commit 6653c4b2 authored by yanzg's avatar yanzg

常规BUG的修改

parent 9d435c8a
...@@ -144,6 +144,9 @@ public abstract class BaseDaoImpl extends BaseDaoSql implements BaseDao { ...@@ -144,6 +144,9 @@ public abstract class BaseDaoImpl extends BaseDaoSql implements BaseDao {
this.check(DaoConst.OPERATOR_TYPE_UPDATE, keyString, model); this.check(DaoConst.OPERATOR_TYPE_UPDATE, keyString, model);
SqlData sqlData = this.getSql(DaoConst.UPDATE); SqlData sqlData = this.getSql(DaoConst.UPDATE);
int ret = updateSql(sqlData, model); int ret = updateSql(sqlData, model);
if (ret == 0) {
throw new CodeException("修改失败,请确认是否被其他人修改,版本号传入是否正确");
}
String retVal = ret > 0 ? keyString : ""; String retVal = ret > 0 ? keyString : "";
return retVal; return retVal;
} }
......
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