commit by Kalman.CHENG ☆

This commit is contained in:
chengminglong
2025-09-11 15:10:25 +08:00
parent 5d64aa2648
commit 453b023aee
6 changed files with 175 additions and 12 deletions

View File

@@ -0,0 +1,22 @@
import logging
from Util.Database import find_by_sql
# 配置日志
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s")
logger = logging.getLogger(__name__)
################################
# 功能根据person_id获取人员信息
# 作者Kalman.CHENG ☆
# 时间2025-09-09
# 备注:
################################
async def get_person_info(person_id):
select_person_sql: str = f"select * from t_sys_loginperson where person_id = '{person_id}' and b_use = 1"
select_person_result = await find_by_sql(select_person_sql, ())
if select_person_result:
return select_person_result[0]
else:
return None