perf: 优化岗位管理dao层status类型与数据库保持一致

This commit is contained in:
insistence
2024-07-01 21:48:14 +08:00
parent 1fa14118ff
commit d7d8dcda1c

View File

@@ -21,7 +21,7 @@ class PostDao:
post_info = (await db.execute(
select(SysPost)
.where(SysPost.post_id == post_id,
SysPost.status == 0)
SysPost.status == '0')
)).scalars().first()
return post_info