This commit is contained in:
yumoqing 2019-08-27 21:37:00 +08:00
parent abe96d01a9
commit d47ae51269

View File

@ -259,12 +259,12 @@ class CRUD(object):
if NS.get('sort',None) is None:
NS['sort'] = p[0]['field_name']
data = self.oa.execute(self.dbname+'_'+self.tablename,'beforeRetieve',NS)
data = self.oa.execute(self.dbname+'_'+self.tablename,'beforeRetrieve',NS)
if NS.get('page'):
data = await pagingdata(self.dbname,data)
else:
data = await retrieve(self.dbname,data)
data = self.oa.execute(self.dbname+'_'+self.tablename,'afterRetieve',data)
data = self.oa.execute(self.dbname+'_'+self.tablename,'afterRetrieve',data)
return data
async def U(self,data):