10 lines
255 B
Python
10 lines
255 B
Python
# -*- coding: utf-8 -*-
|
|
"""设备域 SQL。"""
|
|
from dao.conn import DBConn
|
|
|
|
|
|
class EquipmentDao(DBConn):
|
|
def get_devices(self):
|
|
sql = "select id, name from mes_device where del_flag=0 order by create_date desc"
|
|
return self.select(sql)
|