Commit 52c7c9db authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程九脚本编写

parent 974cb76f
...@@ -237,6 +237,32 @@ class delData(object): ...@@ -237,6 +237,32 @@ class delData(object):
cursor.execute("commit;") cursor.execute("commit;")
print('内网供应关系删除成功 ') print('内网供应关系删除成功 ')
cursor.close() cursor.close()
def Del_reporter_data(self):
connection = pymysql.connect(host="10.17.65.108", user="root", password="Cmic.2023", database="spd3_report_hospitaltest2",
charset="utf8")
cursor = connection.cursor()
branch_id=FileUtils().r_info8('b2_herp3_bs', "院区新增", 'message')['branch_id']
sql = "delete from mcms_finance_daybook where branch_id= '%s');"%branch_id
cursor.execute(sql)
cursor.execute("commit;")
sql = "delete from mcms_finance_psi where branch_id= '%s');" % branch_id
cursor.execute(sql)
cursor.execute("commit;")
sql = "delete from mcms_psi_detail where branch_id= '%s');" % branch_id
cursor.execute(sql)
cursor.execute("commit;")
sql = "delete from mcms_stockpile_image where branch_id= '%s');" % branch_id
cursor.execute(sql)
cursor.execute("commit;")
sql = "delete from mcms_xh_month_report where branch_id= '%s');" % branch_id
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()
......
企业信息: 企业信息:
e_id: CR202405160038 e_id: CR202405170114
cname: 国药集团公司Ag1XO cname: 国药集团公司9E$q)
医院信息: 医院信息:
h_id: 湖南省人民医院JMKFq h_id: 湖南省人民医院)XSGh
h_name: 湖南省人民医院JMKFq h_name: 湖南省人民医院)XSGh
产品审核信息: 产品审核信息:
MSPid: MSP2405160011_1 MSPid: MSP2405170026_1
hosId: h0347 hosId: h0347
hosGoodsId: h034700003606 hosGoodsId: h034700003634
provGoodsid: provGood-99220739 provGoodsid: provGood-99220767
goodsAuditBillId: MSP2405160011 goodsAuditBillId: MSP2405170026
targetId: MSP2405160011_1 targetId: MSP2405170026_1
院区新增: 院区新增:
branch_id: h0347-3600 branch_id: h0347-3605
branch_name: 东土城路院区0HE@g branch_name: 东土城路院区VeCS2
科室信息: 科室信息:
dept2_id: 05ad9f86a9914798a8410999ca547a96 dept2_id: ec3e173b8bb14fd1b178185faf081198
dept2_name: 二级检验科002 dept2_name: 二级检验科002
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<tr width="600"> <tr width="600">
<td class='details-col-elapsed'>1</td> <td class='details-col-elapsed'>1</td>
<td class='details-col-elapsed'>0</td> <td class='details-col-elapsed'>0</td>
<td class='details-col-elapsed'>1分20秒</td> <td class='details-col-elapsed'>0分40秒</td>
<td class="details-col-elapsed">0.0%</td> <td class="details-col-elapsed">0.0%</td>
</tr> </tr>
</table> </table>
...@@ -72,9 +72,9 @@ ...@@ -72,9 +72,9 @@
</tr> </tr>
<tr width="600"> <tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b2流程九请领业务流_二级库向中心库/log.html' target='_blank'>a_b2流程九请领业务流_二级库向中心库</a></td> <td class="details-col-elapsed"><a href='../log/a_a9流程六_中心库入库结算_负结算/log.html' target='_blank'>a_a9流程六_中心库入库结算_负结算</a></td>
<td class="fail">失败</td> <td class="fail">失败</td>
<td class="details-col-elapsed">80.157</td> <td class="details-col-elapsed">40.114</td>
<td class="details-col-elapsed">xiaohesheng</td> <td class="details-col-elapsed">xiaohesheng</td>
</tr> </tr>
......
...@@ -98,4 +98,5 @@ if __name__ == '__main__': ...@@ -98,4 +98,5 @@ if __name__ == '__main__':
delData().Delete_goods_change_info() delData().Delete_goods_change_info()
delData().Delete_probeInfo_other() delData().Delete_probeInfo_other()
delData().Del_supply_relation() delData().Del_supply_relation()
delData().Del_reporter_data()
print('结束了') print('结束了')
\ No newline at end of file
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