记得上下班打卡 | 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
2028b7c5
Commit
2028b7c5
authored
Nov 12, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
admin
parent
4da4b567
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
ScoreServiceImpl.java
...t/admin/zhengzai/stone/service/impl/ScoreServiceImpl.java
+7
-4
StoneScoreUserMapper.xml
...m/liquidnet/service/stone/mapper/StoneScoreUserMapper.xml
+4
-1
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/stone/service/impl/ScoreServiceImpl.java
View file @
2028b7c5
...
...
@@ -43,6 +43,9 @@ public class ScoreServiceImpl implements IScoreService {
public
List
<
StoneScoreListDto
>
list
(
StoneScoreListParam
param
)
{
param
.
setUid
(
"-999"
);
List
<
StoneScoreListDto
>
dto
=
stoneScoreUserMapper
.
list
(
param
);
for
(
StoneScoreListDto
item
:
dto
)
{
item
.
setScoreRest
(
item
.
getScoreAll
().
subtract
(
item
.
getScoreUse
()));
}
return
dto
;
}
...
...
@@ -50,7 +53,7 @@ public class ScoreServiceImpl implements IScoreService {
public
List
<
StoneScoreListExportDto
>
listExport
(
String
[]
uidList
)
{
List
<
StoneScoreListDto
>
list
=
stoneScoreUserMapper
.
listExport
(
uidList
);
List
<
StoneScoreListExportDto
>
voList
=
new
ArrayList
();
for
(
StoneScoreListDto
item
:
list
)
{
for
(
StoneScoreListDto
item
:
list
)
{
voList
.
add
(
StoneScoreListExportDto
.
getNew
().
copyExportVo
(
item
));
}
return
voList
;
...
...
@@ -101,11 +104,11 @@ public class ScoreServiceImpl implements IScoreService {
param
.
setMobile
(
""
);
param
.
setUid
(
uid
);
StoneScoreListDto
dto
=
stoneScoreUserMapper
.
detail
(
param
);
List
<
StoneScoreLogs
>
dataList
=
stoneScoreLogsMapper
.
selectList
(
Wrappers
.
lambdaQuery
(
StoneScoreLogs
.
class
).
eq
(
StoneScoreLogs:
:
getUid
,
uid
));
List
<
StoneScoreLogs
>
dataList
=
stoneScoreLogsMapper
.
selectList
(
Wrappers
.
lambdaQuery
(
StoneScoreLogs
.
class
).
eq
(
StoneScoreLogs:
:
getUid
,
uid
)
.
orderByDesc
(
StoneScoreLogs:
:
getCreatedAt
)
);
StoneUserScoreDetailVo
vo
=
new
StoneUserScoreDetailVo
();
if
(
dataList
==
null
||
dataList
.
size
()==
0
)
{
if
(
dataList
==
null
||
dataList
.
size
()
==
0
)
{
}
else
{
}
else
{
vo
.
setDto
(
dto
);
vo
.
setScoreLogs
(
dataList
);
}
...
...
liquidnet-bus-do/liquidnet-service-stone-do/src/main/resources/com/liquidnet/service/stone/mapper/StoneScoreUserMapper.xml
View file @
2028b7c5
...
...
@@ -4,6 +4,7 @@
<resultMap
id=
"StoneScoreListDtoResult"
type=
"com.liquidnet.service.stone.dto.StoneScoreListDto"
>
<result
column=
"nickname"
property=
"nickName"
/>
<result
column=
"avatar"
property=
"avatar"
/>
<result
column=
"mobile"
property=
"mobile"
/>
<result
column=
"uid"
property=
"uid"
/>
<result
column=
"status"
property=
"status"
/>
...
...
@@ -16,9 +17,11 @@
SELECT hu.*,
SUM(CASE WHEN score
<![CDATA[>]]>
0 THEN score ELSE 0 END) AS 'score_all',
ABS(SUM(CASE WHEN score
<![CDATA[<]]>
0 THEN score ELSE 0 END)) AS 'score_use',
('score_all' - 'score_use') as 'score_rest'
('score_all' - 'score_use') as 'score_rest',
avatar
FROM (SELECT nickname,
mobile,
avatar,
au.uid,
IFNULL(ssu.status,1) as 'status'
from adam_user as au
...
...
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