main #155

Merged
charles merged 5 commits from main into prod 2026-08-06 11:33:24 +08:00
2 changed files with 2 additions and 5 deletions
Showing only changes of commit 8c6bd7307b - Show all commits

View File

@ -34,10 +34,7 @@ async def front_news_search(ns={}):
publish_time_zh, publish_time_en, read_count
from enterprise_news_article
where %s
order by greatest(
ifnull(publish_time_zh, '1000-01-01'),
ifnull(publish_time_en, '1000-01-01')
) desc, update_time desc
order by publish_time_zh desc, update_time desc
limit %s offset %s;
""" % (where_clause, page_size, offset)
result = await sor.sqlExe(search_sql, {})

View File

@ -88,7 +88,7 @@ async def news_article_search(ns={}):
'status': True,
'msg': 'search news article success',
'data': result,
'article_type_summary_zh': article_type_summary_zh,
'article_type_summary': article_type_summary_zh,
'article_type_summary_en': article_type_summary_en,
'pagination': {
'total': total_count,