Merge pull request '#417,#418,#406' (#435) from zouap into V20210927
Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/435
Reviewed-by: lewis <747342561@qq.com>
Reviewed-by: lewis <747342561@qq.com>
Reviewed-by: lewis <747342561@qq.com>
Reviewed-by: lewis <747342561@qq.com>
Reviewed-by: lewis <747342561@qq.com>
Reviewed-by: lewis <747342561@qq.com>
Reviewed-by: lewis <747342561@qq.com>
return attachments, e.Where("decompress_state = ? and dataset_id != 0 and attachment.type = ? and name like '%.zip'", DecompressStateInit, TypeCloudBrainOne).Find(&attachments)
return attachments, e.Where("decompress_state = ? and dataset_id != 0 and attachment.type = ? and (name like '%.zip' or name like '%.tar.gz' or name like '%.tgz')", DecompressStateInit, TypeCloudBrainOne).Find(&attachments)