功能:实现客户现场使用记录
This commit is contained in:
@@ -337,8 +337,20 @@ class MasterDao:
|
||||
return await cls._paginate(db, statement, query_object, is_page)
|
||||
|
||||
@classmethod
|
||||
async def get_line(cls, db: AsyncSession, line_id: int) -> BizProductionLine | None:
|
||||
return await cls._get(db, BizProductionLine, BizProductionLine.line_id, line_id)
|
||||
async def get_line(
|
||||
cls,
|
||||
db: AsyncSession,
|
||||
line_id: int,
|
||||
*,
|
||||
for_update: bool = False,
|
||||
) -> BizProductionLine | None:
|
||||
return await cls._get(
|
||||
db,
|
||||
BizProductionLine,
|
||||
BizProductionLine.line_id,
|
||||
line_id,
|
||||
for_update=for_update,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
async def find_line_by_code(
|
||||
|
||||
Reference in New Issue
Block a user