功能:实现客户现场使用记录

This commit is contained in:
焦龙言
2026-07-26 21:14:01 +08:00
parent 3076194328
commit bc774c74e6
7 changed files with 1968 additions and 14 deletions
@@ -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(