|
|
@@ -267,7 +267,8 @@ public class CommonController extends Controller{
|
|
|
return;
|
|
|
}
|
|
|
Db.update(tableName,key,record);
|
|
|
- Record findById = Db.findById(tableName,key, record.get(key));
|
|
|
+ Integer idKey = WxUtil.getInt(key, record);
|
|
|
+ Record findById = Db.findById(tableName,key, idKey);
|
|
|
result.set("status", true);
|
|
|
result.set("data", findById);
|
|
|
renderJson(result);
|