优化接单商品匹配
This commit is contained in:
@@ -204,6 +204,7 @@ export async function listKuaishouIndustryVouchersByOid(
|
||||
export type KuaishouIndustryVoucherWorkOrderSyncSource = {
|
||||
oid: string
|
||||
raw_payload_json: string | Record<string, unknown>
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
export async function listKuaishouIndustryVoucherWorkOrderSyncSources(
|
||||
@@ -211,7 +212,7 @@ export async function listKuaishouIndustryVoucherWorkOrderSyncSources(
|
||||
): Promise<KuaishouIndustryVoucherWorkOrderSyncSource[]> {
|
||||
const result = await query<KuaishouIndustryVoucherWorkOrderSyncSource>(
|
||||
`
|
||||
SELECT oid, raw_payload_json
|
||||
SELECT oid, raw_payload_json, updated_at
|
||||
FROM (
|
||||
SELECT DISTINCT ON (oid) oid, raw_payload_json, updated_at, id
|
||||
FROM kuaishou_industry_vouchers
|
||||
|
||||
Reference in New Issue
Block a user