Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
80723fe8
Commit
80723fe8
authored
Feb 18, 2025
by
332784038@qq.com
Committed by
wux
Feb 21, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量修改价格的缓存key格式修改
(cherry picked from commit
c286e83a
)
parent
3d0f4f0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ProductPriceServiceImpl.java
...product/service/product/impl/ProductPriceServiceImpl.java
+7
-7
No files found.
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/service/product/impl/ProductPriceServiceImpl.java
View file @
80723fe8
...
@@ -133,7 +133,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
...
@@ -133,7 +133,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
// private ZTestMapper3 zTestMapper;
// private ZTestMapper3 zTestMapper;
private
static
final
String
PREFIX
=
"price_batch_update
_
"
;
private
static
final
String
PREFIX
=
"price_batch_update
:
"
;
private
static
final
Integer
DATA_THRESHOLD
=
30
;
private
static
final
Integer
DATA_THRESHOLD
=
30
;
private
static
final
String
BATCH_DEL_SCRIPT
=
"for k,v in pairs(ARGV) do \n "
+
private
static
final
String
BATCH_DEL_SCRIPT
=
"for k,v in pairs(ARGV) do \n "
+
...
@@ -699,7 +699,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
...
@@ -699,7 +699,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
List
<
Long
>
dbStepIdList
=
dbStepList
.
stream
()
List
<
Long
>
dbStepIdList
=
dbStepList
.
stream
()
.
map
(
ProductPriceStepDO:
:
getId
)
.
map
(
ProductPriceStepDO:
:
getId
)
.
collect
(
toList
());
.
collect
(
toList
());
if
(!
batchUpdate
)
{
//
if (!batchUpdate) {
List
<
Long
>
updateIdList
=
updateList
.
stream
()
List
<
Long
>
updateIdList
=
updateList
.
stream
()
.
map
(
ProductPriceStepDO:
:
getId
)
.
map
(
ProductPriceStepDO:
:
getId
)
.
collect
(
toList
());
.
collect
(
toList
());
...
@@ -708,7 +708,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
...
@@ -708,7 +708,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
if
(
CollectionUtil
.
isNotEmpty
(
dbIdList
))
{
if
(
CollectionUtil
.
isNotEmpty
(
dbIdList
))
{
productPriceStepMapper
.
physicsDeleteById
(
Joiner
.
on
(
","
).
join
(
dbIdList
));
productPriceStepMapper
.
physicsDeleteById
(
Joiner
.
on
(
","
).
join
(
dbIdList
));
}
}
}
//
}
insertList1
.
addAll
(
updateList
);
insertList1
.
addAll
(
updateList
);
List
<
ProductPriceStepSpecialDO
>
allUpdateStepSpecialList
=
insertList1
.
stream
()
List
<
ProductPriceStepSpecialDO
>
allUpdateStepSpecialList
=
insertList1
.
stream
()
...
@@ -902,15 +902,15 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
...
@@ -902,15 +902,15 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
.
collect
(
toList
());
.
collect
(
toList
());
productPriceStepPackagingMapper
.
deleteBatchIds
(
dIdList
);
productPriceStepPackagingMapper
.
deleteBatchIds
(
dIdList
);
}
}
if
(!
batchUpdate
)
{
//
if (!batchUpdate) {
List
<
Long
>
updateIdList
=
packagingUpdateList
.
stream
()
List
<
Long
>
update
Packing
IdList
=
packagingUpdateList
.
stream
()
.
map
(
ProductPriceStepPackagingDO:
:
getId
)
.
map
(
ProductPriceStepPackagingDO:
:
getId
)
.
collect
(
toList
());
.
collect
(
toList
());
dbPackingIdList
.
removeAll
(
updateIdList
);
dbPackingIdList
.
removeAll
(
update
Packing
IdList
);
if
(
CollectionUtil
.
isNotEmpty
(
dbPackingIdList
))
{
if
(
CollectionUtil
.
isNotEmpty
(
dbPackingIdList
))
{
productPriceStepPackagingMapper
.
physicsDeleteById
(
Joiner
.
on
(
","
).
join
(
dbPackingIdList
));
productPriceStepPackagingMapper
.
physicsDeleteById
(
Joiner
.
on
(
","
).
join
(
dbPackingIdList
));
}
}
}
//
}
}
}
private
void
initBasePackagingPrice
(
BasePackagingPrice
basePackagingPrice
,
String
transportType
)
{
private
void
initBasePackagingPrice
(
BasePackagingPrice
basePackagingPrice
,
String
transportType
)
{
...
...
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