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
c8fde557
Commit
c8fde557
authored
Jul 12, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
目标看板修改业务,申诉添加字段
parent
bd406c3f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
20 deletions
+25
-20
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/req/AppealReq.java
...er/src/main/java/com/mortals/xhx/busiz/req/AppealReq.java
+0
-3
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/ApiLoginController.java
...in/java/com/mortals/xhx/busiz/web/ApiLoginController.java
+3
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/AppealApiController.java
...n/java/com/mortals/xhx/busiz/web/AppealApiController.java
+18
-9
attendance-performance-manager/src/main/java/com/mortals/xhx/common/code/UserType.java
...r/src/main/java/com/mortals/xhx/common/code/UserType.java
+2
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
...rtals/xhx/module/staff/service/impl/StaffServiceImpl.java
+2
-5
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/req/AppealReq.java
View file @
c8fde557
...
...
@@ -24,16 +24,13 @@ public class AppealReq extends BaseReq {
private
Integer
appealResult
;
private
Integer
processStatus
;
/**
* 当前员工id
*/
private
Long
staffId
;
/**
* 核查记录id
*/
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/ApiLoginController.java
View file @
c8fde557
...
...
@@ -80,8 +80,9 @@ public class ApiLoginController extends BaseJsonBodyController {
data
.
put
(
"userType"
,
userEntity
.
getUserType
());
HashSet
<
Integer
>
set
=
new
HashSet
<>();
set
.
add
(
1
);
set
.
add
(
0
);
set
.
add
(
2
);
set
.
add
(
3
);
if
(
ObjectUtils
.
isEmpty
(
userEntity
.
getUserType
())
||
!
set
.
contains
(
userEntity
.
getUserType
()))
{
throw
new
AppException
(
"当前用户不支持H5登录!"
);
...
...
@@ -89,7 +90,7 @@ public class ApiLoginController extends BaseJsonBodyController {
userEntity
.
setLoginTime
(
System
.
currentTimeMillis
());
userEntity
.
setToken
(
IdUtil
.
fastSimpleUUID
());
userEntity
.
setExpireTime
(
DateUtils
.
addCurrDate
(
7
).
getTime
());
userEntity
.
setExpireTime
(
DateUtils
.
addCurrDate
(
3
).
getTime
());
String
token
=
authTokenService
.
createToken
(
userEntity
);
data
.
put
(
"token"
,
token
);
ret
.
put
(
KEY_RESULT_DATA
,
data
);
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/AppealApiController.java
View file @
c8fde557
...
...
@@ -173,36 +173,45 @@ public class AppealApiController extends AbstractBaseController<PerformReq> {
//根据状态 查询 当前是否已经存在正在进行的申诉
if
(
ObjectUtils
.
isEmpty
(
req
.
getId
()))
throw
new
AppException
(
"核查记录Id不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getPerformType
()))
throw
new
AppException
(
"绩效类型不能为空!"
);
PerformAttendAppealEntity
entity
=
new
PerformAttendAppealEntity
();
entity
.
initAttrValue
();
if
(
PerformTypeEnum
.
考勤绩效
.
getValue
().
equals
(
req
.
getPerformType
()))
{
//查询当前核查是否已存在进行中的申诉记录
PerformAttendAppealEntity
appealEntity
=
appealService
.
selectOne
(
new
PerformAttendAppealQuery
().
checkRecordId
(
req
.
getId
()));
if
(!
ObjectUtils
.
isEmpty
(
appealEntity
)
&&
appealEntity
.
getProcessStatus
()
==
ProcessStatusEnum
.
未处理
.
getValue
())
{
throw
new
AppException
(
"当前绩效核查已经存在正在进行中的申诉记录!"
);
}
PerformAttendAppealEntity
entity
=
new
PerformAttendAppealEntity
();
entity
.
initAttrValue
();
if
(
PerformTypeEnum
.
考勤绩效
.
getValue
().
equals
(
req
.
getPerformType
()))
{
CheckAttendRecordEntity
checkEntity
=
checkAttendRecordService
.
get
(
req
.
getId
(),
context
);
BeanUtils
.
copyProperties
(
checkEntity
,
entity
,
BeanUtil
.
getNullPropertyNames
(
checkEntity
));
}
else
if
(
PerformTypeEnum
.
评价差评绩效
.
getValue
().
equals
(
req
.
getPerformType
()))
{
CheckReviewRecordEntity
checkEntity
=
checkReviewRecordService
.
get
(
req
.
getId
(),
context
);
BeanUtils
.
copyProperties
(
checkEntity
,
entity
,
BeanUtil
.
getNullPropertyNames
(
checkEntity
));
}
else
if
(
PerformTypeEnum
.
评价投诉绩效
.
getValue
().
equals
(
req
.
getPerformType
()))
{
CheckComplainRecordEntity
checkEntity
=
checkComplainRecordService
.
get
(
req
.
getId
(),
context
);
BeanUtils
.
copyProperties
(
checkEntity
,
entity
,
BeanUtil
.
getNullPropertyNames
(
checkEntity
));
}
else
if
(
PerformTypeEnum
.
办件绩效
.
getValue
().
equals
(
req
.
getPerformType
()))
{
CheckGoworkRecordEntity
checkEntity
=
checkGoworkRecordService
.
get
(
req
.
getId
(),
context
);
BeanUtils
.
copyProperties
(
checkEntity
,
entity
,
BeanUtil
.
getNullPropertyNames
(
checkEntity
));
}
else
if
(
PerformTypeEnum
.
效能绩效
.
getValue
().
equals
(
req
.
getPerformType
()))
{
CheckEffectRecordEntity
checkEntity
=
checkEffectRecordService
.
get
(
req
.
getId
(),
context
);
BeanUtils
.
copyProperties
(
checkEntity
,
entity
,
BeanUtil
.
getNullPropertyNames
(
checkEntity
));
}
else
if
(
PerformTypeEnum
.
其它绩效
.
getValue
().
equals
(
req
.
getPerformType
()))
{
CheckOtherRecordEntity
checkEntity
=
checkOtherRecordService
.
get
(
req
.
getId
(),
context
);
BeanUtils
.
copyProperties
(
checkEntity
,
entity
,
BeanUtil
.
getNullPropertyNames
(
checkEntity
));
}
else
{
throw
new
AppException
(
"不支持当前绩效类型"
);
}
entity
.
setPerformType
(
req
.
getPerformType
());
entity
.
setPerformAttendAppealFilesList
(
req
.
getPerformAttendAppealFilesList
());
entity
.
setProcessStatus
(
1
);
entity
.
setAppealDesc
(
req
.
getAppealDesc
());
PerformAttendAppealEntity
saveEntity
=
appealService
.
save
(
entity
,
context
);
rest
.
setData
(
saveEntity
);
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/common/code/UserType.java
View file @
c8fde557
...
...
@@ -11,7 +11,8 @@ import java.util.Map;
public
enum
UserType
{
SYSTEM
(
0
,
"系统用户"
),
WORK
(
1
,
"后台管理"
),
WORK_PERSON
(
2
,
"工作人员"
);
WORK_PERSON
(
2
,
"工作人员"
),
INSPECT_PERSON
(
3
,
"巡查人员"
);;
private
int
value
;
private
String
desc
;
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
View file @
c8fde557
...
...
@@ -9,10 +9,7 @@ import com.mortals.xhx.base.system.role.model.RoleUserQuery;
import
com.mortals.xhx.base.system.role.service.RoleUserService
;
import
com.mortals.xhx.base.system.user.model.UserEntity
;
import
com.mortals.xhx.base.system.user.service.UserService
;
import
com.mortals.xhx.common.code.StaffSatusEnum
;
import
com.mortals.xhx.common.code.StaffTypeEnum
;
import
com.mortals.xhx.common.code.StatusEnum
;
import
com.mortals.xhx.common.code.UserStatus
;
import
com.mortals.xhx.common.code.*
;
import
com.mortals.xhx.module.staff.dao.StaffDao
;
import
com.mortals.xhx.module.staff.dao.ibatis.StaffDaoImpl
;
import
com.mortals.xhx.module.staff.dao.ibatis.StaffLeaveDaoImpl
;
...
...
@@ -103,7 +100,7 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta
userEntity
.
setLoginName
(
StrUtil
.
cleanBlank
(
entity
.
getLoginName
()));
userEntity
.
setRealName
(
entity
.
getName
());
userEntity
.
setUserType
(
2
);
userEntity
.
setUserType
(
UserType
.
WORK_PERSON
.
getValue
()
);
userEntity
.
setSiteIds
(
"1"
);
userEntity
.
setAreaCodes
(
"511500000000"
);
userEntity
.
setStatus
(
UserStatus
.
NORMAL
.
getValue
());
...
...
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