perf: 优化岗位管理dao层status类型与数据库保持一致
This commit is contained in:
@@ -21,7 +21,7 @@ class PostDao:
|
|||||||
post_info = (await db.execute(
|
post_info = (await db.execute(
|
||||||
select(SysPost)
|
select(SysPost)
|
||||||
.where(SysPost.post_id == post_id,
|
.where(SysPost.post_id == post_id,
|
||||||
SysPost.status == 0)
|
SysPost.status == '0')
|
||||||
)).scalars().first()
|
)).scalars().first()
|
||||||
|
|
||||||
return post_info
|
return post_info
|
||||||
|
Reference in New Issue
Block a user