Commit 7606b6ab authored by xiao-hesheng's avatar xiao-hesheng
Browse files

优化调整脚本

parent b21d3b85
...@@ -217,6 +217,7 @@ def check_mcms_dept_buy(type=16): ...@@ -217,6 +217,7 @@ def check_mcms_dept_buy(type=16):
pkgDefId = commonFuc().analysis_json('pkgDefId', list_a) pkgDefId = commonFuc().analysis_json('pkgDefId', list_a)
pkgDefName = commonFuc().analysis_json('pkgDefName', list_a) pkgDefName = commonFuc().analysis_json('pkgDefName', list_a)
# 获取边仓id # 获取边仓id
time.sleep(3)
target_stock_id = get_id("select logic_id FROM yb_direct WHERE branch_id ='%s' order by create_time desc LIMIT 1;" % branch_id) target_stock_id = get_id("select logic_id FROM yb_direct WHERE branch_id ='%s' order by create_time desc LIMIT 1;" % branch_id)
bill_expdt_date = get_expdt_date( bill_expdt_date = get_expdt_date(
"select bill_expdt_date from mcms_dept_buy where branch_id='%s' and bill_mode='%s' and buy_kind='KS' order by create_time desc LIMIT 1;" % ( "select bill_expdt_date from mcms_dept_buy where branch_id='%s' and bill_mode='%s' and buy_kind='KS' order by create_time desc LIMIT 1;" % (
......
...@@ -525,7 +525,7 @@ class commonFuc(object): ...@@ -525,7 +525,7 @@ class commonFuc(object):
def randomString(self, n): def randomString(self, n):
import string import string
import random import random
s = "".join(random.sample(string.ascii_letters + string.digits + "!@#$%^&*()", n)) s = "".join(random.sample(string.ascii_letters + string.digits + "!@#$%^&*", n))
return s return s
def random_int(self): def random_int(self):
import random import random
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment