Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
agent-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
agent-platform
Commits
eb8bf5d4
Commit
eb8bf5d4
authored
May 13, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加代办员工评价次数
parent
3b9f814d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
agent-manager/src/main/java/com/mortals/xhx/module/staff/dao/StaffDao.java
.../main/java/com/mortals/xhx/module/staff/dao/StaffDao.java
+1
-1
agent-manager/src/main/java/com/mortals/xhx/module/staff/dao/ibatis/StaffDaoImpl.java
...com/mortals/xhx/module/staff/dao/ibatis/StaffDaoImpl.java
+1
-1
agent-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
...rtals/xhx/module/staff/service/impl/StaffServiceImpl.java
+9
-4
No files found.
agent-manager/src/main/java/com/mortals/xhx/module/staff/dao/StaffDao.java
View file @
eb8bf5d4
...
...
@@ -16,6 +16,6 @@ import java.util.Map;
public
interface
StaffDao
extends
ICRUDDao
<
StaffEntity
,
Long
>{
Map
<
String
,
Integer
>
getPjTimesByAgent
(
Long
agentUserId
);
Map
<
String
,
Object
>
getPjTimesByAgent
(
Long
agentUserId
);
}
agent-manager/src/main/java/com/mortals/xhx/module/staff/dao/ibatis/StaffDaoImpl.java
View file @
eb8bf5d4
...
...
@@ -23,7 +23,7 @@ public class StaffDaoImpl extends BaseCRUDDaoMybatis<StaffEntity, Long> implemen
@Override
public
Map
<
String
,
Integer
>
getPjTimesByAgent
(
Long
agentUserId
)
{
public
Map
<
String
,
Object
>
getPjTimesByAgent
(
Long
agentUserId
)
{
return
getSqlSession
().
selectOne
(
getSqlId
(
"getPjTimesByAgent"
),
agentUserId
);
}
...
...
agent-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
View file @
eb8bf5d4
...
...
@@ -16,6 +16,7 @@ import com.mortals.xhx.module.evaluation.service.EvaluationInfoService;
import
com.mortals.xhx.module.staff.model.StaffQuery
;
import
org.springframework.beans.BeanUtils
;
import
java.math.BigDecimal
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -70,11 +71,15 @@ public class StaffServiceImpl extends AbstractCRUDServiceImpl<StaffDao, StaffEnt
super
.
findAfter
(
params
,
pageInfo
,
context
,
list
);
list
.
stream
().
forEach
(
item
->{
Long
userId
=
item
.
getUserId
();
Map
<
String
,
Integer
>
pjTimesByAgent
=
dao
.
getPjTimesByAgent
(
userId
);
Map
<
String
,
Object
>
pjTimesByAgent
=
dao
.
getPjTimesByAgent
(
userId
);
if
(!
ObjectUtils
.
isEmpty
(
pjTimesByAgent
)){
item
.
setPjTimes
(
pjTimesByAgent
.
getOrDefault
(
"times"
,
0
));
item
.
setTotalScore
(
pjTimesByAgent
.
getOrDefault
(
"totalScore"
,
0
));
item
.
setTotalNum
(
pjTimesByAgent
.
getOrDefault
(
"totalNum"
,
0
));
Long
times
=
(
Long
)
pjTimesByAgent
.
getOrDefault
(
"times"
,
0L
);
Long
totalNum
=
(
Long
)
pjTimesByAgent
.
getOrDefault
(
"totalNum"
,
0L
);
BigDecimal
totalScore
=
(
BigDecimal
)
pjTimesByAgent
.
getOrDefault
(
"totalScore"
,
new
BigDecimal
(
0
));
item
.
setPjTimes
(
times
.
intValue
());
item
.
setTotalScore
(
totalScore
.
intValue
());
item
.
setTotalNum
(
totalNum
.
intValue
());
}
});
}
...
...
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