This commit is contained in:
yumoqing 2019-08-14 17:46:54 +08:00
parent 45b6389fa0
commit 5534fda8bf

View File

@ -197,6 +197,7 @@ class CRUD(object):
pk = await self.primaryKey()
k = pk[0]['field_name']
if not data.get(k):
v = getID()
data[k] = v
data = self.oa.execute(self.dbname+'_'+self.tablename,'beforeAdd',data)