记得上下班打卡 | 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
db2cecd5
Commit
db2cecd5
authored
Jan 18, 2022
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺开发
parent
3ccbe655
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
GoblinStoreInfoVo.java
...om/liquidnet/service/goblin/dto/vo/GoblinStoreInfoVo.java
+2
-0
GoblinFrontController.java
...dnet/service/goblin/controller/GoblinFrontController.java
+3
-3
GoblinFrontServiceImpl.java
...t/service/goblin/service/impl/GoblinFrontServiceImpl.java
+6
-1
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/vo/GoblinStoreInfoVo.java
View file @
db2cecd5
...
@@ -57,6 +57,8 @@ public class GoblinStoreInfoVo implements Serializable, Cloneable {
...
@@ -57,6 +57,8 @@ public class GoblinStoreInfoVo implements Serializable, Cloneable {
@ApiModelProperty
(
position
=
30
,
value
=
"店铺认证信息"
)
@ApiModelProperty
(
position
=
30
,
value
=
"店铺认证信息"
)
private
GoblinStoreCertificationVo
certificationVo
;
private
GoblinStoreCertificationVo
certificationVo
;
@ApiModelProperty
(
position
=
31
,
value
=
"商铺商品数量"
)
private
int
count
;
private
static
final
GoblinStoreInfoVo
obj
=
new
GoblinStoreInfoVo
();
private
static
final
GoblinStoreInfoVo
obj
=
new
GoblinStoreInfoVo
();
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/GoblinFrontController.java
View file @
db2cecd5
...
@@ -111,9 +111,9 @@ public class GoblinFrontController {
...
@@ -111,9 +111,9 @@ public class GoblinFrontController {
return
ResponseDto
.
success
(
goblinFrontService
.
getStoreCategory
(
storeId
));
return
ResponseDto
.
success
(
goblinFrontService
.
getStoreCategory
(
storeId
));
}
}
@GetMapping
(
"getStoreGoodes"
)
@GetMapping
(
"getStoreGoodes"
)
@ApiOperation
(
"获得店铺
分类
"
)
@ApiOperation
(
"获得店铺
商品
"
)
public
ResponseDto
<
List
<
Goblin
StoreGoodsCategoryVo
>>
getStoreGoodes
(
@RequestParam
(
name
=
"storeId"
,
required
=
true
)
String
store
Id
)
throws
ParseException
{
public
ResponseDto
<
List
<
Goblin
GoodsInfoVo
>>
getStoreGoodes
(
@RequestParam
(
name
=
"storeId"
,
required
=
true
)
String
storeId
,
@RequestParam
(
name
=
"categoryId"
,
required
=
true
)
String
category
Id
)
throws
ParseException
{
return
ResponseDto
.
success
(
goblinFrontService
.
getStore
Category
(
store
Id
));
return
ResponseDto
.
success
(
goblinFrontService
.
getStore
Goodes
(
storeId
,
category
Id
));
}
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinFrontServiceImpl.java
View file @
db2cecd5
...
@@ -304,7 +304,12 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
...
@@ -304,7 +304,12 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
return
goblinFrontCubeVo
;
return
goblinFrontCubeVo
;
}
}
public
GoblinStoreInfoVo
getStore
(
String
storId
){
public
GoblinStoreInfoVo
getStore
(
String
storId
){
return
goblinRedisUtils
.
getStoreInfoVo
(
storId
);
Query
query
=
new
Query
();
query
.
addCriteria
(
Criteria
.
where
(
"storeId"
).
is
(
storId
));
long
count
=
mongoTemplate
.
count
(
query
,
GoblinGoodsInfoVo
.
class
,
GoblinGoodsInfoVo
.
class
.
getSimpleName
());
GoblinStoreInfoVo
goblinStoreInfoVo
=
goblinRedisUtils
.
getStoreInfoVo
(
storId
);
goblinStoreInfoVo
.
setCount
((
int
)
count
);
return
goblinStoreInfoVo
;
}
}
/***
/***
* @author zhangfuxin
* @author zhangfuxin
...
...
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