Browse Source

Onsite内容APi添加服務圖片

Dev
alina 2 years ago
parent
commit
fdf88b236c
  1. 25
      EuroTran/EasyBL.WEBAPP/ShowEasy/ONSiteMaintain_QryService.cs
  2. 9
      EuroTran/Entity/ShowEasyDtos/ONSiteBaseInfoDTO.cs

25
EuroTran/EasyBL.WEBAPP/ShowEasy/ONSiteMaintain_QryService.cs

@ -1590,7 +1590,8 @@ namespace EasyBL.WEBAPP.ShowEasy
CurrencyName=t3.ArgumentValue,
ExpenseDescription ="",
SupplierName=t4.CompanyName,
SupplierLogo=t4.LogoFile
SupplierLogo=t4.LogoFile,
PreviewFile=t1.PreviewFile
}).Single();
//常見問題
@ -1703,10 +1704,10 @@ namespace EasyBL.WEBAPP.ShowEasy
}
objONSiteBaseInfo.ReceivinPlaces = sReceivinPlaces;
}
string requestUrl = Common.ConfigGetValue("", "ida:RedirectUri");
if (!string.IsNullOrEmpty(objONSiteBaseInfo.SupplierLogo)) {
string requestUrl = Common.ConfigGetValue("", "ida:RedirectUri");
var oFilePath = db.Queryable<OTB_SYS_Files>()
.Where(x => x.ParentID == objONSiteBaseInfo.SupplierLogo && x.OrgID == sORIGID)
.Select(x => new FileDTO
@ -1725,9 +1726,25 @@ namespace EasyBL.WEBAPP.ShowEasy
}
}
if (!string.IsNullOrEmpty(objONSiteBaseInfo.PreviewFile))
{
var oFilePath = db.Queryable<OTB_SYS_Files>()
.Where(x => x.ParentID == objONSiteBaseInfo.PreviewFile && x.OrgID == sORIGID)
.Select(x => new FileDTO
{
FileID = x.FileID,
FileName = x.FileName,
FilePath = x.FilePath
})
.Single();
if (oFilePath != null)
{
objONSiteBaseInfo.PreviewFile = requestUrl + "/" + oFilePath.FilePath.Replace("\\", "/");
}
}
return objONSiteBaseInfo;

9
EuroTran/Entity/ShowEasyDtos/ONSiteBaseInfoDTO.cs

@ -38,13 +38,18 @@ namespace Entity.ShowEasyDtos
public string Details { get; set; }
//取消政策
public string CancelPolicy { get; set; }
//最小金額
public int? MinPrice { get; set; }
//幣別
public string CurrencyID { get; set; }
//幣別名稱
public string CurrencyName { get; set; }
//供應商名稱
public string SupplierName { get; set; }
//供應商Logo
public string SupplierLogo { get; set; }
//服務封面圖片
public string PreviewFile { get; set; }
//public string CurrencyID { get; set; }
//public DateTime? LaunchDateS { get; set; }

Loading…
Cancel
Save