Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1-office-web-sit
Commits
b8b55a8e
Commit
b8b55a8e
authored
Jan 09, 2022
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】修改链接newtopic
parent
3d21119a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
346 additions
and
22 deletions
+346
-22
TransferController.java
...io/office/modules/manage/transfer/TransferController.java
+346
-22
No files found.
src/main/java/io/office/modules/manage/transfer/TransferController.java
View file @
b8b55a8e
...
...
@@ -53,6 +53,11 @@ public class TransferController {
@Autowired
private
CodeagentService
codeagentService
;
@Autowired
private
RetailService
retailService
;
@Autowired
private
PolicyService
policyService
;
@RequestMapping
(
"/api/indexCarouselManage"
)
// @RequiresPermissions("generator:topicnews:list")
...
...
@@ -501,7 +506,6 @@ public class TransferController {
newsEntityDB
.
setContent
(
newsEntity
.
getContent
().
replaceAll
(
"src=\"/UserImages"
,
"src=\""
+
fileRequestPrefix
+
"UserImages"
));
}
}
//修改
if
(
StringUtils
.
isNotBlank
(
newsEntityDB
.
getContent
())
||
StringUtils
.
isNotBlank
(
newsEntityDB
.
getDirectpath
())
||
StringUtils
.
isNotBlank
(
newsEntityDB
.
getPic
()))
{
UpdateWrapper
<
NewsEntity
>
updateWrapper
=
new
UpdateWrapper
();
...
...
@@ -648,24 +652,27 @@ public class TransferController {
if
(
StringUtils
.
isNotBlank
(
newtopicEntity
.
getContent
()))
{
/
/
if (newtopicEntity.getContent().indexOf("<img src=\"/UserFiles/") > -1) {//官网的链接
//
newtopicEntityDB.setContent(newtopicEntity.getContent().replaceAll("<img src=\"/UserFiles/", "<img src=\"" + fileRequestPrefix + "UserFiles/"));
//
}
//
if (newtopicEntity.getContent().indexOf("<img src=\"/UserImages") > -1) {//官网的链接
//
newtopicEntityDB.setContent(newtopicEntity.getContent().replaceAll("<img src=\"UserImages", "<img src=\"" + fileRequestPrefix + "UserImages/"));
// }
/*
if (newtopicEntity.getContent().indexOf("src=\"/UserFiles") > -1) {//官网的链接
/
*
if (newtopicEntity.getContent().indexOf("<img src=\"/UserFiles/") > -1) {//官网的链接
newtopicEntityDB.setContent(newtopicEntity.getContent().replaceAll("<img src=\"/UserFiles/", "<img src=\"" + fileRequestPrefix + "UserFiles/"));
}
if (newtopicEntity.getContent().indexOf("<img src=\"/UserImages") > -1) {//官网的链接
newtopicEntityDB.setContent(newtopicEntity.getContent().replaceAll("<img src=\"UserImages", "<img src=\"" + fileRequestPrefix + "UserImages/"));
}*/
if
(
newtopicEntity
.
getContent
().
indexOf
(
"src=\"/UserFiles"
)
>
-
1
)
{
//官网的链接
newtopicEntityDB
.
setContent
(
newtopicEntity
.
getContent
().
replaceAll
(
"src=\"/UserFiles"
,
"src=\""
+
fileRequestPrefix
+
"UserFiles"
));
}
if
(
newtopicEntity
.
getContent
().
indexOf
(
"src=\"/UserImages"
)
>
-
1
)
{
//官网的链接
newtopicEntityDB
.
setContent
(
newtopicEntity
.
getContent
().
replaceAll
(
"src=\"/UserImages"
,
"src=\""
+
fileRequestPrefix
+
"UserImages"
));
}*/
}
if
(
newtopicEntity
.
getContent
().
indexOf
(
"news/newsone.asp"
)
>
-
1
)
{
newtopicEntityDB
.
setContent
(
newtopicEntity
.
getContent
().
replaceAll
(
"news/newsone.asp"
,
"News/msg"
));
}
}
//修改
if
(
StringUtils
.
isNotBlank
(
newtopicEntityDB
.
getContent
())
||
StringUtils
.
isNotBlank
(
newtopicEntityDB
.
getDirectpath
())
/*|| StringUtils.isNotBlank(newtopicEntityDB.getPic())*/
)
{
UpdateWrapper
<
NewtopicEntity
>
updateWrapper
=
new
UpdateWrapper
();
updateWrapper
.
eq
(
"classid"
,
newtopicEntity
.
get
I
d
());
updateWrapper
.
eq
(
"classid"
,
newtopicEntity
.
get
Classi
d
());
newtopicService
.
update
(
newtopicEntityDB
,
updateWrapper
);
}
...
...
@@ -949,20 +956,337 @@ public class TransferController {
}
@RequestMapping
(
"/api/retail"
)
// @RequiresPermissions("generator:topicnews:list")
public
R
retail
()
{
QueryWrapper
<
RetailEntity
>
indexCarouselManageEntityQueryWrapper
=
new
QueryWrapper
<>();
int
count
=
retailService
.
count
(
indexCarouselManageEntityQueryWrapper
);
if
(
count
>
0
)
{
boolean
flag
=
true
;
int
n
=
1
;
while
(
flag
)
{
int
limit
=
10
;
int
pages
=
0
;
if
((
count
%
limit
)
==
0
)
{
pages
=
(
count
/
limit
);
}
else
{
pages
=
(
count
/
limit
)
+
1
;
}
if
(
n
<=
pages
)
{
IPage
<
RetailEntity
>
pageData
=
retailService
.
page
(
new
Page
(
n
,
limit
),
indexCarouselManageEntityQueryWrapper
);
if
(
CollectionUtils
.
isNotEmpty
(
pageData
.
getRecords
()))
{
for
(
RetailEntity
retailEntity
:
pageData
.
getRecords
())
{
RetailEntity
retailEntityDB
=
new
RetailEntity
();
if
(
StringUtils
.
isNotBlank
(
retailEntity
.
getPic
())
&&
!
retailEntity
.
getPic
().
startsWith
(
"http:"
))
{
retailEntityDB
.
setPic
(
fileRequestPrefix
+
"news/newsimg/"
+
retailEntity
.
getPic
());
}
if
(
StringUtils
.
isNotBlank
(
retailEntity
.
getContent
()))
{
if
(
retailEntity
.
getContent
().
indexOf
(
"http://www.gs1cn.org"
)
>
-
1
&&
!(
retailEntity
.
getContent
().
indexOf
(
"http://www.gs1cn.org/UserImages"
)
>
-
1
)
&&
!(
retailEntity
.
getContent
().
indexOf
(
"http://www.ancc.org.cn/UserFiles"
)
>
-
1
))
{
//官网的链接
retailEntityDB
.
setContent
(
retailEntity
.
getContent
().
replaceAll
(
"http://www.gs1cn.org"
,
domainListProperties
.
getDomain
()));
}
if
(
retailEntity
.
getContent
().
indexOf
(
"http://www.ancc.org.cn"
)
>
-
1
&&
!(
retailEntity
.
getContent
().
indexOf
(
"http://www.gs1cn.org/UserImages"
)
>
-
1
)
&&
!(
retailEntity
.
getContent
().
indexOf
(
"http://www.ancc.org.cn/UserFiles"
)
>
-
1
))
{
//官网的链接
retailEntityDB
.
setContent
(
retailEntity
.
getContent
().
replaceAll
(
"http://www.ancc.org.cn"
,
domainListProperties
.
getDomain
()));
}
if
(
retailEntity
.
getContent
().
indexOf
(
"http://81.68.189.225:8080"
)
>
-
1
)
{
//官网的链接
retailEntityDB
.
setContent
(
retailEntity
.
getContent
().
replaceAll
(
"http://81.68.189.225:8080"
,
domainListProperties
.
getDomain
()));
}
if
(
retailEntity
.
getContent
().
indexOf
(
"news/article.aspx"
)
>
-
1
)
{
retailEntityDB
.
setContent
(
retailEntity
.
getContent
().
replaceAll
(
"news/article.aspx"
,
"News/msg"
));
}
if
(
retailEntity
.
getContent
().
indexOf
(
"News/article.aspx"
)
>
-
1
)
{
retailEntityDB
.
setContent
(
retailEntity
.
getContent
().
replaceAll
(
"News/article.aspx"
,
"News/msg"
));
}
if
(
retailEntity
.
getContent
().
indexOf
(
"news/article_admin.aspx"
)
>
-
1
)
{
retailEntityDB
.
setContent
(
retailEntity
.
getContent
().
replaceAll
(
"news/article_admin.aspx"
,
"News/msg"
));
}
if
(
retailEntity
.
getContent
().
indexOf
(
"News/VideoDetails.aspx"
)
>
-
1
)
{
retailEntityDB
.
setContent
(
retailEntity
.
getContent
().
replaceAll
(
"News/VideoDetails.aspx"
,
"News/msgVideo"
));
}
if
(
retailEntity
.
getContent
().
indexOf
(
"/Org/Intro.aspx"
)
>
-
1
)
{
retailEntityDB
.
setContent
(
retailEntity
.
getContent
().
replaceAll
(
"/Org/Intro.aspx"
,
domainListProperties
+
"/Org/Intro"
));
}
if
(
retailEntity
.
getContent
().
indexOf
(
"News/PicNews.aspx"
)
>
-
1
)
{
retailEntityDB
.
setContent
(
retailEntity
.
getContent
().
replaceAll
(
"News/PicNews.aspx"
,
"News/msg"
));
}
if
(
retailEntity
.
getContent
().
indexOf
(
"news/newsone.asp"
)
>
-
1
)
{
retailEntityDB
.
setContent
(
retailEntity
.
getContent
().
replaceAll
(
"news/newsone.asp"
,
"News/msg"
));
}
if
(
retailEntity
.
getContent
().
indexOf
(
"Service/notice/article.aspx"
)
>
-
1
)
{
retailEntityDB
.
setContent
(
retailEntity
.
getContent
().
replaceAll
(
"Service/notice/article.aspx"
,
"News/NoticeArticle"
));
}
if
(
retailEntity
.
getContent
().
indexOf
(
"News/VideoDetails.aspx"
)
>
-
1
)
{
retailEntityDB
.
setContent
(
retailEntity
.
getContent
().
replaceAll
(
"News/VideoDetails.aspx"
,
"News/msgVideo"
));
}
if
(
retailEntity
.
getContent
().
indexOf
(
"/News/msg?Id"
)
>
-
1
)
{
retailEntityDB
.
setContent
(
retailEntity
.
getContent
().
replaceAll
(
"/News/msg\\?Id"
,
"/News/msg?id"
));
}
}
if
(
StringUtils
.
isNotBlank
(
retailEntity
.
getContent
()))
{
// if (newsEntity.getContent().indexOf("<img src=\"/UserFiles/") > -1) {//官网的链接
// newsEntityDB.setContent(newsEntity.getContent().replaceAll("<img src=\"/UserFiles/", "<img src=\"" + fileRequestPrefix + "UserFiles/"));
// }
// if (newsEntity.getContent().indexOf("<img src=\"/UserImages") > -1) {//官网的链接
// newsEntityDB.setContent(newsEntity.getContent().replaceAll("<img src=\"UserImages", "<img src=\"" + fileRequestPrefix + "UserImages/"));
// }
if
(
retailEntity
.
getContent
().
indexOf
(
"src=\"/UserFiles"
)
>
-
1
)
{
//官网的链接
retailEntityDB
.
setContent
(
retailEntity
.
getContent
().
replaceAll
(
"src=\"/UserFiles"
,
"src=\""
+
fileRequestPrefix
+
"UserFiles"
));
}
if
(
retailEntity
.
getContent
().
indexOf
(
"src=\"/UserImages"
)
>
-
1
)
{
//官网的链接
retailEntityDB
.
setContent
(
retailEntity
.
getContent
().
replaceAll
(
"src=\"/UserImages"
,
"src=\""
+
fileRequestPrefix
+
"UserImages"
));
}
}
//修改
if
(
StringUtils
.
isNotBlank
(
retailEntityDB
.
getContent
())
)
{
UpdateWrapper
<
RetailEntity
>
updateWrapper
=
new
UpdateWrapper
();
updateWrapper
.
eq
(
"id"
,
retailEntity
.
getId
());
retailService
.
update
(
retailEntityDB
,
updateWrapper
);
}
}
n
=
n
+
1
;
}
}
else
{
flag
=
false
;
}
}
}
return
R
.
ok
().
put
(
"data"
,
null
);
}
@RequestMapping
(
"/api/policy"
)
// @RequiresPermissions("generator:topicnews:list")
public
R
policy
()
{
QueryWrapper
<
PolicyEntity
>
indexCarouselManageEntityQueryWrapper
=
new
QueryWrapper
<>();
int
count
=
policyService
.
count
(
indexCarouselManageEntityQueryWrapper
);
if
(
count
>
0
)
{
boolean
flag
=
true
;
int
n
=
1
;
while
(
flag
)
{
int
limit
=
10
;
int
pages
=
0
;
if
((
count
%
limit
)
==
0
)
{
pages
=
(
count
/
limit
);
}
else
{
pages
=
(
count
/
limit
)
+
1
;
}
if
(
n
<=
pages
)
{
IPage
<
PolicyEntity
>
pageData
=
policyService
.
page
(
new
Page
(
n
,
limit
),
indexCarouselManageEntityQueryWrapper
);
if
(
CollectionUtils
.
isNotEmpty
(
pageData
.
getRecords
()))
{
for
(
PolicyEntity
policyEntity
:
pageData
.
getRecords
())
{
PolicyEntity
policyEntityDB
=
new
PolicyEntity
();
//如果不为空
if
(
StringUtils
.
isNotBlank
(
policyEntity
.
getDirectpath
()))
{
//先判断是否是官网的前缀
if
(
policyEntity
.
getDirectpath
().
startsWith
(
"http://www.gs1cn.org"
))
{
//官网的链接
policyEntityDB
.
setDirectpath
(
policyEntity
.
getDirectpath
().
replaceAll
(
"http://www.gs1cn.org"
,
domainListProperties
.
getDomain
()));
}
if
(
policyEntity
.
getDirectpath
().
startsWith
(
"http://www.ancc.org.cn"
))
{
//官网的链接
policyEntityDB
.
setDirectpath
(
policyEntity
.
getDirectpath
().
replaceAll
(
"http://www.ancc.org.cn"
,
domainListProperties
.
getDomain
()));
}
if
(
policyEntity
.
getDirectpath
().
startsWith
(
"http://81.68.189.225:8080"
))
{
//官网的链接
policyEntityDB
.
setDirectpath
(
policyEntity
.
getDirectpath
().
replaceAll
(
"http://81.68.189.225:8080"
,
domainListProperties
.
getDomain
()));
}
if
(
policyEntity
.
getDirectpath
().
indexOf
(
"news/article.aspx"
)
>
-
1
)
{
policyEntityDB
.
setDirectpath
(
policyEntity
.
getDirectpath
().
replaceAll
(
"news/article.aspx"
,
"News/msg"
));
}
if
(
policyEntity
.
getDirectpath
().
indexOf
(
"News/article.aspx"
)
>
-
1
)
{
policyEntityDB
.
setDirectpath
(
policyEntity
.
getDirectpath
().
replaceAll
(
"News/article.aspx"
,
"News/msg"
));
}
if
(
policyEntity
.
getDirectpath
().
indexOf
(
"news/article_admin.aspx"
)
>
-
1
)
{
policyEntityDB
.
setDirectpath
(
policyEntity
.
getDirectpath
().
replaceAll
(
"news/article_admin.aspx"
,
"News/msg"
));
}
if
(
policyEntity
.
getDirectpath
().
indexOf
(
"News/VideoDetails.aspx"
)
>
-
1
)
{
policyEntityDB
.
setDirectpath
(
policyEntity
.
getDirectpath
().
replaceAll
(
"News/VideoDetails.aspx"
,
"News/msgVideo"
));
}
if
(
policyEntity
.
getDirectpath
().
indexOf
(
"/Org/Intro.aspx"
)
>
-
1
)
{
policyEntityDB
.
setDirectpath
(
policyEntity
.
getDirectpath
().
replaceAll
(
"/Org/Intro.aspx"
,
domainListProperties
+
"/Org/Intro"
));
}
if
(
policyEntity
.
getDirectpath
().
indexOf
(
"News/PicNews.aspx"
)
>
-
1
)
{
policyEntityDB
.
setDirectpath
(
policyEntity
.
getDirectpath
().
replaceAll
(
"News/PicNews.aspx"
,
"News/msg"
));
}
if
(
policyEntity
.
getDirectpath
().
indexOf
(
"news/newsone.asp"
)
>
-
1
)
{
policyEntityDB
.
setDirectpath
(
policyEntity
.
getDirectpath
().
replaceAll
(
"news/newsone.asp"
,
"News/msg"
));
}
if
(
policyEntity
.
getDirectpath
().
indexOf
(
"Service/notice/article.aspx"
)
>
-
1
)
{
policyEntityDB
.
setDirectpath
(
policyEntity
.
getDirectpath
().
replaceAll
(
"Service/notice/article.aspx"
,
"News/NoticeArticle"
));
}
if
(
policyEntity
.
getDirectpath
().
indexOf
(
"News/VideoDetails.aspx"
)
>
-
1
)
{
policyEntityDB
.
setDirectpath
(
policyEntity
.
getDirectpath
().
replaceAll
(
"News/VideoDetails.aspx"
,
"News/msgVideo"
));
}
}
if
(
StringUtils
.
isNotBlank
(
policyEntity
.
getContent
()))
{
if
(
policyEntity
.
getContent
().
indexOf
(
"http://www.gs1cn.org"
)
>
-
1
&&
!(
policyEntity
.
getContent
().
indexOf
(
"http://www.gs1cn.org/UserImages"
)
>
-
1
)
&&
!(
policyEntity
.
getContent
().
indexOf
(
"http://www.ancc.org.cn/UserFiles"
)
>
-
1
))
{
//官网的链接
policyEntityDB
.
setContent
(
policyEntity
.
getContent
().
replaceAll
(
"http://www.gs1cn.org"
,
domainListProperties
.
getDomain
()));
}
if
(
policyEntity
.
getContent
().
indexOf
(
"http://www.ancc.org.cn"
)
>
-
1
&&
!(
policyEntity
.
getContent
().
indexOf
(
"http://www.gs1cn.org/UserImages"
)
>
-
1
)
&&
!(
policyEntity
.
getContent
().
indexOf
(
"http://www.ancc.org.cn/UserFiles"
)
>
-
1
))
{
//官网的链接
policyEntityDB
.
setContent
(
policyEntity
.
getContent
().
replaceAll
(
"http://www.ancc.org.cn"
,
domainListProperties
.
getDomain
()));
}
if
(
policyEntity
.
getContent
().
indexOf
(
"http://81.68.189.225:8080"
)
>
-
1
)
{
//官网的链接
policyEntityDB
.
setContent
(
policyEntity
.
getContent
().
replaceAll
(
"http://81.68.189.225:8080"
,
domainListProperties
.
getDomain
()));
}
if
(
policyEntity
.
getContent
().
indexOf
(
"news/article.aspx"
)
>
-
1
)
{
policyEntityDB
.
setContent
(
policyEntity
.
getContent
().
replaceAll
(
"news/article.aspx"
,
"News/msg"
));
}
if
(
policyEntity
.
getContent
().
indexOf
(
"News/article.aspx"
)
>
-
1
)
{
policyEntityDB
.
setContent
(
policyEntity
.
getContent
().
replaceAll
(
"News/article.aspx"
,
"News/msg"
));
}
if
(
policyEntity
.
getContent
().
indexOf
(
"news/article_admin.aspx"
)
>
-
1
)
{
policyEntityDB
.
setContent
(
policyEntity
.
getContent
().
replaceAll
(
"news/article_admin.aspx"
,
"News/msg"
));
}
if
(
policyEntity
.
getContent
().
indexOf
(
"News/VideoDetails.aspx"
)
>
-
1
)
{
policyEntityDB
.
setContent
(
policyEntity
.
getContent
().
replaceAll
(
"News/VideoDetails.aspx"
,
"News/msgVideo"
));
}
if
(
policyEntity
.
getContent
().
indexOf
(
"/Org/Intro.aspx"
)
>
-
1
)
{
policyEntityDB
.
setContent
(
policyEntity
.
getContent
().
replaceAll
(
"/Org/Intro.aspx"
,
domainListProperties
+
"/Org/Intro"
));
}
if
(
policyEntity
.
getContent
().
indexOf
(
"News/PicNews.aspx"
)
>
-
1
)
{
policyEntityDB
.
setContent
(
policyEntity
.
getContent
().
replaceAll
(
"News/PicNews.aspx"
,
"News/msg"
));
}
if
(
policyEntity
.
getContent
().
indexOf
(
"news/newsone.asp"
)
>
-
1
)
{
policyEntityDB
.
setContent
(
policyEntity
.
getContent
().
replaceAll
(
"news/newsone.asp"
,
"News/msg"
));
}
if
(
policyEntity
.
getContent
().
indexOf
(
"Service/notice/article.aspx"
)
>
-
1
)
{
policyEntityDB
.
setContent
(
policyEntity
.
getContent
().
replaceAll
(
"Service/notice/article.aspx"
,
"News/NoticeArticle"
));
}
if
(
policyEntity
.
getContent
().
indexOf
(
"News/VideoDetails.aspx"
)
>
-
1
)
{
policyEntityDB
.
setContent
(
policyEntity
.
getContent
().
replaceAll
(
"News/VideoDetails.aspx"
,
"News/msgVideo"
));
}
if
(
policyEntity
.
getContent
().
indexOf
(
"/News/msg?Id"
)
>
-
1
)
{
policyEntityDB
.
setContent
(
policyEntity
.
getContent
().
replaceAll
(
"/News/msg\\?Id"
,
"/News/msg?id"
));
}
}
if
(
StringUtils
.
isNotBlank
(
policyEntity
.
getContent
()))
{
// if (newsEntity.getContent().indexOf("<img src=\"/UserFiles/") > -1) {//官网的链接
// newsEntityDB.setContent(newsEntity.getContent().replaceAll("<img src=\"/UserFiles/", "<img src=\"" + fileRequestPrefix + "UserFiles/"));
// }
// if (newsEntity.getContent().indexOf("<img src=\"/UserImages") > -1) {//官网的链接
// newsEntityDB.setContent(newsEntity.getContent().replaceAll("<img src=\"UserImages", "<img src=\"" + fileRequestPrefix + "UserImages/"));
// }
if
(
policyEntity
.
getContent
().
indexOf
(
"src=\"/UserFiles"
)
>
-
1
)
{
//官网的链接
policyEntityDB
.
setContent
(
policyEntity
.
getContent
().
replaceAll
(
"src=\"/UserFiles"
,
"src=\""
+
fileRequestPrefix
+
"UserFiles"
));
}
if
(
policyEntity
.
getContent
().
indexOf
(
"src=\"/UserImages"
)
>
-
1
)
{
//官网的链接
policyEntityDB
.
setContent
(
policyEntity
.
getContent
().
replaceAll
(
"src=\"/UserImages"
,
"src=\""
+
fileRequestPrefix
+
"UserImages"
));
}
}
//修改
if
(
StringUtils
.
isNotBlank
(
policyEntityDB
.
getContent
())
||
StringUtils
.
isNotBlank
(
policyEntityDB
.
getDirectpath
())
)
{
UpdateWrapper
<
PolicyEntity
>
updateWrapper
=
new
UpdateWrapper
();
updateWrapper
.
eq
(
"id"
,
policyEntity
.
getId
());
policyService
.
update
(
policyEntityDB
,
updateWrapper
);
}
}
n
=
n
+
1
;
}
}
else
{
flag
=
false
;
}
}
}
return
R
.
ok
().
put
(
"data"
,
null
);
}
public
static
void
main
(
String
[]
args
)
{
String
str
=
"<p>当地时间7月4日,阿里巴巴(法国)与GS1法国签署了合作备忘录,旨在采用GS1标准规范阿里巴巴法国交易平台的产品信息。</p>\n"
+
"<p>阿里巴巴(法国)鼓励所有法国在线销售商使用GTIN唯一标识产品,并提供优质的产品数据。</p>\n"
+
"<p align=\"center\"><img src=\"/UserFiles/Image/CentralNews/20170719020201.jpg\" alt=\"\" width=\"500\" height=\"334\" /></p>\n"
+
"<p><strong>延伸阅读</strong></p>\n"
+
"<p> ◆ <a href=\"http://81.68.189.225:8080/News/msg?id=8450\">意大利物品编码协会与阿里巴巴集团意大利办事处开展合作</a></p>\n"
+
"<p> ◆ <a href=\"http://81.68.189.225:8080/News/msg?id=8344\">GS1澳大利亚与阿里巴巴集团签约 天猫澳大利亚进口商品今起可追溯</a></p>\n"
+
"<p> ◆ <a href=\"http://81.68.189.225:8080/News/msg?id=8206\">国际物品编码协会、中国物品编码中心及阿里巴巴集团就全球数据同步项目发布联合声明</a></p>\n"
+
"<p> ◆ <a href=\"http://81.68.189.225:8080/News/msg?id=8168\">中国物品编码中心(GS1 China)与阿里巴巴集团联合举办战略合作签约仪式 正式启动商品源数据</a></p>\n"
+
"<p align=\"right\">(编辑:李弘凯)</p>"
;
if
(
str
.
indexOf
(
"src=\"/UserFiles"
)
>
-
1
)
{
str
=
str
.
replaceAll
(
"src=\"/UserFiles"
,
"http://81.68.189.225:8080"
+
"/News/msg?id"
);
String
str
=
"\n"
+
"<STYLE type=text/css>\n"
+
"<!--\n"
+
".zi {\n"
+
"\tfont-family: \"宋体-18030\";\n"
+
"\tfont-size: 14px;\n"
+
"}\n"
+
"-->\n"
+
"</STYLE>\n"
+
"\n"
+
"<TABLE style=\"BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid\" borderColor=#cccccc width=760 align=center border=0>\n"
+
"<TBODY>\n"
+
"<TR>\n"
+
"<TD style=\"PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px\" vAlign=top bgColor=#f8f8f8>\n"
+
"<P align=justify><A href=\"/news/newsone.asp?id=1268\" target=_blank>电子商务中的ebXML<BR><IMG height=265 src=\"/UserImages/ebtou0.jpg\" width=350 border=1></A><BR></P></TD>\n"
+
"<TD style=\"PADDING-RIGHT: 10px; PADDING-LEFT: 15px; PADDING-BOTTOM: 10px; PADDING-TOP: 15px\" vAlign=top bgColor=#f8f8f8>\n"
+
"<P style=\"LINE-HEIGHT: 15pt\"> <A name=OLE_LINK1><B>ebXML</B></A>(Electronic Business using eXtensible Markup Language),是联合国贸易简化和电子商务中心(UN/CEFACT)及推进结构化信息标准组织(OASIS)于1999年11月成立的工作组。多年来,全球一百多个国家,两千多个组织的EDI、XML专家、企业、行业组织、软件服务商等约5000人参与了ebXML标准的制订工作。ebXML的远景是提供“一套国际上一致认可的、由通用的XML语法和结构化文件组成的技术规范,使电子商务简单易操作并且无所不在、最大限度的使用XML、便于跨行业的B2B、B2C商务交易”,促进全球贸易。<BR> ebXML的目标是:构建一个以开放的XML标准为基础的电子商务基础架构,为全球统一的电子交易市场提供全球透明的、安全的、一致的电子数据交换环境,为所有企业进入电子商务的道路扫清障碍,简化贸易程序 ……<FONT color=#0000cc><SPAN style=\"PADDING-LEFT: 40px\">[<A href=\"/news/newsone.asp?id=1296\">详细内容</A>] [<A href=\"/news/comment.asp?id=1296&title=ebXML全球电子商务标准概述\">发表评论</A>]<BR></SPAN></FONT><BR><STRONG>[关键词]:</STRONG> <FONT color=#000000><A href=\"/news/newsone.asp?id=1195\" target=_blank>注册</A> </FONT><FONT color=#000000><A href=\"/news/newsone.asp?id=1197\" target=_blank>合作协议配置文件 (CPP)</A> </FONT><FONT color=#000000> </FONT><FONT color=#000000><A href=\"/news/newsone.asp?id=1201\" target=_blank>合作协议协定(CPA)</A></FONT></P></TD></TR></TBODY></TABLE>\n"
+
"<TABLE width=765 align=center border=0>\n"
+
"<TBODY>\n"
+
"<TR>\n"
+
"<TD style=\"BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid\" borderColor=#6c8f99 background=/UserImages/feature032502.gif colSpan=4 height=24><FONT color=#ffffff> <IMG height=13 src=\"/UserImages/dian.gif\" width=13 align=absMiddle> </FONT><SPAN class=zi><FONT color=#ffffff> ebXML面面观</FONT></SPAN> </TD></TR>\n"
+
"<TR>\n"
+
"<TD style=\"BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid\" borderColor=#6c8f99>\n"
+
"<DIV align=center><IMG height=123 src=\"/UserImages/jianmo0.jpg\" width=185><BR><BR><A href=\"/news/newsone.asp?id=1632\" target=_blank>ebXML推荐的建模方法</A></DIV></TD>\n"
+
"<TD style=\"BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid\" borderColor=#6c8f99>\n"
+
"<DIV align=center><IMG height=120 src=\"/UserImages/business.jpg\" width=186><BR><BR><A href=\"/news/newsone.asp?id=1633\" target=_blank>ebXML商务运作图</A> </DIV></TD>\n"
+
"<TD style=\"BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid\" borderColor=#6c8f99>\n"
+
"<DIV align=center><IMG height=120 src=\"/UserImages/gongnengfuwu.jpg\" width=185><BR><BR><A href=\"/news/newsone.asp?id=1634\" target=_blank>ebXML 功能服务视图</A> </DIV></TD>\n"
+
"<TD style=\"BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid\" borderColor=#6c8f99>\n"
+
"<P align=center><IMG height=120 src=\"/UserImages/gongfu.jpg\" width=180> <BR><A href=\"/news/newsone.asp?id=1635\" target=_blank>功能服务视图: 发现和检索</A></P></TD></TR>\n"
+
"<TR>\n"
+
"<TD style=\"BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid\" borderColor=#6c8f99>\n"
+
"<DIV align=center><IMG height=120 src=\"/UserImages/yuanmo.jpg\" width=182><BR><BR><A href=\"/news/newsone.asp?id=1638\" target=_blank>ebXML元模型――语义子集</A> </DIV></TD>\n"
+
"<TD style=\"BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid\" borderColor=#6c8f99>\n"
+
"<DIV align=center><IMG height=120 src=\"/UserImages/tu110.jpg\" width=186><BR><BR><A href=\"/news/newsone.asp?id=1638\" target=_blank>ebXML 元模型</A> </DIV></TD>\n"
+
"<TD style=\"BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid\" borderColor=#6c8f99>\n"
+
"<DIV align=center><IMG height=120 src=\"/UserImages/zhuce.jpg\" width=181><BR><BR><A href=\"/news/newsone.asp?id=1640\" target=_blank>ebXML注册的整体架构</A> <BR></DIV></TD>\n"
+
"<TD style=\"BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid\" borderColor=#6c8f99>\n"
+
"<DIV align=center><IMG height=120 src=\"/UserImages/xiaoxi.jpg\" width=182><BR><BR><A href=\"/news/newsone.asp?id=1641\" target=_blank>ebXML消息结构</A> </DIV></TD></TR>\n"
+
"<TR>\n"
+
"<TD style=\"BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid\" vAlign=center borderColor=#6c8f99 background=/UserImages/feature032502.gif colSpan=4 height=24> </TD></TR></TBODY></TABLE><BR>"
;
if
(
str
.
indexOf
(
"src=\"/UserImages"
)
>
-
1
)
{
//官网的链接
str
=
str
.
replaceAll
(
"src=\"/UserImages"
,
"src=\"http://81.68.189.225:8080/UserImages"
);
}
if
(
str
.
indexOf
(
"news/newsone.asp"
)
>
-
1
)
{
str
=
str
.
replaceAll
(
"news/newsone.asp"
,
"News/msg"
);
}
System
.
out
.
println
(
str
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment