记得上下班打卡 | 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
8723ad53
Commit
8723ad53
authored
May 15, 2026
by
wangyifan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品详情页返回收钱吧商城名称
parent
70f2c4fa
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
68 additions
and
24 deletions
+68
-24
GoblinGoodsInfoVo.java
...om/liquidnet/service/goblin/dto/vo/GoblinGoodsInfoVo.java
+2
-0
IGoblinStoreMgtSqbGoodsService.java
...goblin/service/manage/IGoblinStoreMgtSqbGoodsService.java
+8
-0
GoblinStoreMgtSqbGoodsController.java
...n/controller/manage/GoblinStoreMgtSqbGoodsController.java
+24
-24
GoblinStoreMgtGoodsServiceImpl.java
...n/service/impl/manage/GoblinStoreMgtGoodsServiceImpl.java
+9
-0
GoblinStoreMgtSqbGoodsServiceImpl.java
...ervice/impl/manage/GoblinStoreMgtSqbGoodsServiceImpl.java
+25
-0
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/vo/GoblinGoodsInfoVo.java
View file @
8723ad53
...
...
@@ -150,6 +150,8 @@ public class GoblinGoodsInfoVo implements Serializable, Cloneable {
private
String
sqbSpuId
;
@ApiModelProperty
(
position
=
71
,
value
=
"收钱吧商城编号"
)
private
String
mallSn
;
@ApiModelProperty
(
position
=
71
,
value
=
"收钱吧商城名称"
)
private
String
sqbStoreName
;
public
String
getMarketType
()
{
if
(
marketId
==
null
)
{
...
...
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/service/manage/IGoblinStoreMgtSqbGoodsService.java
View file @
8723ad53
...
...
@@ -29,4 +29,12 @@ public interface IGoblinStoreMgtSqbGoodsService {
*/
boolean
sqbGoodsEditSpu
(
String
uid
,
GoblinSqbPerfGoodsVo
mgtGoodsSqbParam
,
GoblinGoodsInfoVo
goodsInfoVo
);
/**
* 通过商城编号查询收钱吧商品
* @param mallSn
* @param sqbSpuId
* @param signature
* @return
*/
GoblinSqbPerfGoodsVo
fetchSqbGoodsByMallAndSpu
(
String
mallSn
,
String
sqbSpuId
,
String
signature
);
}
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/manage/GoblinStoreMgtSqbGoodsController.java
View file @
8723ad53
...
...
@@ -164,7 +164,7 @@ public class GoblinStoreMgtSqbGoodsController {
String
mallSn
=
ext
.
getMallSn
();
String
sqbSpuId
=
ext
.
getSqbSpuId
();
String
signature
=
ext
.
getSignature
();
GoblinSqbPerfGoodsVo
sqbGoods
=
fetchSqbGoodsByMallAndSpu
(
mallSn
,
sqbSpuId
,
signature
);
GoblinSqbPerfGoodsVo
sqbGoods
=
goblinstoreMgtSqbGoodsService
.
fetchSqbGoodsByMallAndSpu
(
mallSn
,
sqbSpuId
,
signature
);
if
(
sqbGoods
==
null
)
{
sqbNotFound
++;
continue
;
...
...
@@ -267,29 +267,29 @@ public class GoblinStoreMgtSqbGoodsController {
}
}
private
GoblinSqbPerfGoodsVo
fetchSqbGoodsByMallAndSpu
(
String
mallSn
,
String
sqbSpuId
,
String
signature
)
{
if
(
StringUtils
.
isBlank
(
mallSn
)
||
StringUtils
.
isBlank
(
sqbSpuId
)
||
StringUtils
.
isBlank
(
signature
))
{
return
null
;
}
List
<
MallProductsQueryData
>
products
=
goblinShouQianBaService
.
queryMallProducts
(
mallSn
,
signature
);
if
(
CollectionUtils
.
isEmpty
(
products
))
{
return
null
;
}
for
(
MallProductsQueryData
product
:
products
)
{
if
(
sqbSpuId
.
equals
(
product
.
getSpuId
()))
{
GoblinSqbPerfGoodsVo
vo
=
new
GoblinSqbPerfGoodsVo
();
vo
.
setMallSn
(
mallSn
);
vo
.
setSignature
(
signature
);
vo
.
setSpuId
(
product
.
getSpuId
());
vo
.
setConverImages
(
product
.
getConverImages
());
vo
.
setProductIntroduction
(
product
.
getProductIntroduction
());
vo
.
setTitle
(
product
.
getTitle
());
vo
.
setSkuResults
(
product
.
getSkuResults
());
return
vo
;
}
}
return
null
;
}
//
private GoblinSqbPerfGoodsVo fetchSqbGoodsByMallAndSpu(String mallSn, String sqbSpuId, String signature) {
//
if (StringUtils.isBlank(mallSn) || StringUtils.isBlank(sqbSpuId) || StringUtils.isBlank(signature)) {
//
return null;
//
}
//
List<MallProductsQueryData> products = goblinShouQianBaService.queryMallProducts(mallSn, signature);
//
if (CollectionUtils.isEmpty(products)) {
//
return null;
//
}
//
for (MallProductsQueryData product : products) {
//
if (sqbSpuId.equals(product.getSpuId())) {
//
GoblinSqbPerfGoodsVo vo = new GoblinSqbPerfGoodsVo();
//
vo.setMallSn(mallSn);
//
vo.setSignature(signature);
//
vo.setSpuId(product.getSpuId());
//
vo.setConverImages(product.getConverImages());
//
vo.setProductIntroduction(product.getProductIntroduction());
//
vo.setTitle(product.getTitle());
//
vo.setSkuResults(product.getSkuResults());
//
return vo;
//
}
//
}
//
return null;
//
}
private
String
validateSqbGoodsForSync
(
GoblinSqbPerfGoodsVo
sqbGoods
)
{
if
(
sqbGoods
==
null
)
{
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStoreMgtGoodsServiceImpl.java
View file @
8723ad53
...
...
@@ -19,6 +19,7 @@ import com.liquidnet.service.goblin.enums.GoblinStoreConf;
import
com.liquidnet.service.goblin.mapper.GoblinGoodsMapper
;
import
com.liquidnet.service.goblin.mapper.GoblinSqbGoodsExtMapper
;
import
com.liquidnet.service.goblin.service.manage.IGoblinStoreMgtExtraService
;
import
com.liquidnet.service.goblin.service.manage.IGoblinStoreMgtSqbGoodsService
;
import
com.liquidnet.service.goblin.service.manage.IGoblinZhengzaiService
;
import
com.liquidnet.service.goblin.service.manage.IGoblinstoreMgtGoodsService
;
import
com.liquidnet.service.goblin.util.GoblinMongoUtils
;
...
...
@@ -49,6 +50,8 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
@Autowired
IGoblinStoreMgtExtraService
goblinStoreMgtExtraService
;
@Autowired
private
IGoblinStoreMgtSqbGoodsService
goblinstoreMgtSqbGoodsService
;
@Autowired
IGoblinZhengzaiService
goblinZhengzaiService
;
@Autowired
GoblinSqbGoodsExtMapper
goblinSqbGoodsExtMapper
;
...
...
@@ -517,6 +520,12 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
GoblinSqbGoodsExt
ext
=
extList
.
get
(
0
);
goodsInfoVo
.
setSqbSpuId
(
ext
.
getSqbSpuId
());
goodsInfoVo
.
setMallSn
(
ext
.
getMallSn
());
// 添加收钱吧商城名称
GoblinSqbPerfGoodsVo
sqbPerfGoodsVo
=
goblinstoreMgtSqbGoodsService
.
fetchSqbGoodsByMallAndSpu
(
ext
.
getMallSn
(),
ext
.
getSqbSpuId
(),
ext
.
getSignature
());
if
(
null
!=
sqbPerfGoodsVo
)
{
goodsInfoVo
.
setSqbStoreName
(
sqbPerfGoodsVo
.
getMallName
());
}
}
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStoreMgtSqbGoodsServiceImpl.java
View file @
8723ad53
...
...
@@ -374,6 +374,31 @@ public class GoblinStoreMgtSqbGoodsServiceImpl implements IGoblinStoreMgtSqbGood
return
false
;
}
@Override
public
GoblinSqbPerfGoodsVo
fetchSqbGoodsByMallAndSpu
(
String
mallSn
,
String
sqbSpuId
,
String
signature
)
{
if
(
StringUtils
.
isBlank
(
mallSn
)
||
StringUtils
.
isBlank
(
sqbSpuId
)
||
StringUtils
.
isBlank
(
signature
))
{
return
null
;
}
List
<
MallProductsQueryData
>
products
=
goblinShouQianBaService
.
queryMallProducts
(
mallSn
,
signature
);
if
(
CollectionUtils
.
isEmpty
(
products
))
{
return
null
;
}
for
(
MallProductsQueryData
product
:
products
)
{
if
(
sqbSpuId
.
equals
(
product
.
getSpuId
()))
{
GoblinSqbPerfGoodsVo
vo
=
new
GoblinSqbPerfGoodsVo
();
vo
.
setMallSn
(
mallSn
);
vo
.
setSignature
(
signature
);
vo
.
setSpuId
(
product
.
getSpuId
());
vo
.
setConverImages
(
product
.
getConverImages
());
vo
.
setProductIntroduction
(
product
.
getProductIntroduction
());
vo
.
setTitle
(
product
.
getTitle
());
vo
.
setSkuResults
(
product
.
getSkuResults
());
return
vo
;
}
}
return
null
;
}
public
boolean
sqbGoodsEditSku
(
String
uid
,
GoblinSqbPerfGoodsVo
mgtGoodsAddParam
,
GoblinGoodsInfoVo
goodsInfoVo
)
{
...
...
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