将DataResource.IsVendor改为UseType
This commit is contained in:
@@ -23,7 +23,7 @@ type DataResource struct {
|
||||
|
||||
ResourceType string `orm:"size(48)" json:"resourceType"` // 资料的mime type
|
||||
Name string `orm:"size(48);index" json:"name"`
|
||||
IsVendor int8 `json:"isVendor"` // 是否是平台需要的(平台需要才会上传到平台)
|
||||
UseType int8 `json:"isVendor"` // 图资源使用方式(大于0才可能需要上传至平台)
|
||||
|
||||
MainURL string `orm:"size(512);column(main_url);unique" json:"mainURL"`
|
||||
QiniuURL string `orm:"size(512);column(qiniu_url);index" json:"qiniuURL"`
|
||||
|
||||
@@ -26,7 +26,7 @@ func GetNeedUploadDataResource(db *DaoDB) (dataResList []*model.DataResource, er
|
||||
sql := `
|
||||
SELECT t1.*
|
||||
FROM data_resource t1
|
||||
WHERE t1.is_vendor <> 0 AND (t1.ebai_url = '' OR t1.mtwm_url = '')`
|
||||
WHERE t1.use_type <> 0 AND (t1.ebai_url = '' OR t1.mtwm_url = '')`
|
||||
err = GetRows(db, &dataResList, sql)
|
||||
return dataResList, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user