Commit 241c2f67 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

数据库验证流程十一脚本编写

parent e72731c1
...@@ -977,9 +977,9 @@ def check_mcms_purchase_detail(id, type, planOrderNo): ...@@ -977,9 +977,9 @@ def check_mcms_purchase_detail(id, type, planOrderNo):
goods_code = process_tuple( goods_code = process_tuple(
get_id("select goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( get_id("select goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % (
hos_goods_id, id2))) hos_goods_id, id2)))
pkg_def_id = process_tuple( # pkg_def_id = process_tuple(
get_id("select pkg_def_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( # get_id("select pkg_def_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % (
hos_goods_id, id2))) # hos_goods_id, id2)))
supply_id = process_tuple( supply_id = process_tuple(
get_id("select supply_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( get_id("select supply_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % (
hos_goods_id, id2))) hos_goods_id, id2)))
...@@ -1013,8 +1013,7 @@ def check_mcms_purchase_detail(id, type, planOrderNo): ...@@ -1013,8 +1013,7 @@ def check_mcms_purchase_detail(id, type, planOrderNo):
get_id("select goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( get_id("select goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % (
hos_goods_id, id2))) hos_goods_id, id2)))
pkg_def_id = process_tuple( pkg_def_id = process_tuple(
get_id("select pkg_def_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( get_id("select pkg_def_id from mcms_pkg where hos_goods_id='%s' LIMIT 1;" % hos_goods_id))
hos_goods_id, id2)))
supply_id = process_tuple( supply_id = process_tuple(
get_id("select supply_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( get_id("select supply_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % (
hos_goods_id, id2))) hos_goods_id, id2)))
......
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