示例#1
0
def del_brand_by_id(id):
    query = session.query(Brand)
    brand = query.get(id)
    session.delete(brand)
    session.commit()
示例#2
0
def del_prostatus_by_id(id):
    query = session.query(Pro_status)
    pro_type = query.get(id)
    session.delete(pro_type)
    session.commit()
示例#3
0
def del_series_by_id(id):
    query = session.query(Series)
    series = query.get(id)
    session.delete(series)
    session.commit()
示例#4
0
def del_role_by_id(id):
    query = session.query(User_role)
    role = query.get(id)
    session.delete(role)
    session.commit()
示例#5
0
def del_note_by_id(id):
    query = session.query(Note)
    note = query.get(id)
    session.delete(note)
    session.commit()
示例#6
0
def del_status_by_id(id):
    query = session.query(Overall_Status)
    status = query.get(id)
    session.delete(status)
    session.commit()
示例#7
0
def del_type_by_id(id):
    query = session.query(Launch_Type)
    type = query.get(id)
    session.delete(type)
    session.commit()
示例#8
0
def del_Activity_by_id(id):
    query = session.query(Activity)
    Activity = query.get(id)
    session.delete(Activity)
    session.commit()