feat: MES 接口自动化测试框架(unittest + HTMLTestRunner + 数据驱动)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""质检域 SQL。
|
||||
|
||||
连接统一走 dao.conn 分发,模块内不写死租户 id。
|
||||
"""
|
||||
from dao.conn import DBConn
|
||||
|
||||
|
||||
class QualityDao(DBConn):
|
||||
def get_points(self, mes_id):
|
||||
sql = "select id, name from mes_quality_inspection_point where del_flag=0"
|
||||
return self.select(sql)
|
||||
|
||||
def get_types(self, mes_id):
|
||||
sql = "select id, name from mes_quality_inspection_type where del_flag=0"
|
||||
return self.select(sql)
|
||||
Reference in New Issue
Block a user