Commit 21eb76a5 by 杨林龙

修改代码

1 parent bbed3e60
# -*- coding:utf-8 -*- # -*- coding:utf-8 -*-
from __future__ import print_function from __future__ import print_function
import time import time
import MySQLdb # import MySQLdb
import pymysql as MySQLdb
import sys import sys
...@@ -11,7 +12,8 @@ import sys ...@@ -11,7 +12,8 @@ import sys
# #
def paddstr(strx): def paddstr(strx):
return "NULL" if strx == None else "\'" + MySQLdb.escape_string(str(strx)).decode() + "\'" # return "NULL" if strx == None else "\'" + MySQLdb.escape_string(str(strx)).decode() + "\'"
return "NULL" if strx == None else "\'" + MySQLdb.converters.escape_string(str(strx)) + "\'"
def paddnum(numx, default='NULL'): def paddnum(numx, default='NULL'):
......
...@@ -1959,9 +1959,9 @@ if __name__ == "__main__": ...@@ -1959,9 +1959,9 @@ if __name__ == "__main__":
# update_delivery_device_settle_merchant(8, 2021) # update_delivery_device_settle_merchant(8, 2021)
# #处理直销 (原代销) # #处理直销 (原代销)
match_not_direct_settlement_delivery_order(startTime, 8, 0) # match_not_direct_settlement_delivery_order(startTime, 8, 0)
# #匹配客户渠道 (原直销) # #匹配客户渠道 (原直销)
match_direct_settlement_delivery_order(startTime, devType=8, findmode=0) # match_direct_settlement_delivery_order(startTime, devType=8, findmode=0)
# #
# #记录仪直销 (原代销) # #记录仪直销 (原代销)
# match_not_direct_settlement_delivery_order(startTime, devType=6, mode=0) # match_not_direct_settlement_delivery_order(startTime, devType=6, mode=0)
...@@ -1994,4 +1994,6 @@ if __name__ == "__main__": ...@@ -1994,4 +1994,6 @@ if __name__ == "__main__":
# 追踪器渠道测算激活 # 追踪器渠道测算激活
# active_direct_merchant_device() # active_direct_merchant_device()
# print(paddstr('杨林龙'))
print("done") print("done")
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!