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 2bf8349da899468b048584ad6a93949017ee9176..8297233a03421b33c4cbcfc53644a37eb7011fc5 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" @@ -8,7 +8,7 @@ from common.db.sql.sql_del_branch_info import delData from common.db.sql.sql_tools import get_create_time, check_mcms_dept_buy_car_sql, get_dept_buy_id, \ check_mcms_dept_buy_sql, get_mdm_goods_code, get_expdt_date, check_mcms_pur_plan_sql, check_in_check_mcms_purchase, \ get_expdt_date1, process_date, get_mdm_goods_code1, get_goods_code1, get_goods_name, get_goods_gg, \ - get_goods_mfrs_id, get_supply_id + get_goods_mfrs_id, get_supply_id, check_mcms_pur_sql, check_source_id, get_pkg_def_id from common.db.sql.sql_tools_out import check_out_check_mcms_purchase from common.fileUtls import FileUtils @@ -597,6 +597,10 @@ def check_mcms_mcms_pur_plan_detail(id, type, planOrderNo): sql = "select id from mcms_pur_plan_detail where pid='%s' order by create_time desc LIMIT 1;" % ( id) id2 = process_tuple(get_dept_buy_id(sql)) # 采购计划单子表主键 + # # 将采购计划子表主键写入文件中 + # info = (id2, id2) + # titlename = ("id2", 'id2') + # FileUtils().w_info8(info, 'b6_spd3_core_business_flow_database_check', '采购计划单子表主键', titlename, 'message') sql = "select order_no from mcms_pur_plan where id='%s' order by create_time desc LIMIT 1;" % ( id2) PLAN_order_no = process_tuple(get_dept_buy_id(sql)) # 采购计划单子表order_no @@ -924,20 +928,20 @@ def check_mcms_purchase(type=16): commonFuc().check_text_exist_result_text('error', 'succees') -def check_mcms_purchase_detail(id, type, planOrderNo): +def check_mcms_purchase_detail(id, type, OrderNo): branch_id = get_branch_id() - # 根据采购计划主表的id获取采购计划单子表主键 - sql = "select id from mcms_pur_plan_detail where pid='%s' order by create_time desc LIMIT 1;" % ( + # 根据采购订单主表的id获取采购订单子表主键 + sql = "select id from mcms_purchase_detail where pid='%s' order by create_time desc LIMIT 1;" % ( + id) + detail_main_key = process_tuple(get_dept_buy_id(sql)) # 采购订单单子表主键 + sql = "select order_no from mcms_purchase_detail where pid='%s' order by create_time desc LIMIT 1;" % ( id) - id2 = process_tuple(get_dept_buy_id(sql)) # 采购计划单子表主键 - sql = "select order_no from mcms_pur_plan where id='%s' order by create_time desc LIMIT 1;" % ( - id2) PLAN_order_no = process_tuple(get_dept_buy_id(sql)) # 采购计划单子表order_no # 要验证的数据sql - sql1 = "select * from mcms_pur_plan_detail where id='%s' order by create_time desc LIMIT 1;" % ( - id2) + sql1 = "select * from mcms_purchase_detail where pid='%s' order by create_time desc LIMIT 1;" % ( + id) # 获取实际值 - actual = check_mcms_pur_plan_sql(sql1) + actual = check_mcms_pur_sql(sql1) print('actual', actual) hos_id = get_hosid() dept_id1 = FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid1'] @@ -952,102 +956,69 @@ def check_mcms_purchase_detail(id, type, planOrderNo): pid = id if type == 16: hos_goods_id = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message2')["hosGoodsId"] - mdm_goods_code = process_tuple( - get_id("select mdm_goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( - hos_goods_id, id2))) - # print(mdm_goods_code) - goods_code = process_tuple( - get_id("select goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( - hos_goods_id, id2))) - pkg_def_id = process_tuple( - get_id("select pkg_def_id from mcms_pkg where hos_goods_id='%s' LIMIT 1;" % hos_goods_id)) - supply_id = process_tuple( - get_id("select supply_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( - hos_goods_id, id2))) - prov_id = FileUtils().r_info8('b5_spd3_core_business_flow', '供货关系申请2', 'message')["e_corpId"] - prov_name = FileUtils().r_info8('b5_spd3_core_business_flow', '供货关系申请2', 'message')["e_username"] - sub_prov_id = prov_id - create_time = get_create_time( - "select create_time from mcms_pur_plan_detail where id='%s';" % ( - id2)) - last_modified = create_time - sub_prov_name = prov_name - source_id = process_tuple( - get_id("select source_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( - hos_goods_id, id2))) - expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', - 'mcms_pur_plan_detail', id2, pid, planOrderNo, source_id, hos_goods_id, - mdm_goods_code, goods_code, pkg_def_id, supply_id, prov_id, prov_name, - sub_prov_id, sub_prov_name, - create_user, create_time, last_modified, last_modified_user - ) elif type == 20: hos_goods_id = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message1')["hosGoodsId"] - mdm_goods_code = process_tuple( - get_id("select mdm_goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( - hos_goods_id, id2))) - # print(mdm_goods_code) - goods_code = process_tuple( - get_id("select goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( - hos_goods_id, id2))) - # pkg_def_id = process_tuple( - # get_id("select pkg_def_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( - # hos_goods_id, id2))) - supply_id = process_tuple( - get_id("select supply_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( - hos_goods_id, id2))) - prov_id = FileUtils().r_info8('b5_spd3_core_business_flow', '供货关系申请2', 'message')["e_corpId"] - prov_name = FileUtils().r_info8('b5_spd3_core_business_flow', '供货关系申请2', 'message')["e_username"] - sub_prov_id = prov_id - create_time = get_create_time( - "select create_time from mcms_pur_plan_detail where id='%s';" % ( - id2)) - last_modified = create_time - sub_prov_name = prov_name - source_id = process_tuple( - get_id("select source_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( - hos_goods_id, id2))) + else: + hos_goods_id = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message3')["hosGoodsId"] + source_id=get_id("select source_id from mcms_purchase_detail where pid='%s' order by create_time desc LIMIT 1;"%id) + if check_source_id(hos_goods_id,source_id)==True: + commonFuc().check_text_exist_result_text('succees', 'succees') + else: + commonFuc().check_text_exist_result_text('error', 'succees') + mdm_goods_code=get_mdm_goods_code1(hos_goods_id) + goods_code=get_goods_code1(hos_goods_id) + supply_id=get_supply_id(hos_goods_id) + pkg_def_id=get_pkg_def_id(hos_goods_id) + planBillId = process_tuple( + get_id( + "select pid from mcms_pur_plan_detail where hos_goods_id='%s' order by create_time desc LIMIT 1;" % ( + hos_goods_id))) + sql = "select id from spd3_herp_test2.mcms_dept_buy where branch_id='%s' and bill_mode='%s' order by create_time desc LIMIT 1;" % ( + get_branch_id(), type) + print(sql) + buyBillId = process_tuple(get_dept_buy_id(sql)) + buyDetailId = get_id( + "select id from mcms_dept_buy_detail where pid='%s';" % buyBillId) + planBillId = process_tuple( + get_id( + "select pid from spd3_herp_test2.mcms_pur_plan_detail where hos_goods_id='%s' order by create_time desc LIMIT 1;" % ( + hos_goods_id))) + planDetailId = get_id( + "select id from spd3_herp_test2.mcms_purchase_detail where pid='%s';" % detail_main_key) + source_id=planDetailId + goodsGg=get_goods_gg(hos_goods_id) + goodsCode=get_goods_code1(hos_goods_id) + goodsName=get_goods_name(hos_goods_id) + create_user=get_login_user_uxid() + create_time=get_create_time("select create_time from mcms_pur_plan_detail where pid='%s'"%detail_main_key) + last_modified=create_time + last_modified_user=create_user + #获取采购计划子表id + if type == 16: expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', - 'mcms_pur_plan_detail2', id2, pid, planOrderNo, source_id, + 'mcms_pur_plan_detail', detail_main_key, pid, OrderNo, source_id, hos_goods_id, + mdm_goods_code, goods_code, supply_id,pkg_def_id, planBillId, buyDetailId,planDetailId, + goodsGg, goodsCode,goodsName,create_user,create_time,last_modified,last_modified_user + ) + + elif type == 20: + expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', + 'mcms_pur_plan_detail', detail_main_key, pid, OrderNo, source_id, hos_goods_id, - mdm_goods_code, goods_code, supply_id, prov_id, prov_name, - sub_prov_id, sub_prov_name, - create_user, create_time, last_modified, last_modified_user + mdm_goods_code, goods_code, supply_id, pkg_def_id, planBillId, + buyDetailId, planDetailId, + goodsGg, goodsCode, goodsName, create_user, create_time, last_modified, + last_modified_user ) else: - - hos_goods_id = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message3')["hosGoodsId"] - mdm_goods_code = process_tuple( - get_id("select mdm_goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( - hos_goods_id, id2))) - # print(mdm_goods_code) - goods_code = process_tuple( - get_id("select goods_code from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( - hos_goods_id, id2))) - pkg_def_id = process_tuple( - get_id("select pkg_def_id from mcms_pkg where hos_goods_id='%s' LIMIT 1;" % hos_goods_id)) - supply_id = process_tuple( - get_id("select supply_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( - hos_goods_id, id2))) - prov_id = FileUtils().r_info8('b5_spd3_core_business_flow', '供货关系申请2', 'message')["e_corpId"] - prov_name = FileUtils().r_info8('b5_spd3_core_business_flow', '供货关系申请2', 'message')["e_username"] - sub_prov_id = prov_id - create_time = get_create_time( - "select create_time from mcms_pur_plan_detail where id='%s';" % ( - id2)) - last_modified = create_time - sub_prov_name = prov_name - source_id = process_tuple( - get_id("select source_id from mcms_pur_plan_detail where hos_goods_id='%s' and id='%s';" % ( - hos_goods_id, id2))) expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', - 'mcms_pur_plan_detail3', id2, pid, planOrderNo, source_id, + 'mcms_pur_plan_detail', detail_main_key, pid, OrderNo, source_id, hos_goods_id, - mdm_goods_code, goods_code, pkg_def_id, supply_id, prov_id, prov_name, - sub_prov_id, sub_prov_name, - create_user, create_time, last_modified, last_modified_user - ) + mdm_goods_code, goods_code, supply_id, pkg_def_id, planBillId, + buyDetailId, planDetailId, + goodsGg, goodsCode, goodsName, create_user, create_time, last_modified, + last_modified_user) actual_value1 = get_process_list2(actual) expected_value1 = get_process_list2(expected) @@ -1451,7 +1422,7 @@ try: sys.path.append(pro_path + r'/air_case/b5_spd3_core_business_flow/a_b4流程十一请领业务流_二级库向直送.air') using(pro_path + r'//air_case/b5_spd3_core_business_flow/a_b4流程十一请领业务流_二级库向直送.air') - updateUserLoginDefaultRange(get_listUserMgrRangePage(2)) # 设置登录账号默认权限是二级库 + from a_b4流程十一请领业务流_二级库向直送 import goods_move2 @@ -1462,39 +1433,40 @@ try: from a_b4流程十一请领业务流_二级库向直送 import check_accept_order for i in range(1): - goods_move2() # 设置产品出库渠道为直送 - # # 低值 - second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message2')['hosGoodsId'], 1) - check_mcms_dept_buy_car(1) - # # 高值 - second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId'], 2) - check_mcms_dept_buy_car(2) - # # 试剂 - second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message3')['hosGoodsId'], 3) - check_mcms_dept_buy_car(3) - BuyCarSubmit() # 请领车提交 - - list_data = ['16', '20', '66'] - for i in list_data: - check_mcms_dept_buy(int(i)) - mcms_dept_buy_detail(int(i)) - for i in range(6): # 三个单据共审批6次 - approval_center() - list_data = ['16', '20', '66'] - for i in list_data: - check_mcms_dept_buy_approval_after(int(i)) - mcms_dept_buy_detail_approval_after(int(i)) - - # 检查自动生成的采购计划数据 - list_data = ['16', '20', '66'] - for i in list_data: - check_mcms_mcms_pur_plan(int(i)) - # 采购模块处理 - purchase_module_process() - - for i in range(3): # 三个单据共审批3次 - approval_center() - + # updateUserLoginDefaultRange(get_listUserMgrRangePage(2)) # 设置登录账号默认权限是二级库 + # goods_move2() # 设置产品出库渠道为直送 + # # # 低值 + # second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message2')['hosGoodsId'], 1) + # check_mcms_dept_buy_car(1) + # # # 高值 + # second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId'], 2) + # check_mcms_dept_buy_car(2) + # # # 试剂 + # second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message3')['hosGoodsId'], 3) + # check_mcms_dept_buy_car(3) + # BuyCarSubmit() # 请领车提交 + # + # list_data = ['16', '20', '66'] + # for i in list_data: + # check_mcms_dept_buy(int(i)) + # mcms_dept_buy_detail(int(i)) + # for i in range(6): # 三个单据共审批6次 + # approval_center() + # list_data = ['16', '20', '66'] + # for i in list_data: + # check_mcms_dept_buy_approval_after(int(i)) + # mcms_dept_buy_detail_approval_after(int(i)) + # + # # 检查自动生成的采购计划数据 + # list_data = ['16', '20', '66'] + # for i in list_data: + # check_mcms_mcms_pur_plan(int(i)) + # # 采购模块处理 + # purchase_module_process() + # + # for i in range(3): # 三个单据共审批3次 + # approval_center() + # 上面暂时注释========================================= list_data = ['16', '20', '66'] for i in list_data: check_mcms_purchase(int(i)) @@ -1509,7 +1481,7 @@ try: list_data = ['16', '20', '66'] for i in list_data: check_hdi_distr(int(i)) - # 上面暂时注释========================================= + # check_accept_order(1) # 低值 # # check_mcms_check(1)#调用函数检查验收单数据库写值 diff --git a/common/db/sql/sql_tools.py b/common/db/sql/sql_tools.py index 350bbda1c3afcef28add7a81628903d6e310942e..64bf37f817ffd6280acd0fed5cab1bcd7ede3a41 100644 --- a/common/db/sql/sql_tools.py +++ b/common/db/sql/sql_tools.py @@ -122,6 +122,12 @@ def check_mcms_pur_plan_sql(sql): print('res_dict', res_dict) cursor.close() return res_dict +def check_mcms_pur_sql(sql): + db, cursor = get_sql_conn() + res_dict = get_dict_data_sql(cursor, sql) + print('res_dict', res_dict) + cursor.close() + return res_dict def get_create_time(sql): db, cursor = get_sql_conn() cursor.execute(sql) @@ -204,6 +210,12 @@ def get_supply_id(hos_goods_id): results = cursor.fetchall() cursor.close() return process_tuple(results) +def get_pkg_def_id(hos_goods_id): + db, cursor = get_sql_conn() + cursor.execute("select pkg_def_id from mcms_pkg where hos_goods_id='%s'" % hos_goods_id) + results = cursor.fetchall() + cursor.close() + return process_tuple(results) def get_goods_name1(hos_goods_id): db, cursor = get_sql_conn() cursor.execute("select goods_name from mcms_goods_info where id='%s'" % hos_goods_id) @@ -223,6 +235,17 @@ def get_goods_mfrs_id(hos_goods_id): cursor.close() return process_tuple(results) +def check_source_id(hos_goods_id,source_id): + db, cursor = get_sql_conn() + cursor.execute("select hos_goods_id from mcms_pur_plan_detail where id='%s'" % (source_id)) + results1 = cursor.fetchall() + cursor.close() + hos_goods_id2= process_tuple(results1) + if hos_goods_id2==hos_goods_id: + return True + else: + return False + def check_in_check_mcms_purchase(sql): db, cursor = get_sql_conn() cursor.execute(sql) diff --git a/data/b6_spd3_core_business_flow_database_check/data b/data/b6_spd3_core_business_flow_database_check/data index ea19cc5125af170962c9db4d913000dcc123773d..242fb8afe5e74846c4a4536695b288c0ee7ce8c7 100644 --- a/data/b6_spd3_core_business_flow_database_check/data +++ b/data/b6_spd3_core_business_flow_database_check/data @@ -40,6 +40,9 @@ "mcms_purchase2": '{"id": "%s", "order_no": "%s", "bill_mode": "20", "rec_type": "HDI", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "rec_org_id": "%s", "rec_org_name": "%s", "area_code": "%s", "area_name": "%s", "bill_expdt_date": %s, "source_id": "%s", "source_type": "CGJH", "in_settlement": None, "rec_user": "%s", "rec_phone": "None", "rec_addr": "%s", "prov_id": "%s", "prov_name": "%s", "sub_send_flag": 10, "exe_prov_id": "%s", "exe_prov_name": "%s", "bill_relation_json": "{"buyBillId":"%s","planBillId":"%s","planOrderNo":"%s","buyOrderNo":"%s","purOrderNo":"%s","purBillId":"%s"}", "ext_info": "{"epidemicFlag":0,"purMode":20}", "barcode_flag": 1, "pkg_flag": 0, "remark": "", "priority": 0, "close_status": 0, "close_date": %s, "up_status": 0, "tb_status": 30, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": None, "version": 0, "del_flag": 0, "last_auditor": "%s", "last_audit_time": %s}' "mcms_purchase3": '{"id": "%s", "order_no": "%s", "bill_mode": "66", "rec_type": "HDI", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "rec_org_id": "%s", "rec_org_name": "%s", "area_code": "%s", "area_name": "%s", "bill_expdt_date": %s, "source_id": "%s", "source_type": "CGJH", "in_settlement": None, "rec_user": "%s", "rec_phone": "None", "rec_addr": "%s", "prov_id": "%s", "prov_name": "%s", "sub_send_flag": 10, "exe_prov_id": "%s", "exe_prov_name": "%s", "bill_relation_json": "{"buyBillId":"%s","planBillId":"%s","planOrderNo":"%s","buyOrderNo":"%s","purOrderNo":"%s","purBillId":"%s"}", "ext_info": "{"epidemicFlag":0,"purMode":60}", "barcode_flag": 1, "pkg_flag": 1, "remark": "", "priority": 0, "close_status": 0, "close_date": %s, "up_status": 0, "tb_status": 30, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": None, "version": 0, "del_flag": 0, "last_auditor": "%s", "last_audit_time": %s}' +"mcms_purchase_detail": '{"id": "%s", "pid": "%s", "order_no": "%s", "source_id": "%s", "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "pur_mode": 10, "price": Decimal("99.999900"), "supply_id": "%s", "pkg_def_id": "%s", "pkg_def_name": "100", "pkg_def_qty": Decimal("100.00"), "pkg_qty": Decimal("1.00"), "qty": Decimal("100.00"), "con_pkg_qty": Decimal("0.00"), "con_qty": Decimal("0.00"), "up_pkg_qty": Decimal("0.00"), "up_qty": Decimal("0.00"), "check_pkg_qty": Decimal("0.00"), "check_qty": Decimal("0.00"), "distr_pkg_qty": Decimal("0.00"), "distr_qty": Decimal("0.00"), "not_send_qty": Decimal("0.00"), "not_send_pkg_qty": Decimal("0.00"), "in_settlement": 1, "close_type": 1, "detail_relation_json": "{"planBillId":"%s","buyDetailId":"%s","planDetailId":"%s"}", "ext_info": "{"goodsGg":"%s","goodsCode":"%s","purMode":10,"goodsName":"%s"}", "remark": None, "tb_status": 10, "pur_task_id": None, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "del_flag": 0}'' + + "hdi_distr": '{"id": "%s", "order_no": "%s", "bill_mode": "16", "rec_type": "HDI", "hos_id": "%s", "hos_name": "%s", "branch_id": "%s", "source_id": "%s", "source_type": "CGD", "pur_bill_id": "%s", "prov_id": "%s", "prov_name": "%s", "sub_send_flag": 10, "exe_prov_id": "%s", "exe_prov_name": "%s", "settlement": None, "pur_dept_id": "%s", "pur_dept_name": "%s", "rec_org_id": "%s", "rec_org_name": "%s", "rec_user": "%s", "rec_phone": "None", "rec_addr": "设备科001", "bill_relation_json": "{"buyBillId":"%s","planBillId":"%s","planOrderNo":"%s","buyOrderNo":"%s","purOrderNo":"%s","purBillId":"%s","purBillDate":"%s","distrBillId":"%s","distrOrderNo":"%s"}", "ext_info": "{"epidemicFlag":0,"purMode":10,"distrUser":"%s"}", "barcode_flag": 1, "pkg_flag": 1, "remark": "", "task_id": None, "convert_flag": 1, "convert_time": None, "convert_user_name": None, "reject_status": 0, "tb_status": 20, "create_user": "%s", "create_user_name": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "del_flag": 0, "last_auditor": None, "last_audit_time": None, "initial_order": None}' "hdi_distr1": '{"id": "%s", "order_no": "%s", "bill_mode": "20", "rec_type": "HDI", "hos_id": "%s", "hos_name": "%s", "branch_id": "%s", "source_id": "%s", "source_type": "CGD", "pur_bill_id": "%s", "prov_id": "%s", "prov_name": "%s", "sub_send_flag": 10, "exe_prov_id": "%s", "exe_prov_name": "%s", "settlement": None, "pur_dept_id": "%s", "pur_dept_name": "%s", "rec_org_id": "%s", "rec_org_name": "%s", "rec_user": "%s", "rec_phone": "None", "rec_addr": "设备科001", "bill_relation_json": "{"buyBillId":"%s","planBillId":"%s","planOrderNo":"%s","buyOrderNo":"%s","purOrderNo":"%s","purBillId":"%s","purBillDate":"%s","distrBillId":"%s","distrOrderNo":"%s"}", "ext_info": "{"epidemicFlag":0,"purMode":20,"distrUser":"%s"}", "barcode_flag": 1, "pkg_flag": 0, "remark": "", "task_id": None, "convert_flag": 1, "convert_time": None, "convert_user_name": None, "reject_status": 0, "tb_status": 20, "create_user": "%s", "create_user_name": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "del_flag": 0, "last_auditor": None, "last_audit_time": None, "initial_order": None}' "hdi_distr2": '{"id": "%s", "order_no": "%s", "bill_mode": "66", "rec_type": "HDI", "hos_id": "%s", "hos_name": "%s", "branch_id": "%s", "source_id": "%s", "source_type": "CGD", "pur_bill_id": "%s", "prov_id": "%s", "prov_name": "%s", "sub_send_flag": 10, "exe_prov_id": "%s", "exe_prov_name": "%s", "settlement": None, "pur_dept_id": "%s", "pur_dept_name": "%s", "rec_org_id": "%s", "rec_org_name": "%s", "rec_user": "%s", "rec_phone": "None", "rec_addr": "设备科001", "bill_relation_json": "{"buyBillId":"%s","planBillId":"%s","planOrderNo":"%s","buyOrderNo":"%s","purOrderNo":"%s","purBillId":"%s","purBillDate":"%s","distrBillId":"%s","distrOrderNo":"%s"}", "ext_info": "{"epidemicFlag":0,"purMode":60,"distrUser":"%s"}", "barcode_flag": 1, "pkg_flag": 1, "remark": "", "task_id": None, "convert_flag": 1, "convert_time": None, "convert_user_name": None, "reject_status": 0, "tb_status": 20, "create_user": "%s", "create_user_name": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 1, "del_flag": 0, "last_auditor": None, "last_audit_time": None, "initial_order": None}'