| | |
| | | String sql = " set nocount on ; \n" |
| | | + " declare @ShopCcCode varchar(50) = "+GridUtils.prossSqlParm(shopCcCode)+" \n" |
| | | + " select a.DocCode,a.Title,a.BannerImage,a.BannerImageUrl,a.isShowBannerOnHomePage,a.isShowBannerOnDetailPage, \n" |
| | | + " a.Description,a.MetaTitle,a.MetaDescription,a.MetaKeyword \n" |
| | | + " a.Description,a.MetaTitle,a.MetaDescription,a.MetaKeyword,a.HDLink,a.HDPathCode,a.HDFinderUserName,a.HDFeedId,a.HDFeedToken \n" |
| | | + " from t714031H a where a.Active = 1 \n" |
| | | + " and (isnull(@ShopCcCode,'') = '' or a.ShopCcCode = @ShopCcCode ) \n" |
| | | + " and isnull(a.isShowBannerOnHomePage,0) = 1 \n" |
| | |
| | | String sql = " set nocount on ; \n" |
| | | + " declare @ShopCcCode varchar(50) = "+GridUtils.prossSqlParm(shopCcCode)+" \n" |
| | | + " select a.DocCode,a.Title,a.BannerImage,a.BannerImageUrl,a.isShowBannerOnHomePage,a.isShowBannerOnDetailPage, \n" |
| | | + " a.Description,a.MetaTitle,a.MetaDescription,a.MetaKeyword \n" |
| | | + " a.Description,a.MetaTitle,a.MetaDescription,a.MetaKeyword,a.HDLink,a.HDPathCode,a.HDFinderUserName,a.HDFeedId,a.HDFeedToken \n" |
| | | + " from t714031H a where a.Active = 1 \n" |
| | | + " and (isnull(@ShopCcCode,'') = '' or a.ShopCcCode = @ShopCcCode ) \n" |
| | | + " order by a.SortOrder asc,a.DocCode desc; \n" ; |
| | |
| | | + " declare @DocCode varchar(20) = "+GridUtils.prossSqlParm(docCode)+",@Title varchar(50) = "+GridUtils.prossSqlParm(title)+" \n" |
| | | + " declare @ShopCcCode varchar(50) = "+GridUtils.prossSqlParm(shopCcCode)+" ,@AuthorizationAppid varchar(50) = "+GridUtils.prossSqlParm(authorizationAppid)+" \n" |
| | | + " select a.DocCode,a.Title,a.BannerImage,a.BannerImageUrl,a.isShowBannerOnHomePage,a.isShowBannerOnDetailPage, \n" |
| | | + " a.Description,a.MetaTitle,a.MetaDescription,a.MetaKeyword, \n" |
| | | + " a.Description,a.MetaTitle,a.MetaDescription,a.MetaKeyword,,a.HDLink,a.HDPathCode,a.HDFinderUserName,a.HDFeedId,a.HDFeedToken, \n" |
| | | + " b.Link,b.PathCode,b.Image,b.SortOrder,c.PathName,c.PathUrl, \n" |
| | | + " case when exists(select 1 from t720123 y where b.pathcode = y.pathcode and y.AuthorizationAppid = @AuthorizationAppid) then 1 else 0 end as isTabBarButton, \n" |
| | | + " b.isShowBottom \n" |
| | | + " b.isShowBottom,,b.FinderUserName,b.FeedId,b.FeedToken \n" |
| | | + " from t714031H a join t714031D b on a.doccode = b.doccode \n" |
| | | + " left join t730117 c on b.PathCode = c.PathCode \n" |
| | | + " where (isnull(@DocCode,'') = '' or a.DocCode = @DocCode ) \n" |
| | |
| | | info.setMetaTitle(map.get("MetaTitle") == null ? "": (String)map.get("MetaTitle")); |
| | | info.setMetaDescription(map.get("MetaDescription") == null ? "": (String)map.get("MetaDescription")); |
| | | info.setMetaKeyword(map.get("MetaKeyword") == null ? "": (String)map.get("MetaKeyword")); |
| | | info.setHdLink(map.get("HDLink") == null ? "": (String)map.get("HDLink")); |
| | | info.setHdPathCode(map.get("HDPathCode") == null ? "": (String)map.get("HDPathCode")); |
| | | info.setHdFinderUserName(map.get("HDFinderUserName") == null ? "": (String)map.get("HDFinderUserName")); |
| | | info.setHdFeedId(map.get("HDFeedId") == null ? "": (String)map.get("HDFeedId")); |
| | | info.setHdFeedToken(map.get("HDFeedToken") == null ? "": (String)map.get("HDFeedToken")); |
| | | info.setLink(map.get("Link") == null ? "": (String)map.get("Link")); |
| | | info.setPathCode(map.get("PathCode") == null ? "": (String)map.get("PathCode")); |
| | | info.setImage(map.get("Image") == null ? "": (String)map.get("Image")); |
| | | info.setPathName(map.get("PathName") == null ? "": (String)map.get("PathName")); |
| | | info.setPathUrl(map.get("PathUrl") == null ? "": (String)map.get("PathUrl")); |
| | | info.setFinderUserName(map.get("FinderUserName") == null ? "": (String)map.get("FinderUserName")); |
| | | info.setFeedId(map.get("FeedId") == null ? "": (String)map.get("FeedId")); |
| | | info.setFeedToken(map.get("FeedToken") == null ? "": (String)map.get("FeedToken")); |
| | | info.setTabBarButton(map.get("isTabBarButton")!=null&&map.get("isTabBarButton").equals(1)?true:false); |
| | | info.setShowBannerOnDetailPage(map.get("isShowBannerOnDetailPage") != null && map.get("isShowBannerOnDetailPage").equals(1) ?true:false); |
| | | info.setShowBottom(map.get("isShowBottom")!=null&&map.get("isShowBottom").equals(1)?true:false); |
| | |
| | | |
| | | + " select top 1 a.DocCode,a.Title,a.BannerImage,a.BannerImageUrl, \n" |
| | | + " a.isShowBannerOnHomePage,a.isShowBannerOnDetailPage, \n" |
| | | + " a.Description,a.MetaTitle,a.MetaDescription,a.MetaKeyword \n" |
| | | + " a.Description,a.MetaTitle,a.MetaDescription,a.MetaKeyword,a.MetaKeyword,\n" |
| | | + " a.HDLink,a.HDPathCode,a.HDFinderUserName,a.HDFeedId,a.HDFeedToken \n" |
| | | + " from t714031H a \n" |
| | | + " where (isnull(@DocCode,'') = '' or a.DocCode = @DocCode ) \n" |
| | | + " and (isnull(@Title,'') = '' or a.Title = @Title ) \n" |
| | |
| | | info.setMetaDescription((String)map.get("MetaDescription") == null ? "": (String)map.get("MetaDescription")); |
| | | info.setMetaKeyword((String)map.get("MetaKeyword") == null ? "": (String)map.get("MetaKeyword")); |
| | | info.setShowBannerOnDetailPage(map.get("isShowBannerOnDetailPage") != null && map.get("isShowBannerOnDetailPage").equals(1) ?true:false); |
| | | info.setHdLink(map.get("HDLink") == null ? "": (String)map.get("HDLink")); |
| | | info.setHdPathCode(map.get("HDPathCode") == null ? "": (String)map.get("HDPathCode")); |
| | | info.setHdFinderUserName(map.get("HDFinderUserName") == null ? "": (String)map.get("HDFinderUserName")); |
| | | info.setHdFeedId(map.get("HDFeedId") == null ? "": (String)map.get("HDFeedId")); |
| | | info.setHdFeedToken(map.get("HDFeedToken") == null ? "": (String)map.get("HDFeedToken")); |
| | | } |
| | | |
| | | return info; |