forked from erp-dev/erp
feat: batch update for plate order
This commit is contained in:
@@ -126,7 +126,12 @@ async def fetch_row_by_rowid_from_mingdaoyun(
|
||||
if not rows:
|
||||
return None
|
||||
if isinstance(rows[0], dict):
|
||||
return rows[0]
|
||||
first = rows[0]
|
||||
# 明道云在 filters 不合法/不生效时可能仍返回默认列表数据。
|
||||
# 这里做一次校验,避免“误返回不匹配的第一条记录”。
|
||||
if first.get("rowid") != rowid:
|
||||
return None
|
||||
return first
|
||||
return None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user