Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
enterprise-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
enterprise-platform
Commits
085a5b2e
Commit
085a5b2e
authored
Dec 12, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试bug修改
parent
dd030c75
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
enterprise-manager/src/main/java/com/mortals/xhx/module/product/service/impl/ProductServiceImpl.java
...s/xhx/module/product/service/impl/ProductServiceImpl.java
+14
-0
No files found.
enterprise-manager/src/main/java/com/mortals/xhx/module/product/service/impl/ProductServiceImpl.java
View file @
085a5b2e
...
@@ -126,6 +126,10 @@ public class ProductServiceImpl extends AbstractCRUDCacheServiceImpl<ProductDao,
...
@@ -126,6 +126,10 @@ public class ProductServiceImpl extends AbstractCRUDCacheServiceImpl<ProductDao,
if
(
StringUtils
.
isNotEmpty
(
item
.
getProductDetail
()))
{
if
(
StringUtils
.
isNotEmpty
(
item
.
getProductDetail
()))
{
item
.
setProductDetail
(
item
.
getProductDetail
().
replaceAll
(
regex
,
replacement
));
item
.
setProductDetail
(
item
.
getProductDetail
().
replaceAll
(
regex
,
replacement
));
}
}
String
categoryIds
=
productCategoryService
.
find
(
new
ProductCategoryQuery
().
productId
(
item
.
getId
())).
stream
().
map
(
i
->
i
.
getCategoryId
().
toString
()).
distinct
().
collect
(
Collectors
.
joining
(
","
));
String
companyIds
=
companyProductService
.
find
(
new
CompanyProductQuery
().
productId
(
item
.
getId
())).
stream
().
map
(
i
->
i
.
getCompanyId
().
toString
()).
distinct
().
collect
(
Collectors
.
joining
(
","
));
item
.
setCompanyId
(
companyIds
);
item
.
setCategoryId
(
categoryIds
);
});
});
}
}
return
productEntityResult
;
return
productEntityResult
;
...
@@ -163,7 +167,17 @@ public class ProductServiceImpl extends AbstractCRUDCacheServiceImpl<ProductDao,
...
@@ -163,7 +167,17 @@ public class ProductServiceImpl extends AbstractCRUDCacheServiceImpl<ProductDao,
@Override
@Override
protected
void
findAfter
(
ProductEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
ProductEntity
>
list
)
throws
AppException
{
protected
void
findAfter
(
ProductEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
ProductEntity
>
list
)
throws
AppException
{
String
regex
=
"src=\"file"
;
String
replacement
;
if
(
domain
.
endsWith
(
"/"
)){
replacement
=
"src=\""
+
domain
+
"file"
;
}
else
{
replacement
=
"src=\""
+
domain
+
"/file"
;
}
list
.
forEach
(
item
->
{
list
.
forEach
(
item
->
{
if
(
StringUtils
.
isNotEmpty
(
item
.
getProductDetail
()))
{
item
.
setProductDetail
(
item
.
getProductDetail
().
replaceAll
(
regex
,
replacement
));
}
String
categoryIds
=
productCategoryService
.
find
(
new
ProductCategoryQuery
().
productId
(
item
.
getId
())).
stream
().
map
(
i
->
i
.
getCategoryId
().
toString
()).
distinct
().
collect
(
Collectors
.
joining
(
","
));
String
categoryIds
=
productCategoryService
.
find
(
new
ProductCategoryQuery
().
productId
(
item
.
getId
())).
stream
().
map
(
i
->
i
.
getCategoryId
().
toString
()).
distinct
().
collect
(
Collectors
.
joining
(
","
));
String
companyIds
=
companyProductService
.
find
(
new
CompanyProductQuery
().
productId
(
item
.
getId
())).
stream
().
map
(
i
->
i
.
getCompanyId
().
toString
()).
distinct
().
collect
(
Collectors
.
joining
(
","
));
String
companyIds
=
companyProductService
.
find
(
new
CompanyProductQuery
().
productId
(
item
.
getId
())).
stream
().
map
(
i
->
i
.
getCompanyId
().
toString
()).
distinct
().
collect
(
Collectors
.
joining
(
","
));
item
.
setCompanyId
(
companyIds
);
item
.
setCompanyId
(
companyIds
);
...
...
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