UploadImg4Vendors中防止添加DataResource时,加入hashCode为空的

This commit is contained in:
gazebo
2019-09-26 10:49:54 +08:00
parent 3d916f5dd6
commit 3e6c031cd3
2 changed files with 2 additions and 2 deletions

View File

@@ -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, `