perf: 优化部分ids字符串分割写法

This commit is contained in:
insistence
2024-07-15 21:24:17 +08:00
parent d1b6db4769
commit 2263897111
15 changed files with 19 additions and 19 deletions

View File

@@ -117,7 +117,7 @@ class PostService:
:param page_object: 删除岗位对象
:return: 删除岗位校验结果
"""
if page_object.post_ids.split(','):
if page_object.post_ids:
post_id_list = page_object.post_ids.split(',')
try:
for post_id in post_id_list: