|
@@ -36,16 +36,13 @@ async def get_emergency_plan_list(
|
|
|
# 将查询结果转换为列表形式的字典
|
|
|
emergency_plans_list = [
|
|
|
{
|
|
|
- "id": plan.id,
|
|
|
"plan_id": plan.plan_id,
|
|
|
"plan_number": plan.plan_number,
|
|
|
"plan_name": plan.plan_name,
|
|
|
- "plan_type": plan.plan_type,
|
|
|
"plan_type_desc": plan.plan_type_desc,
|
|
|
- "publish_date": plan.publish_date.strftime('%Y-%m-%d %H:%M:%S'),
|
|
|
"organizing_unit": plan.organizing_unit,
|
|
|
"document_number": plan.document_number,
|
|
|
- # 其他需要的字段...
|
|
|
+ "publish_date": plan.publish_date.strftime('%Y-%m-%d %H:%M:%S')
|
|
|
}
|
|
|
for plan in emergency_plans
|
|
|
]
|