记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
a8121458
Commit
a8121458
authored
Mar 05, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
69946885
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
GoblinStoreOrderServiceImpl.java
...blin/service/impl/manage/GoblinStoreOrderServiceImpl.java
+12
-2
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStoreOrderServiceImpl.java
View file @
a8121458
...
@@ -545,7 +545,7 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
...
@@ -545,7 +545,7 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
return
ResponseDto
.
failure
(
"无法发货"
);
return
ResponseDto
.
failure
(
"无法发货"
);
}
}
List
<
String
>
backOrderIds
=
redisUtils
.
getBackOrderByOrderId
(
orderId
);
List
<
String
>
backOrderIds
=
redisUtils
.
getBackOrderByOrderId
(
orderId
);
for
(
String
backOrderId
:
backOrderIds
)
{
for
(
String
backOrderId
:
backOrderIds
)
{
GoblinBackOrderVo
backOrderVo
=
redisUtils
.
getBackOrderVo
(
backOrderId
);
GoblinBackOrderVo
backOrderVo
=
redisUtils
.
getBackOrderVo
(
backOrderId
);
if
(!(
backOrderVo
.
getStatus
().
equals
(
GoblinStatusConst
.
Status
.
ORDER_BACK_STATUS_3
.
getValue
())
||
backOrderVo
.
getStatus
().
equals
(
GoblinStatusConst
.
Status
.
ORDER_BACK_STATUS_5
.
getValue
())
||
backOrderVo
.
getStatus
().
equals
(
GoblinStatusConst
.
Status
.
ORDER_BACK_STATUS_9
.
getValue
())))
{
if
(!(
backOrderVo
.
getStatus
().
equals
(
GoblinStatusConst
.
Status
.
ORDER_BACK_STATUS_3
.
getValue
())
||
backOrderVo
.
getStatus
().
equals
(
GoblinStatusConst
.
Status
.
ORDER_BACK_STATUS_5
.
getValue
())
||
backOrderVo
.
getStatus
().
equals
(
GoblinStatusConst
.
Status
.
ORDER_BACK_STATUS_9
.
getValue
())))
{
return
ResponseDto
.
failure
(
"申请失败"
);
return
ResponseDto
.
failure
(
"申请失败"
);
...
@@ -575,7 +575,6 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
...
@@ -575,7 +575,6 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
mailVo
.
getLogisticsCompany
(),
StringUtils
.
join
(
mailVo
.
getOrderSkuVoIds
(),
","
),
now
mailVo
.
getLogisticsCompany
(),
StringUtils
.
join
(
mailVo
.
getOrderSkuVoIds
(),
","
),
now
});
});
orderVo
.
setStatus
(
GoblinStatusConst
.
Status
.
ORDER_STATUS_3
.
getValue
());
for
(
String
orderSkuId
:
skuIds
)
{
for
(
String
orderSkuId
:
skuIds
)
{
GoblinOrderSkuVo
orderSkuVo
=
redisUtils
.
getGoblinOrderSkuVo
(
orderSkuId
);
GoblinOrderSkuVo
orderSkuVo
=
redisUtils
.
getGoblinOrderSkuVo
(
orderSkuId
);
orderSkuVo
.
setStatus
(
GoblinStatusConst
.
Status
.
ORDER_STATUS_3
.
getValue
());
orderSkuVo
.
setStatus
(
GoblinStatusConst
.
Status
.
ORDER_STATUS_3
.
getValue
());
...
@@ -589,6 +588,17 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
...
@@ -589,6 +588,17 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
orderSkuVo
.
getOrderSkuId
(),
now
,
now
orderSkuVo
.
getOrderSkuId
(),
now
,
now
});
});
}
}
int
sendSize
=
0
;
for
(
String
orderSkuId
:
orderVo
.
getOrderSkuVoIds
())
{
GoblinOrderSkuVo
orderSkuVo
=
redisUtils
.
getGoblinOrderSkuVo
(
orderSkuId
);
if
(
orderSkuVo
.
getStatus
()
==
GoblinStatusConst
.
Status
.
ORDER_STATUS_3
.
getValue
()
||
orderSkuVo
.
getStatus
()
==
GoblinStatusConst
.
Status
.
ORDER_STATUS_4
.
getValue
())
{
sendSize
++;
}
}
if
(
sendSize
==
orderVo
.
getOrderSkuVoIds
().
size
())
{
orderVo
.
setStatus
(
GoblinStatusConst
.
Status
.
ORDER_STATUS_3
.
getValue
());
}
GoblinOrderOperationLog
log
=
initLog
(
orderId
,
uid
,
now
);
GoblinOrderOperationLog
log
=
initLog
(
orderId
,
uid
,
now
);
log
.
setType
(
GoblinStatusConst
.
Status
.
ORDER_LOG_STATUS_13
.
getValue
());
log
.
setType
(
GoblinStatusConst
.
Status
.
ORDER_LOG_STATUS_13
.
getValue
());
log
.
setRemark
(
"发货:orderId=["
+
orderId
+
"],orderSkuId=["
+
StringUtils
.
join
(
skuIds
,
","
)
+
"],mailNo=["
+
mailNo
+
"]"
);
log
.
setRemark
(
"发货:orderId=["
+
orderId
+
"],orderSkuId=["
+
StringUtils
.
join
(
skuIds
,
","
)
+
"],mailNo=["
+
mailNo
+
"]"
);
...
...
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