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
2dd3fed2
Commit
2dd3fed2
authored
May 13, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加代办员工评价次数
parent
20a4fe85
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
48 additions
and
9 deletions
+48
-9
agent-manager/src/main/java/com/mortals/xhx/busiz/web/H5LoginController.java
...ain/java/com/mortals/xhx/busiz/web/H5LoginController.java
+0
-3
agent-manager/src/main/java/com/mortals/xhx/module/staff/dao/StaffDao.java
.../main/java/com/mortals/xhx/module/staff/dao/StaffDao.java
+2
-0
agent-manager/src/main/java/com/mortals/xhx/module/staff/dao/ibatis/StaffDaoImpl.java
...com/mortals/xhx/module/staff/dao/ibatis/StaffDaoImpl.java
+14
-6
agent-manager/src/main/java/com/mortals/xhx/module/staff/model/vo/StaffVo.java
...n/java/com/mortals/xhx/module/staff/model/vo/StaffVo.java
+6
-0
agent-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
...rtals/xhx/module/staff/service/impl/StaffServiceImpl.java
+11
-0
agent-manager/src/main/resources/sqlmap/module/declare/DeclareMapperExt.xml
...main/resources/sqlmap/module/declare/DeclareMapperExt.xml
+15
-0
No files found.
agent-manager/src/main/java/com/mortals/xhx/busiz/web/H5LoginController.java
View file @
2dd3fed2
...
@@ -59,9 +59,6 @@ public class H5LoginController extends BaseCRUDJsonBodyMappingController<UserSer
...
@@ -59,9 +59,6 @@ public class H5LoginController extends BaseCRUDJsonBodyMappingController<UserSer
private
IAuthTokenService
authTokenService
;
private
IAuthTokenService
authTokenService
;
@Autowired
@Autowired
private
CompanyService
companyService
;
private
CompanyService
companyService
;
@Autowired
private
ResourceService
resourceService
;
@Autowired
@Autowired
private
RoleUserService
roleUserService
;
private
RoleUserService
roleUserService
;
...
...
agent-manager/src/main/java/com/mortals/xhx/module/staff/dao/StaffDao.java
View file @
2dd3fed2
...
@@ -14,4 +14,6 @@ import java.util.List;
...
@@ -14,4 +14,6 @@ import java.util.List;
public
interface
StaffDao
extends
ICRUDDao
<
StaffEntity
,
Long
>{
public
interface
StaffDao
extends
ICRUDDao
<
StaffEntity
,
Long
>{
Integer
getPjTimesByAgent
(
Long
agentUserId
);
}
}
agent-manager/src/main/java/com/mortals/xhx/module/staff/dao/ibatis/StaffDaoImpl.java
View file @
2dd3fed2
...
@@ -4,18 +4,26 @@ package com.mortals.xhx.module.staff.dao.ibatis;
...
@@ -4,18 +4,26 @@ package com.mortals.xhx.module.staff.dao.ibatis;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
com.mortals.xhx.module.staff.dao.StaffDao
;
import
com.mortals.xhx.module.staff.dao.StaffDao
;
import
com.mortals.xhx.module.staff.model.StaffEntity
;
import
com.mortals.xhx.module.staff.model.StaffEntity
;
import
java.util.Date
;
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
;
/**
/**
* 代办帮办人员DaoImpl DAO接口
* 代办帮办人员DaoImpl DAO接口
*
*
* @author zxfei
* @author zxfei
* @date 2025-05-08
* @date 2025-05-08
*/
*/
@Repository
(
"staffDao"
)
@Repository
(
"staffDao"
)
public
class
StaffDaoImpl
extends
BaseCRUDDaoMybatis
<
StaffEntity
,
Long
>
implements
StaffDao
{
public
class
StaffDaoImpl
extends
BaseCRUDDaoMybatis
<
StaffEntity
,
Long
>
implements
StaffDao
{
@Override
public
Integer
getPjTimesByAgent
(
Long
agentUserId
)
{
return
getSqlSession
().
selectOne
(
getSqlId
(
"getPjTimesByAgent"
),
agentUserId
);
}
}
}
agent-manager/src/main/java/com/mortals/xhx/module/staff/model/vo/StaffVo.java
View file @
2dd3fed2
...
@@ -20,4 +20,10 @@ public class StaffVo extends BaseEntityLong {
...
@@ -20,4 +20,10 @@ public class StaffVo extends BaseEntityLong {
private
transient
List
<
Long
>
idList
;
private
transient
List
<
Long
>
idList
;
/**
* 累计评价次数
*/
private
Integer
pjTimes
;
}
}
\ No newline at end of file
agent-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
View file @
2dd3fed2
...
@@ -63,6 +63,17 @@ public class StaffServiceImpl extends AbstractCRUDServiceImpl<StaffDao, StaffEnt
...
@@ -63,6 +63,17 @@ public class StaffServiceImpl extends AbstractCRUDServiceImpl<StaffDao, StaffEnt
super
.
saveBefore
(
entity
,
context
);
super
.
saveBefore
(
entity
,
context
);
}
}
@Override
protected
void
findAfter
(
StaffEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
StaffEntity
>
list
)
throws
AppException
{
super
.
findAfter
(
params
,
pageInfo
,
context
,
list
);
list
.
stream
().
forEach
(
item
->{
Long
userId
=
item
.
getUserId
();
Integer
pjTimesByAgent
=
dao
.
getPjTimesByAgent
(
userId
);
item
.
setPjTimes
(
pjTimesByAgent
);
});
}
@Override
@Override
protected
void
saveAfter
(
StaffEntity
entity
,
Context
context
)
throws
AppException
{
protected
void
saveAfter
(
StaffEntity
entity
,
Context
context
)
throws
AppException
{
//创建用户
//创建用户
...
...
agent-manager/src/main/resources/sqlmap/module/declare/DeclareMapperExt.xml
0 → 100644
View file @
2dd3fed2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper
namespace=
"com.mortals.xhx.module.declare.dao.ibatis.DeclareDaoImpl"
>
<select
id=
"getPjTimesByAgent"
parameterType=
"Long"
resultType=
"Integer"
>
SELECT
count( b.score ) AS times
FROM
mortals_agent_declare a
LEFT JOIN mortals_agent_evaluation_info b ON a.id = b.declare_id
WHERE
a.agent_user_id = ${agentUserId}
</select>
</mapper>
\ No newline at end of file
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