fix DataResource.ResoureType为ResourceType

This commit is contained in:
gazebo
2019-09-26 18:06:14 +08:00
parent 5b1475fa13
commit 14961bd9f1
3 changed files with 11 additions and 11 deletions

View File

@@ -314,7 +314,7 @@ func UploadImg4Vendors(ctx *jxcontext.Context, isAsync, isContinueWhenError bool
case 1: // 从SkuName添加缺失的图片至DataResource
_, err = dao.ExecuteSQL(db, `
INSERT INTO data_resource(created_at, updated_at, last_operator, hash_code,
resoure_type, name, main_url, ebai_url, qiniu_url, is_vendor)
resource_type, name, main_url, ebai_url, qiniu_url, is_vendor)
SELECT t1.created_at, t1.created_at, t1.last_operator, t1.img_hash_code,
CASE
WHEN INSTR(t1.img, ".jpg") > 0 OR INSTR(t1.img, ".jpeg") > 0 THEN
@@ -325,7 +325,7 @@ func UploadImg4Vendors(ctx *jxcontext.Context, isAsync, isContinueWhenError bool
'image/gif'
ELSE
''
END resoure_type
END resource_type
, t1.name, img, img_ebai, IF(INSTR(t1.img, "image.jxc4.com") > 0, t1.img, '') qiniu_url, 1
FROM sku_name t1
JOIN (