示例#1
0
 def update_price_code(cls):
     merge_codes = DataService.select_merge_codes()
     for item in merge_codes:
         train_code = item[0]
         merge_code = item[1]
         log.info('update price code ,%s,%s'% (train_code,merge_code))
         DataService.update_price_code(merge_code,train_code)
 def update_price_code(cls):
     merge_codes = DataService.select_merge_codes()
     for item in merge_codes:
         train_code = item[0]
         merge_code = item[1]
         log.info('update price code ,%s,%s' % (train_code, merge_code))
         try:
             DataService.update_price_code(merge_code, train_code)
         except:
             t, v, tb = sys.exc_info()
             log.error("%s,%s,%s" % (t, v, traceback.format_tb(tb)))