16 lines
545 B
Plaintext
16 lines
545 B
Plaintext
async def getinvitecodeactivity(ns):
|
|
"""
|
|
邀请码活动id
|
|
"""
|
|
db = DBPools()
|
|
async with db.sqlorContext('kboss') as sor:
|
|
try:
|
|
nss = {'name': '%' + ns.get('name') + '%'}
|
|
sql = """select id,title from promoting where del_flg = 0 and title like ${name}$ """
|
|
promoting = await sor.sqlExe(sql,nss)
|
|
return {'status': True, 'data': promoting}
|
|
except:
|
|
return {'status': False, 'msg':'参数错误'}
|
|
|
|
ret = await getinvitecodeactivity(params_kw)
|
|
return ret |