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
394b9780
Commit
394b9780
authored
May 09, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新评价统计计算
parent
9957bb62
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
agent-manager/src/main/java/com/mortals/xhx/module/declare/web/DeclareController.java
...com/mortals/xhx/module/declare/web/DeclareController.java
+3
-3
agent-manager/src/main/java/com/mortals/xhx/module/evaluation/service/impl/EvaluationInfoServiceImpl.java
...le/evaluation/service/impl/EvaluationInfoServiceImpl.java
+14
-3
No files found.
agent-manager/src/main/java/com/mortals/xhx/module/declare/web/DeclareController.java
View file @
394b9780
...
...
@@ -56,9 +56,9 @@ public class DeclareController extends BaseCRUDJsonBodyMappingController<Declare
@Override
protected
void
doListBefore
(
DeclareEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
//如果
是管理员,如果参数中有代办人查询 删除
if
(
context
.
getUser
()
!=
null
&&
context
.
getUser
().
isAdmin
()
)
{
query
.
setAgentUserId
(
null
);
//如果
登录用户是代办人 添加查询参数
if
(
context
.
getUser
()
!=
null
&&
context
.
getUser
().
getCustomerId
()!=
null
)
{
query
.
setAgentUserId
(
this
.
getContextUserId
(
context
)
);
}
super
.
doListBefore
(
query
,
model
,
context
);
}
...
...
agent-manager/src/main/java/com/mortals/xhx/module/evaluation/service/impl/EvaluationInfoServiceImpl.java
View file @
394b9780
...
...
@@ -38,11 +38,22 @@ public class EvaluationInfoServiceImpl extends AbstractCRUDServiceImpl<Evaluatio
@Override
protected
void
saveAfter
(
EvaluationInfoEntity
entity
,
Context
context
)
throws
AppException
{
if
(
updateStaffScore
(
entity
,
context
))
return
;
super
.
saveAfter
(
entity
,
context
);
}
private
boolean
updateStaffScore
(
EvaluationInfoEntity
entity
,
Context
context
)
{
//更新代办人累计评分
if
(
ObjectUtils
.
isEmpty
(
entity
.
getDeclareId
()))
return
;
if
(
ObjectUtils
.
isEmpty
(
entity
.
getDeclareId
()))
return
true
;
DeclareEntity
declareEntity
=
declareService
.
get
(
entity
.
getDeclareId
(),
context
);
if
(
ObjectUtils
.
isEmpty
(
declareEntity
))
return
;
if
(
ObjectUtils
.
isEmpty
(
declareEntity
))
return
true
;
staffService
.
updateAgentUserTotalScore
(
declareEntity
.
getAgentUserId
(),
context
);
super
.
saveAfter
(
entity
,
context
);
return
false
;
}
@Override
protected
void
updateAfter
(
EvaluationInfoEntity
entity
,
Context
context
)
throws
AppException
{
if
(
updateStaffScore
(
entity
,
context
))
return
;
super
.
updateAfter
(
entity
,
context
);
}
}
\ 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