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
3b9f814d
Commit
3b9f814d
authored
May 13, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加代办员工评价次数
parent
b4ca214d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
6 deletions
+16
-6
agent-manager/src/main/java/com/mortals/xhx/module/staff/dao/StaffDao.java
.../main/java/com/mortals/xhx/module/staff/dao/StaffDao.java
+3
-1
agent-manager/src/main/java/com/mortals/xhx/module/staff/dao/ibatis/StaffDaoImpl.java
...com/mortals/xhx/module/staff/dao/ibatis/StaffDaoImpl.java
+2
-1
agent-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
...rtals/xhx/module/staff/service/impl/StaffServiceImpl.java
+7
-2
agent-manager/src/main/resources/sqlmap/module/staff/StaffMapperExt.xml
...src/main/resources/sqlmap/module/staff/StaffMapperExt.xml
+4
-2
No files found.
agent-manager/src/main/java/com/mortals/xhx/module/staff/dao/StaffDao.java
View file @
3b9f814d
...
@@ -3,6 +3,8 @@ package com.mortals.xhx.module.staff.dao;
...
@@ -3,6 +3,8 @@ package com.mortals.xhx.module.staff.dao;
import
com.mortals.framework.dao.ICRUDDao
;
import
com.mortals.framework.dao.ICRUDDao
;
import
com.mortals.xhx.module.staff.model.StaffEntity
;
import
com.mortals.xhx.module.staff.model.StaffEntity
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* 代办帮办人员Dao
* 代办帮办人员Dao
* 代办帮办人员 DAO接口
* 代办帮办人员 DAO接口
...
@@ -14,6 +16,6 @@ import java.util.List;
...
@@ -14,6 +16,6 @@ import java.util.List;
public
interface
StaffDao
extends
ICRUDDao
<
StaffEntity
,
Long
>{
public
interface
StaffDao
extends
ICRUDDao
<
StaffEntity
,
Long
>{
Integer
getPjTimesByAgent
(
Long
agentUserId
);
Map
<
String
,
Integer
>
getPjTimesByAgent
(
Long
agentUserId
);
}
}
agent-manager/src/main/java/com/mortals/xhx/module/staff/dao/ibatis/StaffDaoImpl.java
View file @
3b9f814d
...
@@ -10,6 +10,7 @@ import java.util.Date;
...
@@ -10,6 +10,7 @@ import java.util.Date;
import
com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis
;
import
com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* 代办帮办人员DaoImpl DAO接口
* 代办帮办人员DaoImpl DAO接口
...
@@ -22,7 +23,7 @@ public class StaffDaoImpl extends BaseCRUDDaoMybatis<StaffEntity, Long> implemen
...
@@ -22,7 +23,7 @@ public class StaffDaoImpl extends BaseCRUDDaoMybatis<StaffEntity, Long> implemen
@Override
@Override
public
Integer
getPjTimesByAgent
(
Long
agentUserId
)
{
public
Map
<
String
,
Integer
>
getPjTimesByAgent
(
Long
agentUserId
)
{
return
getSqlSession
().
selectOne
(
getSqlId
(
"getPjTimesByAgent"
),
agentUserId
);
return
getSqlSession
().
selectOne
(
getSqlId
(
"getPjTimesByAgent"
),
agentUserId
);
}
}
...
...
agent-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
View file @
3b9f814d
...
@@ -18,6 +18,7 @@ import org.springframework.beans.BeanUtils;
...
@@ -18,6 +18,7 @@ import org.springframework.beans.BeanUtils;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.function.Function
;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -69,8 +70,12 @@ public class StaffServiceImpl extends AbstractCRUDServiceImpl<StaffDao, StaffEnt
...
@@ -69,8 +70,12 @@ public class StaffServiceImpl extends AbstractCRUDServiceImpl<StaffDao, StaffEnt
super
.
findAfter
(
params
,
pageInfo
,
context
,
list
);
super
.
findAfter
(
params
,
pageInfo
,
context
,
list
);
list
.
stream
().
forEach
(
item
->{
list
.
stream
().
forEach
(
item
->{
Long
userId
=
item
.
getUserId
();
Long
userId
=
item
.
getUserId
();
Integer
pjTimesByAgent
=
dao
.
getPjTimesByAgent
(
userId
);
Map
<
String
,
Integer
>
pjTimesByAgent
=
dao
.
getPjTimesByAgent
(
userId
);
item
.
setPjTimes
(
pjTimesByAgent
);
if
(!
ObjectUtils
.
isEmpty
(
pjTimesByAgent
)){
item
.
setPjTimes
(
pjTimesByAgent
.
getOrDefault
(
"times"
,
0
));
item
.
setTotalScore
(
pjTimesByAgent
.
getOrDefault
(
"totalScore"
,
0
));
item
.
setTotalNum
(
pjTimesByAgent
.
getOrDefault
(
"totalNum"
,
0
));
}
});
});
}
}
...
...
agent-manager/src/main/resources/sqlmap/module/staff/StaffMapperExt.xml
View file @
3b9f814d
...
@@ -2,9 +2,11 @@
...
@@ -2,9 +2,11 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
"mybatis-3-mapper.dtd">
<mapper
namespace=
"com.mortals.xhx.module.staff.dao.ibatis.StaffDaoImpl"
>
<mapper
namespace=
"com.mortals.xhx.module.staff.dao.ibatis.StaffDaoImpl"
>
<select
id=
"getPjTimesByAgent"
parameterType=
"Long"
resultType=
"
Integer
"
>
<select
id=
"getPjTimesByAgent"
parameterType=
"Long"
resultType=
"
Map
"
>
SELECT
SELECT
count( b.score ) AS times
count( b.score ) AS times,
sum( b.score ) AS totalScore,
COUNT(a.agent_user_id) AS totalNum
FROM
FROM
mortals_agent_declare a
mortals_agent_declare a
LEFT JOIN mortals_agent_evaluation_info b ON a.id = b.declare_id
LEFT JOIN mortals_agent_evaluation_info b ON a.id = b.declare_id
...
...
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