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
2e67a0e7
Commit
2e67a0e7
authored
Jul 13, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加申诉统计业务
parent
028824c4
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
3433 additions
and
3395 deletions
+3433
-3395
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/ApiWebPerformController.java
...va/com/mortals/xhx/busiz/web/ApiWebPerformController.java
+3
-15
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/web/FeedbackController.java
...m/mortals/xhx/module/feedback/web/FeedbackController.java
+6
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/StaffPerformStatEntity.java
...ortals/xhx/module/staff/model/StaffPerformStatEntity.java
+92
-85
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/StaffPerformStatQuery.java
...mortals/xhx/module/staff/model/StaffPerformStatQuery.java
+2130
-2130
attendance-performance-manager/src/main/resources/sqlmap/module/staff/StaffPerformStatMapper.xml
.../resources/sqlmap/module/staff/StaffPerformStatMapper.xml
+1165
-1165
db/add.sql
db/add.sql
+37
-0
doc/考勤绩效管理系统.docx
doc/考勤绩效管理系统.docx
+0
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/ApiWebPerformController.java
View file @
2e67a0e7
...
@@ -63,8 +63,6 @@ public class ApiWebPerformController extends AbstractBaseControll
...
@@ -63,8 +63,6 @@ public class ApiWebPerformController extends AbstractBaseControll
String
busiDesc
=
"外部考勤新增"
;
String
busiDesc
=
"外部考勤新增"
;
Rest
rest
=
Rest
.
ok
(
busiDesc
+
"成功!"
);
Rest
rest
=
Rest
.
ok
(
busiDesc
+
"成功!"
);
StringBuilder
message
=
new
StringBuilder
();
message
.
append
(
String
.
format
(
"【外部请求】类型【%s】 内容:%s"
,
PerformTypeEnum
.
getByValue
(
req
.
getPerformType
()).
getDesc
(),
JSONObject
.
toJSONString
(
req
)));
try
{
try
{
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
...
@@ -90,8 +88,6 @@ public class ApiWebPerformController extends AbstractBaseControll
...
@@ -90,8 +88,6 @@ public class ApiWebPerformController extends AbstractBaseControll
String
busiDesc
=
"外部评价新增"
;
String
busiDesc
=
"外部评价新增"
;
Rest
rest
=
Rest
.
ok
(
busiDesc
+
"成功!"
);
Rest
rest
=
Rest
.
ok
(
busiDesc
+
"成功!"
);
StringBuilder
message
=
new
StringBuilder
();
message
.
append
(
String
.
format
(
"【外部请求】类型【%s】 内容:%s"
,
PerformTypeEnum
.
getByValue
(
req
.
getPerformType
()).
getDesc
(),
JSONObject
.
toJSONString
(
req
)));
try
{
try
{
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
...
@@ -117,8 +113,6 @@ public class ApiWebPerformController extends AbstractBaseControll
...
@@ -117,8 +113,6 @@ public class ApiWebPerformController extends AbstractBaseControll
String
busiDesc
=
"外部投诉新增"
;
String
busiDesc
=
"外部投诉新增"
;
Rest
rest
=
Rest
.
ok
(
busiDesc
+
"成功!"
);
Rest
rest
=
Rest
.
ok
(
busiDesc
+
"成功!"
);
StringBuilder
message
=
new
StringBuilder
();
message
.
append
(
String
.
format
(
"【外部请求】类型【%s】 内容:%s"
,
PerformTypeEnum
.
getByValue
(
req
.
getPerformType
()).
getDesc
(),
JSONObject
.
toJSONString
(
req
)));
try
{
try
{
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
...
@@ -144,8 +138,6 @@ public class ApiWebPerformController extends AbstractBaseControll
...
@@ -144,8 +138,6 @@ public class ApiWebPerformController extends AbstractBaseControll
String
busiDesc
=
"外部办件新增"
;
String
busiDesc
=
"外部办件新增"
;
Rest
rest
=
Rest
.
ok
(
busiDesc
+
"成功!"
);
Rest
rest
=
Rest
.
ok
(
busiDesc
+
"成功!"
);
StringBuilder
message
=
new
StringBuilder
();
message
.
append
(
String
.
format
(
"【外部请求】类型【%s】 内容:%s"
,
PerformTypeEnum
.
getByValue
(
req
.
getPerformType
()).
getDesc
(),
JSONObject
.
toJSONString
(
req
)));
try
{
try
{
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
...
@@ -171,8 +163,6 @@ public class ApiWebPerformController extends AbstractBaseControll
...
@@ -171,8 +163,6 @@ public class ApiWebPerformController extends AbstractBaseControll
String
busiDesc
=
"外部效能新增"
;
String
busiDesc
=
"外部效能新增"
;
Rest
rest
=
Rest
.
ok
(
busiDesc
+
"成功!"
);
Rest
rest
=
Rest
.
ok
(
busiDesc
+
"成功!"
);
StringBuilder
message
=
new
StringBuilder
();
message
.
append
(
String
.
format
(
"【外部请求】类型【%s】 内容:%s"
,
PerformTypeEnum
.
getByValue
(
req
.
getPerformType
()).
getDesc
(),
JSONObject
.
toJSONString
(
req
)));
try
{
try
{
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
...
@@ -198,8 +188,6 @@ public class ApiWebPerformController extends AbstractBaseControll
...
@@ -198,8 +188,6 @@ public class ApiWebPerformController extends AbstractBaseControll
String
busiDesc
=
"外部其它绩效新增"
;
String
busiDesc
=
"外部其它绩效新增"
;
Rest
rest
=
Rest
.
ok
(
busiDesc
+
"成功!"
);
Rest
rest
=
Rest
.
ok
(
busiDesc
+
"成功!"
);
StringBuilder
message
=
new
StringBuilder
();
message
.
append
(
String
.
format
(
"【外部请求】类型【%s】 内容:%s"
,
PerformTypeEnum
.
getByValue
(
req
.
getPerformType
()).
getDesc
(),
JSONObject
.
toJSONString
(
req
)));
try
{
try
{
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/web/FeedbackController.java
View file @
2e67a0e7
package
com.mortals.xhx.module.feedback.web
;
package
com.mortals.xhx.module.feedback.web
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.framework.model.Result
;
import
com.mortals.framework.model.Result
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
...
@@ -181,4 +182,9 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba
...
@@ -181,4 +182,9 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba
return
ret
;
return
ret
;
}
}
@Override
protected
int
infoAfter
(
Long
id
,
Map
<
String
,
Object
>
model
,
FeedbackEntity
entity
,
Context
context
)
throws
AppException
{
return
super
.
infoAfter
(
id
,
model
,
entity
,
context
);
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/StaffPerformStatEntity.java
View file @
2e67a0e7
package
com.mortals.xhx.module.staff.model
;
package
com.mortals.xhx.module.staff.model
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
cn.hutool.core.date.DateUtil
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.staff.model.vo.StaffPerformStatVo
;
import
com.mortals.xhx.module.staff.model.vo.StaffPerformStatVo
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
* 员工绩效统计实体对象
* 员工绩效统计实体对象
*
*
* @author zxfei
* @author zxfei
* @date 2023-07-11
* @date 2023-07-13
*/
*/
@Data
@Data
public
class
StaffPerformStatEntity
extends
StaffPerformStatVo
{
public
class
StaffPerformStatEntity
extends
StaffPerformStatVo
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -20,28 +25,26 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
...
@@ -20,28 +25,26 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
/**
/**
* 部门id号
* 部门id号
*/
*/
private
Long
dept
Id
;
private
Long
staff
Id
;
/**
/**
* 部门名称
* 部门名称
*/
*/
private
String
dept
Name
;
private
String
staff
Name
;
/**
/**
* 员工绩效总分数
* 员工绩效总分数
*/
*/
@Excel
(
name
=
"员工绩效总分数"
)
@Excel
(
name
=
"员工绩效总分数"
)
private
BigDecimal
totalScore
;
private
BigDecimal
totalScore
;
/**
/**
* 备注
* 员工绩效加分总分数汇总
*/
private
String
remark
;
/**
* 年
*/
*/
private
Integer
year
;
@Excel
(
name
=
"员工绩效加分总分数汇总"
)
private
BigDecimal
totalAddScore
;
/**
/**
* 月
* 员工绩效减分总分数汇总
*/
*/
private
Integer
month
;
@Excel
(
name
=
"员工绩效减分总分数汇总"
)
private
BigDecimal
totalSubScore
;
/**
/**
* 考勤绩效指标增加分数
* 考勤绩效指标增加分数
*/
*/
...
@@ -58,6 +61,14 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
...
@@ -58,6 +61,14 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
* 评价绩效指标扣减分数
* 评价绩效指标扣减分数
*/
*/
private
BigDecimal
assessScoreSub
;
private
BigDecimal
assessScoreSub
;
/**
* 投诉绩效指标增加分数
*/
private
BigDecimal
complainScoreAdd
;
/**
* 投诉绩效指标扣减分数
*/
private
BigDecimal
complainScoreSub
;
/**
/**
* 办件绩效指标增加分数
* 办件绩效指标增加分数
*/
*/
...
@@ -83,31 +94,27 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
...
@@ -83,31 +94,27 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
*/
*/
private
BigDecimal
otherScoreSub
;
private
BigDecimal
otherScoreSub
;
/**
/**
* 日
* 备注
*/
private
Integer
day
;
/**
* 员工绩效加分总分数汇总
*/
*/
@Excel
(
name
=
"员工绩效加分总分数汇总"
)
private
String
remark
;
private
BigDecimal
totalAddScore
;
/**
/**
* 员工绩效减分总分数汇总
* 年
*/
*/
@Excel
(
name
=
"员工绩效减分总分数汇总"
)
private
Integer
year
;
private
BigDecimal
totalSubScore
;
/**
/**
* 投诉绩效指标增加分数
* 月
*/
*/
private
BigDecimal
complainScoreAdd
;
private
Integer
month
;
/**
/**
* 投诉绩效指标扣减分数
* 日
*/
*/
private
BigDecimal
complainScoreSub
;
private
Integer
day
;
@Override
@Override
public
int
hashCode
()
{
public
int
hashCode
()
{
return
this
.
getId
().
hashCode
();
return
this
.
getId
().
hashCode
();
}
}
@Override
@Override
public
boolean
equals
(
Object
obj
)
{
public
boolean
equals
(
Object
obj
)
{
if
(
obj
==
null
)
return
false
;
if
(
obj
==
null
)
return
false
;
...
@@ -120,19 +127,17 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
...
@@ -120,19 +127,17 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
return
false
;
return
false
;
}
}
public
void
initAttrValue
(){
public
void
initAttrValue
()
{
this
.
dept
Id
=
0L
;
this
.
staff
Id
=
0L
;
this
.
dept
Name
=
""
;
this
.
staff
Name
=
""
;
this
.
totalScore
=
new
BigDecimal
(
0
);
this
.
totalScore
=
new
BigDecimal
(
0
);
this
.
remark
=
""
;
this
.
totalAddScore
=
new
BigDecimal
(
0
);
this
.
year
=
-
1
;
this
.
month
=
-
1
;
this
.
totalSubScore
=
new
BigDecimal
(
0
)
;
this
.
attendScoreAdd
=
new
BigDecimal
(
0
);
this
.
attendScoreAdd
=
new
BigDecimal
(
0
);
...
@@ -142,6 +147,10 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
...
@@ -142,6 +147,10 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
this
.
assessScoreSub
=
new
BigDecimal
(
0
);
this
.
assessScoreSub
=
new
BigDecimal
(
0
);
this
.
complainScoreAdd
=
new
BigDecimal
(
0
);
this
.
complainScoreSub
=
new
BigDecimal
(
0
);
this
.
workScoreAdd
=
new
BigDecimal
(
0
);
this
.
workScoreAdd
=
new
BigDecimal
(
0
);
this
.
workScoreSub
=
new
BigDecimal
(
0
);
this
.
workScoreSub
=
new
BigDecimal
(
0
);
...
@@ -154,14 +163,12 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
...
@@ -154,14 +163,12 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
this
.
otherScoreSub
=
new
BigDecimal
(
0
);
this
.
otherScoreSub
=
new
BigDecimal
(
0
);
this
.
day
=
-
1
;
this
.
remark
=
""
;
this
.
totalAddScore
=
new
BigDecimal
(
0
);
this
.
totalSubScore
=
new
BigDecimal
(
0
);
this
.
year
=
DateUtil
.
year
(
new
Date
()
);
this
.
complainScoreAdd
=
new
BigDecimal
(
0
)
;
this
.
month
=
DateUtil
.
month
(
new
Date
())
+
1
;
this
.
complainScoreSub
=
new
BigDecimal
(
0
);
this
.
day
=
DateUtil
.
dayOfMonth
(
new
Date
()
);
}
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/StaffPerformStatQuery.java
View file @
2e67a0e7
This diff is collapsed.
Click to expand it.
attendance-performance-manager/src/main/resources/sqlmap/module/staff/StaffPerformStatMapper.xml
View file @
2e67a0e7
This source diff could not be displayed because it is too large. You can
view the blob
instead.
db/add.sql
View file @
2e67a0e7
...
@@ -503,3 +503,40 @@ CREATE TABLE mortals_xhx_window_owner_detail(
...
@@ -503,3 +503,40 @@ CREATE TABLE mortals_xhx_window_owner_detail(
PRIMARY
KEY
(
`id`
)
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'窗口负责人详细'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'窗口负责人详细'
;
-- ----------------------------
-- 员工绩效统计表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`mortals_xhx_staff_perform_stat`
;
CREATE
TABLE
mortals_xhx_staff_perform_stat
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID,主键,自增长'
,
`staffId`
bigint
(
20
)
DEFAULT
'0'
COMMENT
'部门id号'
,
`staffName`
varchar
(
64
)
COMMENT
'部门名称'
,
`totalScore`
decimal
(
10
,
2
)
NOT
NULL
COMMENT
'员工绩效总分数'
,
`totalAddScore`
decimal
(
10
,
2
)
NOT
NULL
COMMENT
'员工绩效加分总分数汇总'
,
`totalSubScore`
decimal
(
10
,
2
)
NOT
NULL
COMMENT
'员工绩效减分总分数汇总'
,
`attendScoreAdd`
decimal
(
10
,
2
)
COMMENT
'考勤绩效指标增加分数'
,
`attendScoreSub`
decimal
(
10
,
2
)
COMMENT
'考勤绩效指标扣减分数'
,
`assessScoreAdd`
decimal
(
10
,
2
)
COMMENT
'评价绩效指标增加分数'
,
`assessScoreSub`
decimal
(
10
,
2
)
COMMENT
'评价绩效指标扣减分数'
,
`complainScoreAdd`
decimal
(
10
,
2
)
COMMENT
'投诉绩效指标增加分数'
,
`complainScoreSub`
decimal
(
10
,
2
)
COMMENT
'投诉绩效指标扣减分数'
,
`workScoreAdd`
decimal
(
10
,
2
)
COMMENT
'办件绩效指标增加分数'
,
`workScoreSub`
decimal
(
10
,
2
)
COMMENT
'办件绩效指标扣减分数'
,
`effectScoreAdd`
decimal
(
10
,
2
)
COMMENT
'效能绩效指标增加分数'
,
`effectScoreSub`
decimal
(
10
,
2
)
COMMENT
'效能绩效指标扣减分数'
,
`otherScoreAdd`
decimal
(
10
,
2
)
COMMENT
'其它绩效指标增加分数'
,
`otherScoreSub`
decimal
(
10
,
2
)
COMMENT
'其它绩效指标扣减分数'
,
`remark`
varchar
(
255
)
COMMENT
'备注'
,
`year`
int
(
9
)
NOT
NULL
COMMENT
'年'
,
`month`
tinyint
(
2
)
NOT
NULL
COMMENT
'月'
,
`day`
tinyint
(
2
)
NOT
NULL
COMMENT
'日'
,
`createTime`
datetime
COMMENT
'创建时间'
,
`createUserId`
bigint
(
20
)
COMMENT
'创建人id'
,
`updateTime`
datetime
COMMENT
'更新时间'
,
`updateUserId`
bigint
(
20
)
COMMENT
'更新人id'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'员工绩效统计'
;
doc/考勤绩效管理系统.docx
View file @
2e67a0e7
No preview for this file type
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