Commit ad9bb844 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

新增请领模板维护脚本

parent 705eba1b
...@@ -12,8 +12,8 @@ from common.timeUtils import timeUtils ...@@ -12,8 +12,8 @@ from common.timeUtils import timeUtils
__author__ = "xiaohesheng" __author__ = "xiaohesheng"
""" """
case_tag:api,herp-web,q3科室管理_科室产品分配_请领模板维护_移除产品,id2263,id2263-199,sit,on case_tag:api,herp-web,q7科室管理_科室产品分配_请领模板维护_移除产品,id2263,id2263-199,sit,on
内网:q3科室管理_科室产品分配_请领模板维护_移除产品 内网:q7科室管理_科室产品分配_请领模板维护_移除产品
""" """
from common.common_func import commonFuc from common.common_func import commonFuc
...@@ -22,8 +22,8 @@ module = "b2_herp3_bs" ...@@ -22,8 +22,8 @@ module = "b2_herp3_bs"
def test1(): def test1():
""" """
场景:q3科室管理_科室产品分配_请领模板维护_移除产品 场景:q7科室管理_科室产品分配_请领模板维护_移除产品
用例名称:q3科室管理_科室产品分配_请领模板维护_移除产品 用例名称:q7科室管理_科室产品分配_请领模板维护_移除产品
输入:"" 输入:""
输出:"rtn_msg": {"code": 0, "msg": null, "data":[]} 输出:"rtn_msg": {"code": 0, "msg": null, "data":[]}
""" """
...@@ -95,3 +95,5 @@ def test1(): ...@@ -95,3 +95,5 @@ def test1():
commonFuc().check_text_exist('error', result) commonFuc().check_text_exist('error', result)
test1() test1()
#调用数据库删除所有的模板
delData().Delete_goods_pur_template()
...@@ -62,6 +62,17 @@ class delData(object): ...@@ -62,6 +62,17 @@ class delData(object):
cursor.execute("commit;") cursor.execute("commit;")
print('消息通知模板类型已经删除成功 ') print('消息通知模板类型已经删除成功 ')
cursor.close() cursor.close()
def Delete_goods_pur_template(self):
connection = pymysql.connect(host="10.17.65.108", user="root", password="Cmic.2023", database="spd3_herp_test2",
charset="utf8")
cursor = connection.cursor()
# 删除产品信息修改数据
sql = "delete from mcms_goods_pur_template where create_user ='UID-050151';"
print(sql)
cursor.execute(sql)
cursor.execute("commit;")
print('请领模板删除成功 ')
cursor.close()
# 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()
......
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