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()
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)
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)
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
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)
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)
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)
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
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
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)
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)
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