示例#1
0
def main(gs_search_id,gs_basic_id,data):
    Log().found_log(gs_search_id,gs_basic_id)
    HOST, USER, PASSWD, DB, PORT = config.HOST, config.USER, config.PASSWD, config.DB, config.PORT
    connect, cursor = Connect_to_DB().ConnectDB(HOST, USER, PASSWD, DB, PORT)
    object = Basic()
    info = object.name(data)
    remark = object.update_to_db(cursor,connect,gs_basic_id,info)
    print 'basic:%s' % str(remark)
    cursor.close()
    connect.close()
示例#2
0
def main():
    Log().found_log(gs_search_id, gs_basic_id)
    try:
        HOST, USER, PASSWD, DB, PORT = config.HOST, config.USER, config.PASSWD, config.DB, config.PORT
        connect, cursor = Connect_to_DB().ConnectDB(HOST, USER, PASSWD, DB,
                                                    PORT)
        flag = update_report_main(gs_basic_id, year, cursor, connect)
        string = '%s:' % year + str(flag)
        print string
    except Exception, e:
        logging.error('report error:%s' % e)
示例#3
0
def main(gs_py_id, gs_basic_id, data, province):
    Log().found_log(gs_py_id, gs_basic_id)
    try:
        HOST, USER, PASSWD, DB, PORT = config.HOST, config.USER, config.PASSWD, config.DB, config.PORT
        connect, cursor = Connect_to_DB().ConnectDB(HOST, USER, PASSWD, DB, PORT)
        info = Mort().name(data,province)
        flag, total, insert_flag, update_flag = Mort().update_to_db(cursor,connect,gs_basic_id,info)
        flag = Judge_status().judge(flag,total)
        string = 'mort:' + str(flag) + '||' + str(total) + '||' + str(insert_flag) + '||' + str(update_flag)
        print string
    except Exception,e:
        logging.error("mort error :%s"%e)
示例#4
0
def main(gs_py_id,gs_basic_id,data):
    Log().found_log(gs_py_id, gs_basic_id)
    print_info = Judge_status().update_py(gs_basic_id,Except,"except",data)
    return print_info
示例#5
0
def main(gs_py_id,gs_basic_id,data):
    Log().found_log(gs_py_id, gs_basic_id)
    Judge_status().update_py(gs_basic_id,Brand,"brand",data)
示例#6
0
def main(gs_py_id, gs_basic_id, data):
    Log().found_log(gs_py_id, gs_basic_id)
    Judge_status().update_py(gs_basic_id, Punish, "punish", data)
示例#7
0
def main(gs_search_id, gs_basic_id, data):
    Log().found_log(gs_search_id, gs_basic_id)
    Judge_status().update_py(gs_basic_id, Change, "change", data)
示例#8
0
def main(gs_search_id, gs_basic_id, data):
    Log().found_log(gs_search_id, gs_basic_id)
    print_info = Judge_status().update_py(gs_basic_id, Person, "person", data)
    return print_info
示例#9
0
def main(gs_py_id, gs_basic_id, data):
    Log().found_log(gs_py_id, gs_basic_id)
    print_info = Judge_status().update_py(gs_basic_id, Clear, "clear", data)
    return print_info
示例#10
0
def main(gs_search_id,gs_basic_id,data):
    Log().found_log(gs_search_id, gs_basic_id)
    Judge_status().update_py(gs_basic_id,Share,"shareholder",data)
示例#11
0
def main(gs_py_id, gs_basic_id, data):
    Log().found_log(gs_py_id, gs_basic_id)
    Judge_status().update_py(gs_basic_id, Black, "black", data)
示例#12
0
def main(gs_py_id, gs_basic_id, data):
    Log().found_log(gs_py_id, gs_basic_id)
    print_info = Judge_status().update_py(gs_basic_id, Permit, "permit2", data)
    return print_info