记得上下班打卡 | 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
badf009a
Commit
badf009a
authored
Mar 08, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_goblin' into pre
parents
a62af783
dfbc10c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
GoblinSelfGoodsCategoryServiceImpl.java
...blin/service/impl/GoblinSelfGoodsCategoryServiceImpl.java
+12
-1
GoblinSelfGoodsCategoryDto.java
...uidnet/service/goblin/dto/GoblinSelfGoodsCategoryDto.java
+3
-3
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/goblin/service/impl/GoblinSelfGoodsCategoryServiceImpl.java
View file @
badf009a
...
...
@@ -14,6 +14,7 @@ import com.liquidnet.service.goblin.entity.GoblinSelfGoodsCategory;
import
com.liquidnet.service.goblin.mapper.GoblinSelfGoodsCategoryMapper
;
import
com.mongodb.client.result.UpdateResult
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.mongodb.core.MongoTemplate
;
import
org.springframework.data.mongodb.core.query.Criteria
;
...
...
@@ -47,7 +48,17 @@ public class GoblinSelfGoodsCategoryServiceImpl extends ServiceImpl<GoblinSelfGo
@Override
public
List
<
GoblinSelfGoodsCategoryDto
>
listForForMultiGrade
()
{
goblinSelfGoodsCategoryMapper
.
statsForForMultiGrade
();
return
goblinSelfGoodsCategoryMapper
.
listForForMultiGrade
();
List
<
GoblinSelfGoodsCategoryDto
>
dtos
=
goblinSelfGoodsCategoryMapper
.
listForForMultiGrade
();
if
(!
CollectionUtils
.
isEmpty
(
dtos
))
{
dtos
.
forEach
(
dto
->
{
if
(
StringUtils
.
isNotEmpty
(
dto
.
getTcateId
()))
{
dto
.
setFcounts
(
dto
.
getTcounts
());
}
else
if
(
StringUtils
.
isNotEmpty
(
dto
.
getScateId
()))
{
dto
.
setFcounts
(
dto
.
getScounts
());
}
});
}
return
dtos
;
}
@Transactional
...
...
liquidnet-bus-do/liquidnet-service-goblin-do/src/main/java/com/liquidnet/service/goblin/dto/GoblinSelfGoodsCategoryDto.java
View file @
badf009a
...
...
@@ -11,17 +11,17 @@ public class GoblinSelfGoodsCategoryDto implements Serializable {
private
String
fname
;
private
String
ficon
;
private
String
fneIsbn
;
private
Integer
fcounts
;
private
int
fcounts
;
private
String
scateId
;
private
String
sname
;
private
String
sicon
;
private
String
sneIsbn
;
private
Integer
scounts
;
private
int
scounts
;
private
String
tcateId
;
private
String
tname
;
private
String
ticon
;
private
String
tneIsbn
;
private
Integer
tcounts
;
private
int
tcounts
;
}
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