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
d60c40be
Commit
d60c40be
authored
Aug 14, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
d3f48dcc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
4 deletions
+26
-4
attendance-performance-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/StaffCheckSummaryService.java
...x/daemon/applicationservice/StaffCheckSummaryService.java
+2
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/dao/StaffPerformSummaryDao.java
.../mortals/xhx/module/staff/dao/StaffPerformSummaryDao.java
+3
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/dao/ibatis/StaffPerformSummaryDaoImpl.java
...x/module/staff/dao/ibatis/StaffPerformSummaryDaoImpl.java
+6
-1
attendance-performance-manager/src/main/resources/sqlmap/module/staff/StaffPerformSummaryMapperExt.xml
...rces/sqlmap/module/staff/StaffPerformSummaryMapperExt.xml
+15
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/StaffCheckSummaryService.java
View file @
d60c40be
...
@@ -106,8 +106,8 @@ public class StaffCheckSummaryService implements IApplicationStartedService {
...
@@ -106,8 +106,8 @@ public class StaffCheckSummaryService implements IApplicationStartedService {
if
(
query
.
getStaffId
()!=
null
){
if
(
query
.
getStaffId
()!=
null
){
condition
.
put
(
"staffId"
,
query
.
getStaffId
());
condition
.
put
(
"staffId"
,
query
.
getStaffId
());
}
}
staffPerformSummaryService
.
getDao
().
update
(
staffPerformSummaryEntity
,
condition
);
//
staffPerformSummaryService.getDao().update(staffPerformSummaryEntity,condition);
staffPerformSummaryService
.
getDao
().
updateSumScore
(
condition
);
if
(
query
.
getCheckType
()
==
CheckTypeEnum
.
考勤绩效
.
getValue
()){
if
(
query
.
getCheckType
()
==
CheckTypeEnum
.
考勤绩效
.
getValue
()){
checkAttendRecordService
.
summaryCheck
(
query
);
checkAttendRecordService
.
summaryCheck
(
query
);
}
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/dao/StaffPerformSummaryDao.java
View file @
d60c40be
...
@@ -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.StaffPerformSummaryEntity
;
import
com.mortals.xhx.module.staff.model.StaffPerformSummaryEntity
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* 员工绩效统计Dao
* 员工绩效统计Dao
* 员工绩效统计 DAO接口
* 员工绩效统计 DAO接口
...
@@ -13,5 +15,5 @@ import java.util.List;
...
@@ -13,5 +15,5 @@ import java.util.List;
public
interface
StaffPerformSummaryDao
extends
ICRUDDao
<
StaffPerformSummaryEntity
,
Long
>{
public
interface
StaffPerformSummaryDao
extends
ICRUDDao
<
StaffPerformSummaryEntity
,
Long
>{
int
updateSumScore
(
Map
<
String
,
Object
>
condition
);
}
}
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/dao/ibatis/StaffPerformSummaryDaoImpl.java
View file @
d60c40be
...
@@ -7,6 +7,8 @@ import com.mortals.xhx.module.staff.model.StaffPerformSummaryEntity;
...
@@ -7,6 +7,8 @@ import com.mortals.xhx.module.staff.model.StaffPerformSummaryEntity;
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
;
import
java.util.Map
;
/**
/**
* 员工绩效统计DaoImpl DAO接口
* 员工绩效统计DaoImpl DAO接口
*
*
...
@@ -17,5 +19,8 @@ import java.util.List;
...
@@ -17,5 +19,8 @@ import java.util.List;
public
class
StaffPerformSummaryDaoImpl
extends
BaseCRUDDaoMybatis
<
StaffPerformSummaryEntity
,
Long
>
implements
StaffPerformSummaryDao
{
public
class
StaffPerformSummaryDaoImpl
extends
BaseCRUDDaoMybatis
<
StaffPerformSummaryEntity
,
Long
>
implements
StaffPerformSummaryDao
{
@Override
public
int
updateSumScore
(
Map
<
String
,
Object
>
condition
)
{
return
this
.
getSqlSession
().
update
(
this
.
getSqlId
(
"updateSumScore"
),
condition
);
}
}
}
attendance-performance-manager/src/main/resources/sqlmap/module/staff/StaffPerformSummaryMapperExt.xml
0 → 100644
View file @
d60c40be
<?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.staff.dao.ibatis.StaffPerformSummaryDaoImpl"
>
<update
id=
"updateSumScore"
parameterType=
"map"
>
update mortals_xhx_staff_perform_summary
set attendScore=0,reviewScore=0,complainScore=0,goworkScore=0,effectScore=0,otherScore=0,errorScore=0,totalScore=100,
sumScore = totalScore + addTotalScore,updateTime = NOW()
where 1 = 1
<if
test=
"staffId != null and staffId!=''"
>
AND staffId = #{staffId}
</if>
<if
test=
"year != null and year!=''"
>
AND `year` = #{year}
</if>
<if
test=
"month != null and month!=''"
>
AND `month` = #{month}
</if>
</update>
</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