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
32b3506c
Commit
32b3506c
authored
Jul 12, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门自动考核指标配置
parent
18785865
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
193 additions
and
57 deletions
+193
-57
attendance-performance-manager/src/main/java/com/mortals/xhx/common/code/CheckTypeEnum.java
.../main/java/com/mortals/xhx/common/code/CheckTypeEnum.java
+4
-5
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/model/vo/PerformDeptConfVo.java
...ortals/xhx/module/perform/model/vo/PerformDeptConfVo.java
+3
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/model/vo/PerformStaffConfVo.java
...rtals/xhx/module/perform/model/vo/PerformStaffConfVo.java
+3
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformDeptConfServiceImpl.java
...dule/perform/service/impl/PerformDeptConfServiceImpl.java
+81
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformStaffConfServiceImpl.java
...ule/perform/service/impl/PerformStaffConfServiceImpl.java
+72
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/web/PerformDeptConfController.java
...als/xhx/module/perform/web/PerformDeptConfController.java
+4
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/web/PerformDeptConfDetailController.java
...x/module/perform/web/PerformDeptConfDetailController.java
+4
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/web/PerformStaffConfController.java
...ls/xhx/module/perform/web/PerformStaffConfController.java
+4
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/web/PerformStaffConfDetailController.java
.../module/perform/web/PerformStaffConfDetailController.java
+4
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/web/StaffPerformSummaryController.java
...s/xhx/module/staff/web/StaffPerformSummaryController.java
+4
-0
attendance-performance-manager/src/main/resources/sqlmap/module/check/CheckComplainRecordMapperExt.xml
...rces/sqlmap/module/check/CheckComplainRecordMapperExt.xml
+5
-21
attendance-performance-manager/src/main/resources/sqlmap/module/check/CheckReviewRecordMapperExt.xml
...ources/sqlmap/module/check/CheckReviewRecordMapperExt.xml
+5
-21
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/common/code/CheckTypeEnum.java
View file @
32b3506c
...
@@ -8,11 +8,10 @@ import java.util.Map;
...
@@ -8,11 +8,10 @@ import java.util.Map;
*/
*/
public
enum
CheckTypeEnum
{
public
enum
CheckTypeEnum
{
考勤绩效
(
1
,
"考勤绩效"
),
考勤绩效
(
1
,
"考勤绩效"
),
效能绩效
(
2
,
"效能绩效"
),
评价绩效
(
2
,
"评价绩效"
),
评价绩效
(
3
,
"评价绩效"
),
办件绩效
(
3
,
"办件绩效"
),
办件绩效
(
4
,
"办件绩效"
),
效能绩效
(
4
,
"效能绩效"
),
差评绩效
(
5
,
"差评绩效"
),
其它绩效
(
5
,
"其它绩效"
),
其它绩效
(
6
,
"其它绩效"
),
;
;
private
Integer
value
;
private
Integer
value
;
private
String
desc
;
private
String
desc
;
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/model/vo/PerformDeptConfVo.java
View file @
32b3506c
package
com.mortals.xhx.module.perform.model.vo
;
package
com.mortals.xhx.module.perform.model.vo
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.perform.model.PerformDeptConfDetailEntity
;
import
com.mortals.xhx.module.perform.model.PerformDeptConfEntity
;
import
com.mortals.xhx.module.perform.model.PerformDeptConfEntity
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -13,6 +14,7 @@ import lombok.Data;
...
@@ -13,6 +14,7 @@ import lombok.Data;
@Data
@Data
public
class
PerformDeptConfVo
extends
BaseEntityLong
{
public
class
PerformDeptConfVo
extends
BaseEntityLong
{
/** 部门考核内容详细信息 */
List
<
PerformDeptConfDetailEntity
>
deptConfDetail
;
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/model/vo/PerformStaffConfVo.java
View file @
32b3506c
package
com.mortals.xhx.module.perform.model.vo
;
package
com.mortals.xhx.module.perform.model.vo
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.perform.model.PerformStaffConfDetailEntity
;
import
com.mortals.xhx.module.perform.model.PerformStaffConfEntity
;
import
com.mortals.xhx.module.perform.model.PerformStaffConfEntity
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -12,7 +13,7 @@ import lombok.Data;
...
@@ -12,7 +13,7 @@ import lombok.Data;
*/
*/
@Data
@Data
public
class
PerformStaffConfVo
extends
BaseEntityLong
{
public
class
PerformStaffConfVo
extends
BaseEntityLong
{
/** 人员自动考核内容详细信息 */
private
List
<
PerformStaffConfDetailEntity
>
staffConfDetail
;
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformDeptConfServiceImpl.java
View file @
32b3506c
package
com.mortals.xhx.module.perform.service.impl
;
package
com.mortals.xhx.module.perform.service.impl
;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.xhx.common.code.CheckTypeEnum
;
import
com.mortals.xhx.module.dept.model.DeptEntity
;
import
com.mortals.xhx.module.dept.service.DeptService
;
import
com.mortals.xhx.module.perform.model.PerformDeptConfDetailEntity
;
import
com.mortals.xhx.module.perform.model.PerformDeptConfDetailQuery
;
import
com.mortals.xhx.module.perform.service.PerformDeptConfDetailService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.exception.AppException
;
...
@@ -7,6 +16,11 @@ import com.mortals.xhx.module.perform.dao.PerformDeptConfDao;
...
@@ -7,6 +16,11 @@ import com.mortals.xhx.module.perform.dao.PerformDeptConfDao;
import
com.mortals.xhx.module.perform.model.PerformDeptConfEntity
;
import
com.mortals.xhx.module.perform.model.PerformDeptConfEntity
;
import
com.mortals.xhx.module.perform.service.PerformDeptConfService
;
import
com.mortals.xhx.module.perform.service.PerformDeptConfService
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
/**
* PerformDeptConfService
* PerformDeptConfService
* 部门自动考核信息 service实现
* 部门自动考核信息 service实现
...
@@ -18,4 +32,70 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -18,4 +32,70 @@ import lombok.extern.slf4j.Slf4j;
@Slf4j
@Slf4j
public
class
PerformDeptConfServiceImpl
extends
AbstractCRUDServiceImpl
<
PerformDeptConfDao
,
PerformDeptConfEntity
,
Long
>
implements
PerformDeptConfService
{
public
class
PerformDeptConfServiceImpl
extends
AbstractCRUDServiceImpl
<
PerformDeptConfDao
,
PerformDeptConfEntity
,
Long
>
implements
PerformDeptConfService
{
@Autowired
private
PerformDeptConfDetailService
performDeptConfDetailService
;
@Autowired
private
DeptService
deptService
;
@Override
protected
void
findAfter
(
PerformDeptConfEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
PerformDeptConfEntity
>
list
)
throws
AppException
{
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
for
(
PerformDeptConfEntity
item:
list
){
List
<
PerformDeptConfDetailEntity
>
detailEntityList
=
performDeptConfDetailService
.
find
(
new
PerformDeptConfDetailQuery
().
deptConfId
(
item
.
getId
()));
item
.
setDeptConfDetail
(
detailEntityList
);
}
}
}
@Override
protected
void
saveBefore
(
PerformDeptConfEntity
entity
,
Context
context
)
throws
AppException
{
super
.
saveBefore
(
entity
,
context
);
DeptEntity
deptEntity
=
deptService
.
get
(
entity
.
getDeptId
());
if
(
deptEntity
!=
null
){
entity
.
setDeptName
(
deptEntity
.
getDeptName
());
}
if
(
CollectionUtils
.
isNotEmpty
(
entity
.
getDeptConfDetail
())){
Map
<
Integer
,
List
<
PerformDeptConfDetailEntity
>>
groupMap
=
entity
.
getDeptConfDetail
().
stream
().
collect
(
Collectors
.
groupingBy
(
PerformDeptConfDetailEntity:
:
getType
));
if
(
groupMap
.
containsKey
(
CheckTypeEnum
.
考勤绩效
.
getValue
()))
{
entity
.
setAttendCount
(
groupMap
.
get
(
CheckTypeEnum
.
考勤绩效
.
getValue
()).
size
());
}
else
{
entity
.
setAttendCount
(
0
);
}
if
(
groupMap
.
containsKey
(
CheckTypeEnum
.
评价绩效
.
getValue
()))
{
entity
.
setAssessCount
(
groupMap
.
get
(
CheckTypeEnum
.
评价绩效
.
getValue
()).
size
());
}
else
{
entity
.
setAssessCount
(
0
);
}
if
(
groupMap
.
containsKey
(
CheckTypeEnum
.
办件绩效
.
getValue
()))
{
entity
.
setWorkCount
(
groupMap
.
get
(
CheckTypeEnum
.
办件绩效
.
getValue
()).
size
());
}
else
{
entity
.
setWorkCount
(
0
);
}
if
(
groupMap
.
containsKey
(
CheckTypeEnum
.
效能绩效
.
getValue
()))
{
entity
.
setEffectCount
(
groupMap
.
get
(
CheckTypeEnum
.
效能绩效
.
getValue
()).
size
());
}
else
{
entity
.
setEffectCount
(
0
);
}
if
(
groupMap
.
containsKey
(
CheckTypeEnum
.
其它绩效
.
getValue
()))
{
entity
.
setOtherCount
(
groupMap
.
get
(
CheckTypeEnum
.
其它绩效
.
getValue
()).
size
());
}
else
{
entity
.
setOtherCount
(
0
);
}
}
}
@Override
protected
void
saveAfter
(
PerformDeptConfEntity
entity
,
Context
context
)
throws
AppException
{
if
(
CollectionUtils
.
isNotEmpty
(
entity
.
getDeptConfDetail
())){
for
(
PerformDeptConfDetailEntity
item:
entity
.
getDeptConfDetail
()){
item
.
setDeptConfId
(
entity
.
getId
());
item
.
setCreateTime
(
entity
.
getCreateTime
());
item
.
setCreateUser
(
entity
.
getCreateUser
());
item
.
setDeptId
(
entity
.
getDeptId
());
item
.
setDeptName
(
entity
.
getDeptName
());
item
.
setId
(
null
);
}
performDeptConfDetailService
.
save
(
entity
.
getDeptConfDetail
(),
context
);
}
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformStaffConfServiceImpl.java
View file @
32b3506c
package
com.mortals.xhx.module.perform.service.impl
;
package
com.mortals.xhx.module.perform.service.impl
;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.xhx.common.code.CheckTypeEnum
;
import
com.mortals.xhx.module.perform.model.*
;
import
com.mortals.xhx.module.perform.service.PerformStaffConfDetailService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.Context
;
import
com.mortals.xhx.module.perform.dao.PerformStaffConfDao
;
import
com.mortals.xhx.module.perform.dao.PerformStaffConfDao
;
import
com.mortals.xhx.module.perform.model.PerformStaffConfEntity
;
import
com.mortals.xhx.module.perform.service.PerformStaffConfService
;
import
com.mortals.xhx.module.perform.service.PerformStaffConfService
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
/**
* PerformStaffConfService
* PerformStaffConfService
* 人员自动考核信息 service实现
* 人员自动考核信息 service实现
...
@@ -18,4 +28,64 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -18,4 +28,64 @@ import lombok.extern.slf4j.Slf4j;
@Slf4j
@Slf4j
public
class
PerformStaffConfServiceImpl
extends
AbstractCRUDServiceImpl
<
PerformStaffConfDao
,
PerformStaffConfEntity
,
Long
>
implements
PerformStaffConfService
{
public
class
PerformStaffConfServiceImpl
extends
AbstractCRUDServiceImpl
<
PerformStaffConfDao
,
PerformStaffConfEntity
,
Long
>
implements
PerformStaffConfService
{
@Autowired
private
PerformStaffConfDetailService
performStaffConfDetailService
;
@Override
protected
void
saveBefore
(
PerformStaffConfEntity
entity
,
Context
context
)
throws
AppException
{
super
.
saveBefore
(
entity
,
context
);
if
(
CollectionUtils
.
isNotEmpty
(
entity
.
getStaffConfDetail
())){
// Map<Integer,List<PerformStaffConfDetailEntity>> groupMap = entity.getStaffConfDetail().stream().collect(Collectors.groupingBy(PerformStaffConfDetailEntity::getType));
// if(groupMap.containsKey(CheckTypeEnum.考勤绩效.getValue())) {
// entity.setAttendCount(groupMap.get(CheckTypeEnum.考勤绩效.getValue()).size());
// }else {
// entity.setAttendCount(0);
// }
// if(groupMap.containsKey(CheckTypeEnum.评价绩效.getValue())) {
// entity.setAssessCount(groupMap.get(CheckTypeEnum.评价绩效.getValue()).size());
// }else {
// entity.setAssessCount(0);
// }
// if(groupMap.containsKey(CheckTypeEnum.办件绩效.getValue())) {
// entity.setWorkCount(groupMap.get(CheckTypeEnum.办件绩效.getValue()).size());
// }else {
// entity.setWorkCount(0);
// }
// if(groupMap.containsKey(CheckTypeEnum.效能绩效.getValue())) {
// entity.setEffectCount(groupMap.get(CheckTypeEnum.效能绩效.getValue()).size());
// }else {
// entity.setEffectCount(0);
// }
// if(groupMap.containsKey(CheckTypeEnum.其它绩效.getValue())) {
// entity.setOtherCount(groupMap.get(CheckTypeEnum.其它绩效.getValue()).size());
// }else {
// entity.setOtherCount(0);
// }
}
}
@Override
protected
void
saveAfter
(
PerformStaffConfEntity
entity
,
Context
context
)
throws
AppException
{
if
(
CollectionUtils
.
isNotEmpty
(
entity
.
getStaffConfDetail
())){
// for(PerformStaffConfDetailEntity item:entity.getStaffConfDetail()){
// item.setStaffConfId(entity.getId());
// item.setCreateTime(entity.getCreateTime());
// item.setCreateUser(entity.getCreateUser());
// item.setStaffId(entity.getStaffId());
// item.setStaffName(entity.getStaffName());
// item.setId(null);
// }
// performDeptConfDetailService.save(entity.getDeptConfDetail(),context);
}
}
@Override
protected
void
findAfter
(
PerformStaffConfEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
PerformStaffConfEntity
>
list
)
throws
AppException
{
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
for
(
PerformStaffConfEntity
item:
list
){
List
<
PerformStaffConfDetailEntity
>
detailEntityList
=
performStaffConfDetailService
.
find
(
new
PerformStaffConfDetailQuery
().
staffConfId
(
item
.
getId
()));
item
.
setStaffConfDetail
(
detailEntityList
);
}
}
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/web/PerformDeptConfController.java
View file @
32b3506c
package
com.mortals.xhx.module.perform.web
;
package
com.mortals.xhx.module.perform.web
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.code.CheckTypeEnum
;
import
com.mortals.xhx.common.code.EnableEnum
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -42,6 +44,8 @@ public class PerformDeptConfController extends BaseCRUDJsonBodyMappingController
...
@@ -42,6 +44,8 @@ public class PerformDeptConfController extends BaseCRUDJsonBodyMappingController
@Override
@Override
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
this
.
addDict
(
model
,
"type"
,
CheckTypeEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"enable"
,
EnableEnum
.
getEnumMap
());
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
}
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/web/PerformDeptConfDetailController.java
View file @
32b3506c
package
com.mortals.xhx.module.perform.web
;
package
com.mortals.xhx.module.perform.web
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.code.CheckTypeEnum
;
import
com.mortals.xhx.common.code.EnableEnum
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -42,8 +44,8 @@ public class PerformDeptConfDetailController extends BaseCRUDJsonBodyMappingCont
...
@@ -42,8 +44,8 @@ public class PerformDeptConfDetailController extends BaseCRUDJsonBodyMappingCont
@Override
@Override
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
this
.
addDict
(
model
,
"type"
,
paramService
.
getParamBySecondOrganize
(
"PerformDeptConfDetail"
,
"type"
));
this
.
addDict
(
model
,
"type"
,
CheckTypeEnum
.
getEnumMap
(
));
this
.
addDict
(
model
,
"enable"
,
paramService
.
getParamBySecondOrganize
(
"PerformDeptConfDetail"
,
"enable"
));
this
.
addDict
(
model
,
"enable"
,
EnableEnum
.
getEnumMap
(
));
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
}
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/web/PerformStaffConfController.java
View file @
32b3506c
package
com.mortals.xhx.module.perform.web
;
package
com.mortals.xhx.module.perform.web
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.code.CheckTypeEnum
;
import
com.mortals.xhx.common.code.EnableEnum
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -42,6 +44,8 @@ public class PerformStaffConfController extends BaseCRUDJsonBodyMappingControlle
...
@@ -42,6 +44,8 @@ public class PerformStaffConfController extends BaseCRUDJsonBodyMappingControlle
@Override
@Override
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
this
.
addDict
(
model
,
"type"
,
CheckTypeEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"enable"
,
EnableEnum
.
getEnumMap
());
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
}
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/web/PerformStaffConfDetailController.java
View file @
32b3506c
package
com.mortals.xhx.module.perform.web
;
package
com.mortals.xhx.module.perform.web
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.code.CheckTypeEnum
;
import
com.mortals.xhx.common.code.EnableEnum
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -42,8 +44,8 @@ public class PerformStaffConfDetailController extends BaseCRUDJsonBodyMappingCon
...
@@ -42,8 +44,8 @@ public class PerformStaffConfDetailController extends BaseCRUDJsonBodyMappingCon
@Override
@Override
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
this
.
addDict
(
model
,
"type"
,
paramService
.
getParamBySecondOrganize
(
"PerformStaffConfDetail"
,
"type"
));
this
.
addDict
(
model
,
"type"
,
CheckTypeEnum
.
getEnumMap
(
));
this
.
addDict
(
model
,
"enable"
,
paramService
.
getParamBySecondOrganize
(
"PerformStaffConfDetail"
,
"enable"
));
this
.
addDict
(
model
,
"enable"
,
EnableEnum
.
getEnumMap
(
));
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
}
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/web/StaffPerformSummaryController.java
View file @
32b3506c
package
com.mortals.xhx.module.staff.web
;
package
com.mortals.xhx.module.staff.web
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -46,5 +47,8 @@ public class StaffPerformSummaryController extends BaseCRUDJsonBodyMappingContro
...
@@ -46,5 +47,8 @@ public class StaffPerformSummaryController extends BaseCRUDJsonBodyMappingContro
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
}
}
@Override
protected
void
doListBefore
(
StaffPerformSummaryEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
}
}
}
attendance-performance-manager/src/main/resources/sqlmap/module/check/CheckComplainRecordMapperExt.xml
View file @
32b3506c
...
@@ -9,28 +9,12 @@
...
@@ -9,28 +9,12 @@
DATE_FORMAT(checkTime,'%Y') as `year`,
DATE_FORMAT(checkTime,'%Y') as `year`,
DATE_FORMAT(checkTime,'%m') as `month`,
DATE_FORMAT(checkTime,'%m') as `month`,
SUM(CASE subAddType WHEN 1 THEN score ELSE score*-1 END) as sumScore
SUM(CASE subAddType WHEN 1 THEN score ELSE score*-1 END) as sumScore
FROM
(
SELECT
id,recordId,staffId,staffName,workNum,deptId,deptName,subAddType,score,checkTime
FROM
FROM
mortals_xhx_check_complain_record
mortals_xhx_check_complain_record
WHERE
WHERE checkStatus = 2
checkStatus = 2
<if
test=
"staffId != null and staffId!=''"
>
AND staffId = #{staffId}
</if>
<if
test=
"checkTimeStart != null and checkTimeStart!=''"
>
AND checkTime
<![CDATA[ >= ]]>
STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if
test=
"checkTimeEnd != null and checkTimeEnd!=''"
>
AND checkTime
<![CDATA[ <= ]]>
STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
UNION
SELECT
id,recordId,staffId,staffName,workNum,deptId,deptName,subAddType,score,checkTime
FROM
mortals_xhx_check_review_record
WHERE
checkStatus = 2
<if
test=
"staffId != null and staffId!=''"
>
AND staffId = #{staffId}
</if>
<if
test=
"staffId != null and staffId!=''"
>
AND staffId = #{staffId}
</if>
<if
test=
"checkTimeStart != null and checkTimeStart!=''"
>
AND checkTime
<![CDATA[ >= ]]>
STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if
test=
"checkTimeStart != null and checkTimeStart!=''"
>
AND checkTime
<![CDATA[ >= ]]>
STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if
test=
"checkTimeEnd != null and checkTimeEnd!=''"
>
AND checkTime
<![CDATA[ <= ]]>
STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if
test=
"checkTimeEnd != null and checkTimeEnd!=''"
>
AND checkTime
<![CDATA[ <= ]]>
STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
) AS t
GROUP BY
GROUP BY
staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m')
staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m')
</select>
</select>
...
...
attendance-performance-manager/src/main/resources/sqlmap/module/check/CheckReviewRecordMapperExt.xml
View file @
32b3506c
...
@@ -9,28 +9,12 @@
...
@@ -9,28 +9,12 @@
DATE_FORMAT(checkTime,'%Y') as `year`,
DATE_FORMAT(checkTime,'%Y') as `year`,
DATE_FORMAT(checkTime,'%m') as `month`,
DATE_FORMAT(checkTime,'%m') as `month`,
SUM(CASE subAddType WHEN 1 THEN score ELSE score*-1 END) as sumScore
SUM(CASE subAddType WHEN 1 THEN score ELSE score*-1 END) as sumScore
FROM
(
SELECT
id,recordId,staffId,staffName,workNum,deptId,deptName,subAddType,score,checkTime
FROM
mortals_xhx_check_complain_record
WHERE
checkStatus = 2
<if
test=
"staffId != null and staffId!=''"
>
AND staffId = #{staffId}
</if>
<if
test=
"checkTimeStart != null and checkTimeStart!=''"
>
AND checkTime
<![CDATA[ >= ]]>
STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if
test=
"checkTimeEnd != null and checkTimeEnd!=''"
>
AND checkTime
<![CDATA[ <= ]]>
STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
UNION
SELECT
id,recordId,staffId,staffName,workNum,deptId,deptName,subAddType,score,checkTime
FROM
FROM
mortals_xhx_check_review_record
mortals_xhx_check_review_record
WHERE
WHERE checkStatus = 2
checkStatus = 2
<if
test=
"staffId != null and staffId!=''"
>
AND staffId = #{staffId}
</if>
<if
test=
"staffId != null and staffId!=''"
>
AND staffId = #{staffId}
</if>
<if
test=
"checkTimeStart != null and checkTimeStart!=''"
>
AND checkTime
<![CDATA[ >= ]]>
STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if
test=
"checkTimeStart != null and checkTimeStart!=''"
>
AND checkTime
<![CDATA[ >= ]]>
STR_TO_DATE(left(concat(#{checkTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if
test=
"checkTimeEnd != null and checkTimeEnd!=''"
>
AND checkTime
<![CDATA[ <= ]]>
STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if
test=
"checkTimeEnd != null and checkTimeEnd!=''"
>
AND checkTime
<![CDATA[ <= ]]>
STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
) AS t
GROUP BY
GROUP BY
staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m')
staffId,staffName,workNum,deptId,deptName,DATE_FORMAT(checkTime,'%Y-%m')
</select>
</select>
...
...
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