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
e8160a10
Commit
e8160a10
authored
Feb 18, 2025
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-fix' into release
parents
357263fa
c286e83a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
ProductPriceServiceImpl.java
...product/service/product/impl/ProductPriceServiceImpl.java
+7
-7
BoxMapper.java
...cn/iocoder/yudao/module/shipment/dal/mysql/BoxMapper.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 @
e8160a10
...
@@ -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
)
{
...
...
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/dal/mysql/BoxMapper.java
View file @
e8160a10
...
@@ -621,20 +621,20 @@ public interface BoxMapper extends AbstractMapper<BoxDO> {
...
@@ -621,20 +621,20 @@ public interface BoxMapper extends AbstractMapper<BoxDO> {
}
}
String
beginDaogangTime
=
null
;
String
beginDaogangTime
=
null
;
String
endDaogangTime
=
null
;
String
endDaogangTime
=
null
;
if
(
vo
.
getBeginDaogangTime
()!=
null
){
if
(
vo
.
getBeginDaogangTime
()!=
null
&&
vo
.
getEndDaogangTime
()
!=
null
){
beginDaogangTime
=
DateUtil
.
format
(
vo
.
getBeginDaogangTime
(),
"yyyy-MM-dd HH:mm:ss"
);
beginDaogangTime
=
DateUtil
.
format
(
vo
.
getBeginDaogangTime
(),
"yyyy-MM-dd HH:mm:ss"
);
endDaogangTime
=
DateUtil
.
format
(
vo
.
getEndDaogangTime
(),
"yyyy-MM-dd HH:mm:ss"
);
endDaogangTime
=
DateUtil
.
format
(
vo
.
getEndDaogangTime
(),
"yyyy-MM-dd HH:mm:ss"
);
}
}
String
beginQingguanTime
=
null
;
String
beginQingguanTime
=
null
;
String
endQingguanTime
=
null
;
String
endQingguanTime
=
null
;
if
(
vo
.
getBeginQingguanTime
()!=
null
){
if
(
vo
.
getBeginQingguanTime
()!=
null
&&
vo
.
getEndQingguanTime
()
!=
null
){
beginQingguanTime
=
DateUtil
.
format
(
vo
.
getBeginQingguanTime
(),
"yyyy-MM-dd HH:mm:ss"
);
beginQingguanTime
=
DateUtil
.
format
(
vo
.
getBeginQingguanTime
(),
"yyyy-MM-dd HH:mm:ss"
);
endQingguanTime
=
DateUtil
.
format
(
vo
.
getEndQingguanTime
(),
"yyyy-MM-dd HH:mm:ss"
);
endQingguanTime
=
DateUtil
.
format
(
vo
.
getEndQingguanTime
(),
"yyyy-MM-dd HH:mm:ss"
);
}
}
String
beginUlWarehouseTime
=
null
;
String
beginUlWarehouseTime
=
null
;
String
endUlWarehouseTime
=
null
;
String
endUlWarehouseTime
=
null
;
if
(
vo
.
getBegin
QingguanTime
()!=
null
){
if
(
vo
.
getBegin
UlWarehouseTime
()!=
null
&&
vo
.
getEndUlWarehouseTime
()
!=
null
){
beginUlWarehouseTime
=
DateUtil
.
format
(
vo
.
getBeginUlWarehouseTime
(),
"yyyy-MM-dd HH:mm:ss"
);
beginUlWarehouseTime
=
DateUtil
.
format
(
vo
.
getBeginUlWarehouseTime
(),
"yyyy-MM-dd HH:mm:ss"
);
endUlWarehouseTime
=
DateUtil
.
format
(
vo
.
getEndUlWarehouseTime
(),
"yyyy-MM-dd HH:mm:ss"
);
endUlWarehouseTime
=
DateUtil
.
format
(
vo
.
getEndUlWarehouseTime
(),
"yyyy-MM-dd HH:mm:ss"
);
}
}
...
@@ -658,7 +658,7 @@ public interface BoxMapper extends AbstractMapper<BoxDO> {
...
@@ -658,7 +658,7 @@ public interface BoxMapper extends AbstractMapper<BoxDO> {
"</when>"
,
"</when>"
,
"<when test = 'beginUlWarehouseTime != null or endUlWarehouseTime != null'>"
,
"<when test = 'beginUlWarehouseTime != null or endUlWarehouseTime != null'>"
,
", ecw_box_c
learance clearance
"
,
", ecw_box_c
abinet_unload unload
"
,
"</when>"
,
"</when>"
,
"WHERE"
,
"WHERE"
,
...
@@ -669,7 +669,7 @@ public interface BoxMapper extends AbstractMapper<BoxDO> {
...
@@ -669,7 +669,7 @@ public interface BoxMapper extends AbstractMapper<BoxDO> {
"</when>"
,
"</when>"
,
"<when test = 'beginUlWarehouseTime != null or endUlWarehouseTime != null'>"
,
"<when test = 'beginUlWarehouseTime != null or endUlWarehouseTime != null'>"
,
"and box.id =
clearance.shipment_id and clearance
.deleted = 0"
,
"and box.id =
unload.shipment_id and unload
.deleted = 0"
,
"</when>"
,
"</when>"
,
"<when test = 'beginJsDate != null'>"
,
"<when test = 'beginJsDate != null'>"
,
...
@@ -698,11 +698,11 @@ public interface BoxMapper extends AbstractMapper<BoxDO> {
...
@@ -698,11 +698,11 @@ public interface BoxMapper extends AbstractMapper<BoxDO> {
"</when>"
,
"</when>"
,
"<when test = 'beginUlWarehouseTime != null'>"
,
"<when test = 'beginUlWarehouseTime != null'>"
,
"and
clearance.cl_clear
_time >= #{beginUlWarehouseTime}"
,
"and
unload.ul_warehouse
_time >= #{beginUlWarehouseTime}"
,
"</when>"
,
"</when>"
,
"<when test = 'endUlWarehouseTime != null'>"
,
"<when test = 'endUlWarehouseTime != null'>"
,
"and
clearance.cl_clear
_time <= #{endUlWarehouseTime}"
,
"and
unload.ul_warehouse
_time <= #{endUlWarehouseTime}"
,
"</when>"
,
"</when>"
,
"<when test = 'selfNo != null and selfNo != \"\" '>"
,
"<when test = 'selfNo != null and selfNo != \"\" '>"
,
...
...
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