UploadImg4Vendors中防止添加DataResource时,加入hashCode为空的
This commit is contained in:
@@ -389,7 +389,7 @@ func UploadImg4Vendors(ctx *jxcontext.Context, isAsync, isContinueWhenError bool
|
||||
GROUP BY 1
|
||||
) t3 ON t3.id = t1.id
|
||||
LEFT JOIN data_resource t2 ON ((t2.main_url <> '' AND t2.main_url = t1.img) OR (t2.hash_code <> '' AND t2.hash_code = t1.img_hash_code))
|
||||
WHERE t1.img <> '' AND t2.id IS NULL;
|
||||
WHERE t1.img_hash_code <> '' AND t1.img <> '' AND t2.id IS NULL;
|
||||
`)
|
||||
case 2: // 统一SkuName中同hashCode,不同图片地址至同一地址
|
||||
_, err = dao.ExecuteSQL(db, `
|
||||
|
||||
Reference in New Issue
Block a user