Commit 8266a544 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程十一脚本编写

parent 399aba48
# -*- encoding=utf8 -*- # -*- encoding=utf8 -*-
from common.db.sql.sql_del_branch_info import delData
__author__ = "xiaohesheng" __author__ = "xiaohesheng"
...@@ -31,3 +32,11 @@ check_dict = commonFuc().get_business_data(module, "checkDict1") ...@@ -31,3 +32,11 @@ check_dict = commonFuc().get_business_data(module, "checkDict1")
#断言实际结果中是否包含预期结果的内容 #断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result1) commonFuc().check_result(check_dict, result1)
# check_dict = commonFuc().get_business_data('a3_mdm3_hs', "checkDict3")
# print('check_dict',check_dict)
# result2=delData().check_goods_info()
# print('result2',result2)
# if result2==check_dict:
# print('okaaaaaaaaaaaaaaaaaaaaa')
# else:
# print('bbbbbbbbbbbbbbbbbbbbbbbbbbb')
\ No newline at end of file
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
import pymysql import pymysql
from common.common_func import commonFuc
from common.fileUtls import FileUtils from common.fileUtls import FileUtils
...@@ -671,6 +672,18 @@ class delData(object): ...@@ -671,6 +672,18 @@ class delData(object):
cursor.execute("commit;") cursor.execute("commit;")
print('外网产品信息删除成功 ') print('外网产品信息删除成功 ')
cursor.close() cursor.close()
def check_goods_info(self):
# 内网的
connection = pymysql.connect(host="10.17.65.108", user="root", password="Cmic.2023", database="spd3_herp_test2",
charset="utf8")
cursor = connection.cursor()
# 删除产品信息
sql1 = "select * from mcms_goods_info where goods_name like '%一次性注射器%'and goods_spec ='G-31891' and id='h034700003737';"
cursor.execute(sql1)
results = cursor.fetchall()
cursor.close()
# print(results)
return results
# delData().Delete_branch_by_id() # delData().Delete_branch_by_id()
# delData().Delete_goods_change_info() # delData().Delete_goods_change_info()
# delData().Delete_sys_config() # delData().Delete_sys_config()
...@@ -685,3 +698,4 @@ class delData(object): ...@@ -685,3 +698,4 @@ class delData(object):
# delData().Delete_yb_logic_stock() # delData().Delete_yb_logic_stock()
# delData().Delete_business_Data_All() # delData().Delete_business_Data_All()
# delData().Delete_business_Data_All2() # delData().Delete_business_Data_All2()
# delData().check_goods_info()
...@@ -192,4 +192,5 @@ json_headers2: { ...@@ -192,4 +192,5 @@ json_headers2: {
"name1": "湖南省人民医院" "name1": "湖南省人民医院"
checkDict: {"code": 0,'msg': None,'data':1} checkDict: {"code": 0,'msg': None,'data':1}
checkDict1: {'code': -2, 'msg': '医院已提交注册,请耐心等待审核通知!', 'tag': None, 'data': None} checkDict1: {'code': -2, 'msg': '医院已提交注册,请耐心等待审核通知!', 'tag': None, 'data': None}
checkDict2: {'code': 0, 'msg': None, 'data': 'success'} checkDict2: {'code': 0, 'msg': None, 'data': 'success'}
\ No newline at end of file "checkDict3": "(('h034700003737', '00003737', 'h0347', 'p1e233', '88c4c0e07ab745ba96499ad55de163ad', None, '11660629', '11660629', '11660629', '一次性注射器_低值o7A*P', '一次性注射器', 'mfrs-11229', '德国歌德公司 Geuder AG', '', None, '', 'ycxzsq_dzo7A*P', None, '支', 'G-31891', Decimal('1.000000'), 2, '3', 10, None, None, '', None, Decimal('99.9999'), None, '德国', None, None, '', 1, None, 0, None, 0, '', '', None, None, 1, 0, 1, 'p1e233:UID-051759', datetime.datetime(2024, 5, 23, 8, 48), 'p1e233:UID-051759', datetime.datetime(2024, 5, 23, 8, 48, 6), 0, 0, 1, None),)"
\ No newline at end of file
...@@ -95,7 +95,7 @@ setInterval(updateTime, 1000); // 每秒更新一次时间 ...@@ -95,7 +95,7 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
<tr width="600"> <tr width="600">
<td class="details-col-elapsed"><a href='../log/医院注册_注册时医院已存在/log.html' target='_blank'>医院注册_注册时医院已存在</a></td> <td class="details-col-elapsed"><a href='../log/医院注册_注册时医院已存在/log.html' target='_blank'>医院注册_注册时医院已存在</a></td>
<td class="success">成功</td> <td class="success">成功</td>
<td class="details-col-elapsed">0.455</td> <td class="details-col-elapsed">0.516</td>
<td class="details-col-elapsed">xiaohesheng</td> <td class="details-col-elapsed">xiaohesheng</td>
</tr> </tr>
......
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