Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-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
赵啸非
attendance-performance-platform
Commits
c7d6c87e
Commit
c7d6c87e
authored
Jul 18, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试bug修改
parent
5c3bb772
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
22 deletions
+24
-22
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/web/StaffPerformSummaryController.java
...s/xhx/module/staff/web/StaffPerformSummaryController.java
+24
-22
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/web/StaffPerformSummaryController.java
View file @
c7d6c87e
...
@@ -138,28 +138,30 @@ public class StaffPerformSummaryController extends BaseCRUDJsonBodyMappingContro
...
@@ -138,28 +138,30 @@ public class StaffPerformSummaryController extends BaseCRUDJsonBodyMappingContro
if
(
StringUtils
.
isNotEmpty
(
verify
)&&
verify
.
equals
(
"true"
)){
if
(
StringUtils
.
isNotEmpty
(
verify
)&&
verify
.
equals
(
"true"
)){
throw
new
AppException
(
"汇总任务正在执行,请勿重复操作"
);
throw
new
AppException
(
"汇总任务正在执行,请勿重复操作"
);
}
}
// if(StringUtils.isNotEmpty(query.getCheckTimeStart())){
if
(
StringUtils
.
isNotEmpty
(
query
.
getCheckTimeStart
())){
// Date date = DateUtils.StrToDateTime(query.getCheckTimeStart());
Date
date
=
DateUtils
.
StrToDateTime
(
query
.
getCheckTimeStart
());
// Calendar calendar = Calendar.getInstance();
Calendar
calendar
=
Calendar
.
getInstance
();
// calendar.setTime(date);
calendar
.
setTime
(
date
);
// int year = calendar.get(Calendar.YEAR);
int
year
=
calendar
.
get
(
Calendar
.
YEAR
);
// int month = calendar.get(Calendar.MONTH) + 1;
int
month
=
calendar
.
get
(
Calendar
.
MONTH
)
+
1
;
// StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity();
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
// staffPerformSummaryEntity.setReviewScore(BigDecimal.ZERO);
staffPerformSummaryEntity
.
setReviewScore
(
BigDecimal
.
ZERO
);
// staffPerformSummaryEntity.setOtherScore(BigDecimal.ZERO);
staffPerformSummaryEntity
.
setOtherScore
(
BigDecimal
.
ZERO
);
// staffPerformSummaryEntity.setGoworkScore(BigDecimal.ZERO);
staffPerformSummaryEntity
.
setGoworkScore
(
BigDecimal
.
ZERO
);
// staffPerformSummaryEntity.setEffectScore(BigDecimal.ZERO);
staffPerformSummaryEntity
.
setEffectScore
(
BigDecimal
.
ZERO
);
// staffPerformSummaryEntity.setComplainScore(BigDecimal.ZERO);
staffPerformSummaryEntity
.
setComplainScore
(
BigDecimal
.
ZERO
);
// staffPerformSummaryEntity.setAttendScore(BigDecimal.ZERO);
staffPerformSummaryEntity
.
setAttendScore
(
BigDecimal
.
ZERO
);
// staffPerformSummaryEntity.setTotalScore(StaffPerformUtil.SCORE100);
staffPerformSummaryEntity
.
setTotalScore
(
StaffPerformUtil
.
SCORE100
);
// staffPerformSummaryEntity.setErrorScore(BigDecimal.ZERO);
staffPerformSummaryEntity
.
setErrorScore
(
BigDecimal
.
ZERO
);
// staffPerformSummaryEntity.setUpdateTime(new Date());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
// staffPerformSummaryEntity.setStaffId(query.getStaffId());
Map
<
String
,
Object
>
condition
=
new
HashMap
<>();
// Map<String,Object> condition = new HashMap<>();
condition
.
put
(
"year"
,
year
);
// condition.put("year",year);
condition
.
put
(
"month"
,
month
);
// condition.put("month",month);
if
(
query
.
getStaffId
()!=
null
){
// this.service.getDao().update(staffPerformSummaryEntity,condition);
condition
.
put
(
"staffId"
,
query
.
getStaffId
());
// }
}
this
.
service
.
getDao
().
update
(
staffPerformSummaryEntity
,
condition
);
}
cacheService
.
lpush
(
KEY_CHECK_SUMMARY_CACHE
,
query
);
cacheService
.
lpush
(
KEY_CHECK_SUMMARY_CACHE
,
query
);
cacheService
.
set
(
SUMMARY_TASK_KEY
,
"true"
,
900
);
//15分钟过期
cacheService
.
set
(
SUMMARY_TASK_KEY
,
"true"
,
900
);
//15分钟过期
model
.
put
(
"message_info"
,
"开始执行绩效汇总,请稍后查看"
);
model
.
put
(
"message_info"
,
"开始执行绩效汇总,请稍后查看"
);
...
...
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