Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
yn-health-science
Project
Project
Details
Activity
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
徐俊
yn-health-science
Commits
8d8ecc40
Commit
8d8ecc40
authored
Sep 10, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4b0eb472
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
ComTalentAssignServiceImpl.java
...oshi/science/service/impl/ComTalentAssignServiceImpl.java
+5
-6
No files found.
science-admin/src/main/java/com/yiboshi/science/service/impl/ComTalentAssignServiceImpl.java
View file @
8d8ecc40
...
@@ -169,10 +169,10 @@ public class ComTalentAssignServiceImpl extends BaseServiceImpl<ComTalentAssignD
...
@@ -169,10 +169,10 @@ public class ComTalentAssignServiceImpl extends BaseServiceImpl<ComTalentAssignD
if
(
null
==
comTalentAssign
)
if
(
null
==
comTalentAssign
)
throw
new
BusinessException
(
"分配记录不存在或已删除!"
);
throw
new
BusinessException
(
"分配记录不存在或已删除!"
);
ComTalentAssign
entity
=
convert2Entity
(
dto
);
ComTalentAssign
entity
=
convert2Entity
(
dto
);
BigDecimal
totalScore
=
comEvaluationValueService
.
insertListByAssignId
(
dto
.
getScoreList
(),
dto
.
getId
());
BigDecimal
totalScore
=
comEvaluationValueService
.
insertListByAssignId
(
dto
.
getScoreList
(),
dto
.
getId
());
entity
.
setTotalScore
(
totalScore
);
entity
.
setTotalScore
(
totalScore
);
this
.
update
(
entity
);
this
.
update
(
entity
);
if
(
Objects
.
nonNull
(
dto
.
getAuditState
())
&&
dto
.
getAuditState
().
equals
(
2
))
{
if
(
Objects
.
nonNull
(
dto
.
getAuditState
())
)
{
this
.
updateAssignState
(
entity
.
getTalentId
());
this
.
updateAssignState
(
entity
.
getTalentId
());
}
}
return
entity
.
getId
();
return
entity
.
getId
();
...
@@ -209,20 +209,19 @@ public class ComTalentAssignServiceImpl extends BaseServiceImpl<ComTalentAssignD
...
@@ -209,20 +209,19 @@ public class ComTalentAssignServiceImpl extends BaseServiceImpl<ComTalentAssignD
public
void
updateAssignState
(
String
talentId
)
{
public
void
updateAssignState
(
String
talentId
)
{
Integer
assignState
;
Integer
assignState
;
Integer
completed
;
Integer
completed
;
BigDecimal
totalScore
=
new
BigDecimal
(
0
);
BigDecimal
totalScore
=
new
BigDecimal
(
0
);
BigDecimal
averageScore
=
new
BigDecimal
(
0
);
BigDecimal
averageScore
=
new
BigDecimal
(
0
);
List
<
ComTalentAssignDTO
>
list
=
this
.
getAssignExpertList
(
talentId
);
List
<
ComTalentAssignDTO
>
list
=
this
.
getAssignExpertList
(
talentId
);
if
(
null
==
list
||
list
.
size
()
==
0
)
{
if
(
null
==
list
||
list
.
size
()
==
0
)
{
completed
=
0
;
completed
=
0
;
assignState
=
0
;
assignState
=
0
;
}
else
{
}
else
{
int
personCount
=
list
.
size
()
;
int
personCount
=
0
;
for
(
ComTalentAssignDTO
obj
:
list
)
{
for
(
ComTalentAssignDTO
obj
:
list
)
{
if
(
Objects
.
nonNull
(
obj
.
getAuditState
())
&&
obj
.
getAuditState
().
equals
(
2
))
{
if
(
Objects
.
nonNull
(
obj
.
getAuditState
())
&&
obj
.
getAuditState
().
equals
(
2
))
{
totalScore
.
add
(
obj
.
getTotalScore
())
;
personCount
++
;
}
}
totalScore
=
totalScore
.
add
(
obj
.
getTotalScore
());
}
}
BigDecimal
personCountBD
=
BigDecimal
.
valueOf
(
personCount
);
BigDecimal
personCountBD
=
BigDecimal
.
valueOf
(
personCount
);
averageScore
=
totalScore
.
divide
(
personCountBD
,
2
,
RoundingMode
.
HALF_UP
);
averageScore
=
totalScore
.
divide
(
personCountBD
,
2
,
RoundingMode
.
HALF_UP
);
...
...
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