记得上下班打卡 | 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
6b8ae879
Commit
6b8ae879
authored
Feb 28, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 sku价格接口 订单详情
parent
5693bca5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
GoblinStoreOrderListVo.java
...quidnet/service/goblin/dto/vo/GoblinStoreOrderListVo.java
+2
-0
GoblinStoreOrderServiceImpl.java
...blin/service/impl/manage/GoblinStoreOrderServiceImpl.java
+8
-1
GoblinMongoUtils.java
...a/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
+2
-0
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/vo/GoblinStoreOrderListVo.java
View file @
6b8ae879
...
@@ -39,6 +39,8 @@ public class GoblinStoreOrderListVo implements Cloneable {
...
@@ -39,6 +39,8 @@ public class GoblinStoreOrderListVo implements Cloneable {
private
String
payTime
;
private
String
payTime
;
@ApiModelProperty
(
value
=
" 物流公司姓名"
)
@ApiModelProperty
(
value
=
" 物流公司姓名"
)
private
String
logisticsCompany
;
private
String
logisticsCompany
;
@ApiModelProperty
(
value
=
" 活动名称"
)
private
String
marketName
;
@ApiModelProperty
(
value
=
" 物流相关"
)
@ApiModelProperty
(
value
=
" 物流相关"
)
private
List
<
GoblinMailVo
>
goblinMailVoList
;
private
List
<
GoblinMailVo
>
goblinMailVoList
;
//todo hujiachen 缺发货时间
//todo hujiachen 缺发货时间
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStoreOrderServiceImpl.java
View file @
6b8ae879
...
@@ -127,6 +127,13 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
...
@@ -127,6 +127,13 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
vo
.
setStatus
(
orderVo
.
getStatus
());
vo
.
setStatus
(
orderVo
.
getStatus
());
vo
.
setPayTime
(
orderVo
.
getPayTime
());
vo
.
setPayTime
(
orderVo
.
getPayTime
());
vo
.
setPriceExpress
(
orderVo
.
getPriceExpress
());
vo
.
setPriceExpress
(
orderVo
.
getPriceExpress
());
if
(
orderVo
.
getMarketId
()
==
null
||
orderVo
.
getMarketId
().
equals
(
""
))
{
vo
.
setMarketName
(
""
);
}
else
{
GoblinSelfMarketingVo
marketingVo
=
redisUtils
.
getSelfMarket
(
orderVo
.
getMarketId
());
vo
.
setMarketName
(
marketingVo
.
getName
());
}
vo
.
setGoblinMailVoList
(
redisUtils
.
getGoblinMail
(
orderId
));
vo
.
setGoblinMailVoList
(
redisUtils
.
getGoblinMail
(
orderId
));
List
<
GoblinStoreOrderListSkuVo
>
orderListSkuVos
=
ObjectUtil
.
getGoblinStoreOrderListSkuVoArrayList
();
List
<
GoblinStoreOrderListSkuVo
>
orderListSkuVos
=
ObjectUtil
.
getGoblinStoreOrderListSkuVoArrayList
();
for
(
String
skuId
:
orderVo
.
getOrderSkuVoIds
())
{
for
(
String
skuId
:
orderVo
.
getOrderSkuVoIds
())
{
...
@@ -323,7 +330,7 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
...
@@ -323,7 +330,7 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
return
ResponseDto
.
failure
(
"不存在"
);
return
ResponseDto
.
failure
(
"不存在"
);
}
}
BigDecimal
voucherPrice
=
orderSkuVo
.
getSkuPriceActual
().
subtract
(
price
);
BigDecimal
voucherPrice
=
orderSkuVo
.
getSkuPriceActual
().
subtract
(
price
);
orderSkuVo
.
setPriceModify
(
orderSkuVo
.
getPriceModify
().
add
(
price
));
orderSkuVo
.
setPriceModify
(
orderSkuVo
.
getPriceModify
()
==
null
?
price
:
orderSkuVo
.
getPriceModify
()
.
add
(
price
));
// orderSkuVo.setPriceVoucher(orderSkuVo.getPriceVoucher().add(voucherPrice));
// orderSkuVo.setPriceVoucher(orderSkuVo.getPriceVoucher().add(voucherPrice));
orderSkuVo
.
setSkuPriceActual
(
orderSkuVo
.
getSkuPriceActual
().
subtract
(
voucherPrice
));
orderSkuVo
.
setSkuPriceActual
(
orderSkuVo
.
getSkuPriceActual
().
subtract
(
voucherPrice
));
orderVo
.
setPriceTotal
(
orderVo
.
getPriceTotal
().
subtract
(
voucherPrice
));
orderVo
.
setPriceTotal
(
orderVo
.
getPriceTotal
().
subtract
(
voucherPrice
));
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
View file @
6b8ae879
...
@@ -398,6 +398,7 @@ public class GoblinMongoUtils {
...
@@ -398,6 +398,7 @@ public class GoblinMongoUtils {
List
<
GoblinGoodsInfoVo
>
goblinGoodsInfoVos
=
mongoTemplate
.
find
(
query
,
GoblinGoodsInfoVo
.
class
,
GoblinGoodsInfoVo
.
class
.
getSimpleName
());
List
<
GoblinGoodsInfoVo
>
goblinGoodsInfoVos
=
mongoTemplate
.
find
(
query
,
GoblinGoodsInfoVo
.
class
,
GoblinGoodsInfoVo
.
class
.
getSimpleName
());
return
CollectionUtils
.
isEmpty
(
goblinGoodsInfoVos
)
?
CollectionUtil
.
arrayListString
()
:
goblinGoodsInfoVos
.
stream
().
map
(
GoblinGoodsInfoVo:
:
getSpuNo
).
distinct
().
collect
(
Collectors
.
toList
());
return
CollectionUtils
.
isEmpty
(
goblinGoodsInfoVos
)
?
CollectionUtil
.
arrayListString
()
:
goblinGoodsInfoVos
.
stream
().
map
(
GoblinGoodsInfoVo:
:
getSpuNo
).
distinct
().
collect
(
Collectors
.
toList
());
}
}
public
List
<
String
>
getMgtSpuIdsForMarketBySpuNos
(
List
<
String
>
spuNos
,
Object
...
shelvesStatus
)
{
public
List
<
String
>
getMgtSpuIdsForMarketBySpuNos
(
List
<
String
>
spuNos
,
Object
...
shelvesStatus
)
{
Query
query
=
Query
.
query
(
Criteria
.
where
(
"spuNo"
).
in
(
spuNos
.
toArray
())
Query
query
=
Query
.
query
(
Criteria
.
where
(
"spuNo"
).
in
(
spuNos
.
toArray
())
.
and
(
"marketId"
).
exists
(
true
).
and
(
"delFlg"
).
is
(
"0"
).
and
(
"shelvesStatus"
).
in
(
shelvesStatus
));
.
and
(
"marketId"
).
exists
(
true
).
and
(
"delFlg"
).
is
(
"0"
).
and
(
"shelvesStatus"
).
in
(
shelvesStatus
));
...
@@ -927,6 +928,7 @@ public class GoblinMongoUtils {
...
@@ -927,6 +928,7 @@ public class GoblinMongoUtils {
criteria
=
criteria
.
and
(
"orderAttrVo.expressContacts"
).
is
(
expressContacts
);
criteria
=
criteria
.
and
(
"orderAttrVo.expressContacts"
).
is
(
expressContacts
);
}
}
Query
query
=
Query
.
query
(
criteria
);
Query
query
=
Query
.
query
(
criteria
);
query
.
with
(
Sort
.
by
(
Sort
.
Order
.
desc
(
"createdAt"
)));
query
.
skip
(
skipCount
).
limit
(
size
);
query
.
skip
(
skipCount
).
limit
(
size
);
query
.
fields
().
include
(
"orderCode"
).
include
(
"createdAt"
).
include
(
"payType"
).
include
(
"status"
).
include
(
"orderSkuVoIds"
).
include
(
"orderId"
).
include
(
"priceActual"
).
include
(
"priceExpress"
)
query
.
fields
().
include
(
"orderCode"
).
include
(
"createdAt"
).
include
(
"payType"
).
include
(
"status"
).
include
(
"orderSkuVoIds"
).
include
(
"orderId"
).
include
(
"priceActual"
).
include
(
"priceExpress"
)
.
include
(
"orderAttrVo.expressContacts"
).
include
(
"orderAttrVo.expressAddressDetail"
).
include
(
"orderAttrVo.expressAddress"
).
include
(
"orderAttrVo.expressPhone"
);
.
include
(
"orderAttrVo.expressContacts"
).
include
(
"orderAttrVo.expressAddressDetail"
).
include
(
"orderAttrVo.expressAddress"
).
include
(
"orderAttrVo.expressPhone"
);
...
...
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