同步菜市物料到果园更新测试

This commit is contained in:
苏尹岚
2020-04-26 14:08:50 +08:00
parent 80570ca76d
commit a67ed0b140

View File

@@ -4457,7 +4457,7 @@ func SyncMatterC4ToGy(ctx *jxcontext.Context, isContinueWhenError, isAsync bool)
}() }()
if v != nil { if v != nil {
sql := ` sql := `
UPDATE sku SET spec_quality = ?, spec_unit = ?, eclp_id = ?, updated_at = ?, last_operator = ? UPDATE sku SET spec_quality = ?, spec_unit = ?, eclp_id = ?, last_operator = ?
WHERE eclp_id = ? WHERE eclp_id = ?
AND deleted_at = ? AND deleted_at = ?
` `
@@ -4473,7 +4473,7 @@ func SyncMatterC4ToGy(ctx *jxcontext.Context, isContinueWhenError, isAsync bool)
sql := ` sql := `
UPDATE sku_name a UPDATE sku_name a
JOIN sku b ON a.id = b.name_id JOIN sku b ON a.id = b.name_id
SET a.name = ?, a.img = ?, a.img2 = ?, a.desc_img = ?, a.unit = ?, a.price = ?, updated_at = ?, lase_operator = ? SET a.name = ?, a.img = ?, a.img2 = ?, a.desc_img = ?, a.unit = ?, a.price = ?, lase_operator = ?
WHERE b.eclp_id = ? WHERE b.eclp_id = ?
AND a.deleted_at = ? AND a.deleted_at = ?
` `