记得上下班打卡 | 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
9517a70a
Commit
9517a70a
authored
May 07, 2026
by
姜秀龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sqb partner 商品订单 skuimg问题,详情 null 问题。
parent
7ce0e0b1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
83 additions
and
25 deletions
+83
-25
GoblinStoreOrderServiceImpl.java
...blin/service/impl/manage/GoblinStoreOrderServiceImpl.java
+50
-22
GoblinMongoUtils.java
...a/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
+16
-0
GoblinRedisUtils.java
...a/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
+10
-2
GoblinSqbOrderServiceImpl.java
...service/order/service/impl/GoblinSqbOrderServiceImpl.java
+7
-1
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 @
9517a70a
...
@@ -142,16 +142,25 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
...
@@ -142,16 +142,25 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
return
ResponseDto
.
failure
(
"无法查看"
);
return
ResponseDto
.
failure
(
"无法查看"
);
}
}
GoblinStoreOrderVo
orderVo
=
redisUtils
.
getGoblinOrder
(
orderId
);
GoblinStoreOrderVo
orderVo
=
redisUtils
.
getGoblinOrder
(
orderId
);
if
(
orderVo
==
null
||
!
orderVo
.
getStoreId
().
equals
(
storeInfoVo
.
getStoreId
()))
{
if
(
orderVo
==
null
||
orderVo
.
getStoreId
()
==
null
||
!
orderVo
.
getStoreId
().
equals
(
storeInfoVo
.
getStoreId
()))
{
return
ResponseDto
.
failure
(
"无法查看"
);
return
ResponseDto
.
failure
(
"无法查看"
);
}
}
GoblinStoreOrderListVo
vo
=
GoblinStoreOrderListVo
.
getNew
();
GoblinStoreOrderListVo
vo
=
GoblinStoreOrderListVo
.
getNew
();
vo
.
setCreatedAt
(
orderVo
.
getCreatedAt
());
vo
.
setCreatedAt
(
orderVo
.
getCreatedAt
());
vo
.
setExpressAddressDetail
(
orderVo
.
getOrderAttrVo
().
getExpressAddressDetail
());
GoblinOrderAttrVo
orderAttrVo
=
orderVo
.
getOrderAttrVo
();
vo
.
setExpressContacts
(
orderVo
.
getOrderAttrVo
().
getExpressContacts
());
if
(
orderAttrVo
!=
null
)
{
vo
.
setExpressPhone
(
orderVo
.
getOrderAttrVo
().
getExpressPhone
());
vo
.
setExpressAddressDetail
(
orderAttrVo
.
getExpressAddressDetail
());
vo
.
setExpressContacts
(
orderAttrVo
.
getExpressContacts
());
vo
.
setExpressPhone
(
orderAttrVo
.
getExpressPhone
());
vo
.
setExpressAddress
(
orderAttrVo
.
getExpressAddress
());
}
else
{
vo
.
setExpressAddressDetail
(
""
);
vo
.
setExpressContacts
(
""
);
vo
.
setExpressPhone
(
""
);
vo
.
setExpressAddress
(
""
);
}
vo
.
setOrderCode
(
orderVo
.
getOrderCode
());
vo
.
setOrderCode
(
orderVo
.
getOrderCode
());
vo
.
setExpressAddress
(
orderVo
.
getOrderAttrVo
().
getExpressAddress
());
vo
.
setOrderId
(
orderVo
.
getOrderId
());
vo
.
setOrderId
(
orderVo
.
getOrderId
());
vo
.
setPayType
(
orderVo
.
getPayType
());
vo
.
setPayType
(
orderVo
.
getPayType
());
vo
.
setPriceActual
(
orderVo
.
getPriceActual
());
vo
.
setPriceActual
(
orderVo
.
getPriceActual
());
...
@@ -160,6 +169,7 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
...
@@ -160,6 +169,7 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
vo
.
setPriceExpress
(
orderVo
.
getPriceExpress
());
vo
.
setPriceExpress
(
orderVo
.
getPriceExpress
());
if
(!(
orderVo
.
getUcouponId
()
==
null
||
orderVo
.
getUcouponId
().
equals
(
""
)))
{
if
(!(
orderVo
.
getUcouponId
()
==
null
||
orderVo
.
getUcouponId
().
equals
(
""
)))
{
CandyCouponVo
candyCouponVo
=
orderUtils
.
getCouponDetails
(
orderVo
.
getUcouponId
(),
orderVo
.
getUserId
());
CandyCouponVo
candyCouponVo
=
orderUtils
.
getCouponDetails
(
orderVo
.
getUcouponId
(),
orderVo
.
getUserId
());
if
(
candyCouponVo
!=
null
)
{
vo
.
setPlatformUcouponId
(
candyCouponVo
.
getUcouponId
());
vo
.
setPlatformUcouponId
(
candyCouponVo
.
getUcouponId
());
vo
.
setPlatformUcouponName
(
candyCouponVo
.
getTitle
());
vo
.
setPlatformUcouponName
(
candyCouponVo
.
getTitle
());
vo
.
setPlatformUcouponPrice
(
orderVo
.
getPriceCoupon
());
vo
.
setPlatformUcouponPrice
(
orderVo
.
getPriceCoupon
());
...
@@ -168,20 +178,30 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
...
@@ -168,20 +178,30 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
vo
.
setPlatformUcouponName
(
""
);
vo
.
setPlatformUcouponName
(
""
);
vo
.
setPlatformUcouponPrice
(
BigDecimal
.
ZERO
);
vo
.
setPlatformUcouponPrice
(
BigDecimal
.
ZERO
);
}
}
}
else
{
vo
.
setPlatformUcouponId
(
""
);
vo
.
setPlatformUcouponName
(
""
);
vo
.
setPlatformUcouponPrice
(
BigDecimal
.
ZERO
);
}
if
(!(
orderVo
.
getStoreCouponId
()
==
null
||
orderVo
.
getStoreCouponId
().
equals
(
""
)))
{
if
(!(
orderVo
.
getStoreCouponId
()
==
null
||
orderVo
.
getStoreCouponId
().
equals
(
""
)))
{
List
<
GoblinUserCouponVo
>
voList
=
redisUtils
.
getUserCouponVos
(
orderVo
.
getUserId
());
List
<
GoblinUserCouponVo
>
voList
=
redisUtils
.
getUserCouponVos
(
orderVo
.
getUserId
());
if
(
voList
!=
null
)
{
for
(
GoblinUserCouponVo
goblinUserCouponVo
:
voList
)
{
for
(
GoblinUserCouponVo
goblinUserCouponVo
:
voList
)
{
if
(
goblinUserCouponVo
.
getUcouponId
().
equals
(
orderVo
.
getStoreCouponId
()))
{
if
(
goblinUserCouponVo
!=
null
&&
goblinUserCouponVo
.
getUcouponId
()
!=
null
&&
goblinUserCouponVo
.
getUcouponId
().
equals
(
orderVo
.
getStoreCouponId
()))
{
vo
.
setStoreUcouponId
(
goblinUserCouponVo
.
getStoreCouponId
());
vo
.
setStoreUcouponId
(
goblinUserCouponVo
.
getStoreCouponId
());
vo
.
setStoreUcouponName
(
goblinUserCouponVo
.
getTitle
());
vo
.
setStoreUcouponName
(
goblinUserCouponVo
.
getTitle
());
vo
.
setStoreUcouponPrice
(
orderVo
.
getStorePriceCoupon
());
vo
.
setStoreUcouponPrice
(
orderVo
.
getStorePriceCoupon
());
break
;
break
;
}
}
}
}
}
if
(
null
==
vo
.
getStoreUcouponId
())
{
if
(
null
==
vo
.
getStoreUcouponId
())
{
List
<
CouponOutLineVo
>
outLineVos
=
redisUtils
.
getOutLineCoupon
();
List
<
CouponOutLineVo
>
outLineVos
=
redisUtils
.
getOutLineCoupon
();
if
(
outLineVos
!=
null
)
{
for
(
CouponOutLineVo
outLineVo
:
outLineVos
)
{
for
(
CouponOutLineVo
outLineVo
:
outLineVos
)
{
if
(
outLineVo
.
getStoreCouponId
().
equals
(
orderVo
.
getStoreCouponId
()))
{
if
(
outLineVo
!=
null
&&
outLineVo
.
getStoreCouponId
()
!=
null
&&
outLineVo
.
getStoreCouponId
().
equals
(
orderVo
.
getStoreCouponId
()))
{
vo
.
setStoreUcouponId
(
outLineVo
.
getStoreCouponId
());
vo
.
setStoreUcouponId
(
outLineVo
.
getStoreCouponId
());
vo
.
setStoreUcouponName
(
outLineVo
.
getName
());
vo
.
setStoreUcouponName
(
outLineVo
.
getName
());
vo
.
setStoreUcouponPrice
(
orderVo
.
getStorePriceCoupon
());
vo
.
setStoreUcouponPrice
(
orderVo
.
getStorePriceCoupon
());
...
@@ -189,6 +209,7 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
...
@@ -189,6 +209,7 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
}
}
}
}
}
}
}
}
else
{
}
else
{
vo
.
setStoreUcouponId
(
""
);
vo
.
setStoreUcouponId
(
""
);
...
@@ -199,13 +220,20 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
...
@@ -199,13 +220,20 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
vo
.
setMarketName
(
""
);
vo
.
setMarketName
(
""
);
}
else
{
}
else
{
GoblinSelfMarketingVo
marketingVo
=
redisUtils
.
getSelfMarket
(
orderVo
.
getMarketId
().
split
(
"ZZ"
)[
1
]);
GoblinSelfMarketingVo
marketingVo
=
redisUtils
.
getSelfMarket
(
orderVo
.
getMarketId
().
split
(
"ZZ"
)[
1
]);
vo
.
setMarketName
(
marketingVo
.
getName
()
);
vo
.
setMarketName
(
marketingVo
!=
null
?
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
())
{
List
<
String
>
skuIds
=
orderVo
.
getOrderSkuVoIds
();
if
(
skuIds
==
null
)
{
skuIds
=
Collections
.
emptyList
();
}
for
(
String
skuId
:
skuIds
)
{
GoblinOrderSkuVo
orderSkuVo
=
redisUtils
.
getGoblinOrderSkuVo
(
skuId
);
GoblinOrderSkuVo
orderSkuVo
=
redisUtils
.
getGoblinOrderSkuVo
(
skuId
);
if
(
orderSkuVo
==
null
)
{
continue
;
}
GoblinStoreOrderListSkuVo
itemSkuVo
=
GoblinStoreOrderListSkuVo
.
getNew
();
GoblinStoreOrderListSkuVo
itemSkuVo
=
GoblinStoreOrderListSkuVo
.
getNew
();
itemSkuVo
.
setNum
(
orderSkuVo
.
getNum
());
itemSkuVo
.
setNum
(
orderSkuVo
.
getNum
());
itemSkuVo
.
setOrderSkuId
(
orderSkuVo
.
getOrderSkuId
());
itemSkuVo
.
setOrderSkuId
(
orderSkuVo
.
getOrderSkuId
());
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
View file @
9517a70a
...
@@ -1179,6 +1179,22 @@ public class GoblinMongoUtils {
...
@@ -1179,6 +1179,22 @@ public class GoblinMongoUtils {
object
);
object
);
}
}
public
GoblinStoreOrderVo
getGoblinStoreOrderVoByOrderId
(
String
orderId
)
{
if
(
orderId
==
null
||
orderId
.
trim
().
isEmpty
())
{
return
null
;
}
return
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"orderId"
).
is
(
orderId
)),
GoblinStoreOrderVo
.
class
,
GoblinStoreOrderVo
.
class
.
getSimpleName
());
}
public
GoblinOrderSkuVo
getGoblinOrderSkuVoByOrderSkuId
(
String
orderSkuId
)
{
if
(
orderSkuId
==
null
||
orderSkuId
.
trim
().
isEmpty
())
{
return
null
;
}
return
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"orderSkuId"
).
is
(
orderSkuId
)),
GoblinOrderSkuVo
.
class
,
GoblinOrderSkuVo
.
class
.
getSimpleName
());
}
//添加 订单SkuVo全量
//添加 订单SkuVo全量
public
GoblinOrderSkuVo
insertGoblinOrderSkuVo
(
GoblinOrderSkuVo
vo
)
{
public
GoblinOrderSkuVo
insertGoblinOrderSkuVo
(
GoblinOrderSkuVo
vo
)
{
return
mongoTemplate
.
insert
(
vo
,
GoblinOrderSkuVo
.
class
.
getSimpleName
());
return
mongoTemplate
.
insert
(
vo
,
GoblinOrderSkuVo
.
class
.
getSimpleName
());
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
View file @
9517a70a
...
@@ -1559,7 +1559,11 @@ public class GoblinRedisUtils {
...
@@ -1559,7 +1559,11 @@ public class GoblinRedisUtils {
String
redisKey
=
GoblinRedisConst
.
REDIS_GOBLIN_ORDER
.
concat
(
orderId
);
String
redisKey
=
GoblinRedisConst
.
REDIS_GOBLIN_ORDER
.
concat
(
orderId
);
Object
obj
=
redisUtil
.
get
(
redisKey
);
Object
obj
=
redisUtil
.
get
(
redisKey
);
if
(
obj
==
null
)
{
if
(
obj
==
null
)
{
return
null
;
GoblinStoreOrderVo
fromMongo
=
goblinMongoUtils
.
getGoblinStoreOrderVoByOrderId
(
orderId
);
if
(
fromMongo
!=
null
)
{
redisUtil
.
set
(
redisKey
,
fromMongo
);
}
return
fromMongo
;
}
else
{
}
else
{
return
(
GoblinStoreOrderVo
)
obj
;
return
(
GoblinStoreOrderVo
)
obj
;
}
}
...
@@ -1586,7 +1590,11 @@ public class GoblinRedisUtils {
...
@@ -1586,7 +1590,11 @@ public class GoblinRedisUtils {
String
redisKey
=
GoblinRedisConst
.
REDIS_GOBLIN_ORDER_SKU
.
concat
(
orderSkuId
);
String
redisKey
=
GoblinRedisConst
.
REDIS_GOBLIN_ORDER_SKU
.
concat
(
orderSkuId
);
Object
obj
=
redisUtil
.
get
(
redisKey
);
Object
obj
=
redisUtil
.
get
(
redisKey
);
if
(
obj
==
null
)
{
if
(
obj
==
null
)
{
return
null
;
GoblinOrderSkuVo
fromMongo
=
goblinMongoUtils
.
getGoblinOrderSkuVoByOrderSkuId
(
orderSkuId
);
if
(
fromMongo
!=
null
)
{
redisUtil
.
set
(
redisKey
,
fromMongo
);
}
return
fromMongo
;
}
else
{
}
else
{
return
(
GoblinOrderSkuVo
)
obj
;
return
(
GoblinOrderSkuVo
)
obj
;
}
}
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/service/impl/GoblinSqbOrderServiceImpl.java
View file @
9517a70a
...
@@ -261,7 +261,13 @@ public class GoblinSqbOrderServiceImpl implements IGoblinSqbOrderService {
...
@@ -261,7 +261,13 @@ public class GoblinSqbOrderServiceImpl implements IGoblinSqbOrderService {
orderSkuVo
.
setSkuPrice
(
skuPrice
);
orderSkuVo
.
setSkuPrice
(
skuPrice
);
orderSkuVo
.
setSkuPriceActual
(
priceTotal
);
// 按件数总价
orderSkuVo
.
setSkuPriceActual
(
priceTotal
);
// 按件数总价
orderSkuVo
.
setSkuName
(
skuInfo
!=
null
?
skuInfo
.
getName
()
:
"收钱吧未匹配SKU"
);
orderSkuVo
.
setSkuName
(
skuInfo
!=
null
?
skuInfo
.
getName
()
:
"收钱吧未匹配SKU"
);
orderSkuVo
.
setSkuImage
(
skuInfo
!=
null
?
skuInfo
.
getSkuPic
()
:
""
);
String
skuImg
=
""
;
if
(
skuInfo
!=
null
&&
StringUtil
.
isNotBlank
(
skuInfo
.
getSkuPic
()))
{
skuImg
=
skuInfo
.
getSkuPic
();
}
else
if
(
goodsInfo
!=
null
&&
StringUtil
.
isNotBlank
(
goodsInfo
.
getCoverPic
()))
{
skuImg
=
goodsInfo
.
getCoverPic
();
}
orderSkuVo
.
setSkuImage
(
skuImg
);
orderSkuVo
.
setSkuSpecs
(
"[]"
);
orderSkuVo
.
setSkuSpecs
(
"[]"
);
orderSkuVo
.
setPriceVoucher
(
BigDecimal
.
ZERO
);
orderSkuVo
.
setPriceVoucher
(
BigDecimal
.
ZERO
);
orderSkuVo
.
setCreatedAt
(
now
);
orderSkuVo
.
setCreatedAt
(
now
);
...
...
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