From ccca8b41743a48e3e3792c8c2225ec736e7ae3aa Mon Sep 17 00:00:00 2001 From: xiao-hesheng Date: Fri, 26 Jul 2024 17:08:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E5=8D=81=E4=B8=89=E8=84=9A=E6=9C=AC=E7=BC=96?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\225\260\346\215\256\345\272\223\351\252\214\350\257\201.py" | 2 +- air_case/public1/public1/public1.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git "a/air_case/b6_spd3_core_business_flow_database_check/a_b4\346\265\201\347\250\213\345\215\201\344\270\200\350\257\267\351\242\206\344\270\232\345\212\241\346\265\201_\344\272\214\347\272\247\345\272\223\345\220\221\347\233\264\351\200\201_\346\225\260\346\215\256\345\272\223\351\252\214\350\257\201.air/a_b4\346\265\201\347\250\213\345\215\201\344\270\200\350\257\267\351\242\206\344\270\232\345\212\241\346\265\201_\344\272\214\347\272\247\345\272\223\345\220\221\347\233\264\351\200\201_\346\225\260\346\215\256\345\272\223\351\252\214\350\257\201.py" "b/air_case/b6_spd3_core_business_flow_database_check/a_b4\346\265\201\347\250\213\345\215\201\344\270\200\350\257\267\351\242\206\344\270\232\345\212\241\346\265\201_\344\272\214\347\272\247\345\272\223\345\220\221\347\233\264\351\200\201_\346\225\260\346\215\256\345\272\223\351\252\214\350\257\201.air/a_b4\346\265\201\347\250\213\345\215\201\344\270\200\350\257\267\351\242\206\344\270\232\345\212\241\346\265\201_\344\272\214\347\272\247\345\272\223\345\220\221\347\233\264\351\200\201_\346\225\260\346\215\256\345\272\223\351\252\214\350\257\201.py" index ab94fcf8..fd3790b4 100644 --- "a/air_case/b6_spd3_core_business_flow_database_check/a_b4\346\265\201\347\250\213\345\215\201\344\270\200\350\257\267\351\242\206\344\270\232\345\212\241\346\265\201_\344\272\214\347\272\247\345\272\223\345\220\221\347\233\264\351\200\201_\346\225\260\346\215\256\345\272\223\351\252\214\350\257\201.air/a_b4\346\265\201\347\250\213\345\215\201\344\270\200\350\257\267\351\242\206\344\270\232\345\212\241\346\265\201_\344\272\214\347\272\247\345\272\223\345\220\221\347\233\264\351\200\201_\346\225\260\346\215\256\345\272\223\351\252\214\350\257\201.py" +++ "b/air_case/b6_spd3_core_business_flow_database_check/a_b4\346\265\201\347\250\213\345\215\201\344\270\200\350\257\267\351\242\206\344\270\232\345\212\241\346\265\201_\344\272\214\347\272\247\345\272\223\345\220\221\347\233\264\351\200\201_\346\225\260\346\215\256\345\272\223\351\252\214\350\257\201.air/a_b4\346\265\201\347\250\213\345\215\201\344\270\200\350\257\267\351\242\206\344\270\232\345\212\241\346\265\201_\344\272\214\347\272\247\345\272\223\345\220\221\347\233\264\351\200\201_\346\225\260\346\215\256\345\272\223\351\252\214\350\257\201.py" @@ -2109,7 +2109,7 @@ def check_mcms_psi_batch_in(DR_ID, type, order_no, source_id1): else: commonFuc().check_text_exist_result_text('error', 'succees') dept_name = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid2'] - shelf_code = get_stockAreaId_new_fromDb(get_branch_name()+'中心库房', 1) + shelf_code = get_stockAreaId_new_fromDb(get_branch_name(), 1) create_user = get_login_user_uxid_bydb(FileUtils().r_info8('b2_herp3_bs', "用户名信息", 'message3')['username1']) create_time = get_create_time("select create_time from mcms_psi_batch where pid='%s';" % DR_ID) last_modified = get_create_time("select last_modified from mcms_psi_batch where pid='%s';" % DR_ID) diff --git a/air_case/public1/public1/public1.py b/air_case/public1/public1/public1.py index 8b6599b5..24a80846 100644 --- a/air_case/public1/public1/public1.py +++ b/air_case/public1/public1/public1.py @@ -1890,6 +1890,7 @@ def get_stockAreaId_new_fromDb(deptName, type=1): # 中心库房名称 branch_name = FileUtils().r_info(module, '院区新增')["branch_name"] stockId = get_stockId_fromdb(branch_name + '中心库房') + deptName = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid1'] # 二级库房名称 elif type == 2: stockId = get_stockId_fromdb(deptName + '库房') @@ -1901,6 +1902,7 @@ def get_stockAreaId_new_fromDb(deptName, type=1): # 获取库房id==========结束============ # ====获取库区id===== 开始========== + sql="select shelf_code from mcms_stock_shelf where stock_Id='%s'and address='%s';"%(stockId,deptName) print(sql) shelfCode=get_id(sql) -- GitLab