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
ad5e569f
Commit
ad5e569f
authored
Mar 05, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改测试bug
parent
47150c3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
52 deletions
+62
-52
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformAttendAppealServiceImpl.java
.../perform/service/impl/PerformAttendAppealServiceImpl.java
+62
-52
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformAttendAppealServiceImpl.java
View file @
ad5e569f
...
...
@@ -127,73 +127,83 @@ public class PerformAttendAppealServiceImpl extends AbstractCRUDServiceImpl<Perf
//需增一条记录后 冲销相关核查的记录
if
(
PerformTypeEnum
.
考勤绩效
.
getValue
().
equals
(
appealEntity
.
getPerformType
()))
{
CheckAttendRecordEntity
checkEntity
=
checkAttendRecordService
.
get
(
appealEntity
.
getCheckRecordId
(),
context
);
CheckAttendRecordEntity
checkAttendRecordEntity
=
new
CheckAttendRecordEntity
();
checkAttendRecordEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
checkEntity
,
checkAttendRecordEntity
,
new
String
[]{
"id"
,
"recordId"
});
checkAttendRecordEntity
.
setSubAddType
(
SubAddTypeEnum
.
增加
.
getValue
());
checkAttendRecordEntity
.
setSubMethod
(
SubMethodEnum
.
申诉冲销
.
getValue
());
checkAttendRecordEntity
.
setRemark
(
appealMsg
);
checkAttendRecordService
.
save
(
checkAttendRecordEntity
,
context
);
if
(
checkEntity
!=
null
)
{
CheckAttendRecordEntity
checkAttendRecordEntity
=
new
CheckAttendRecordEntity
();
checkAttendRecordEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
checkEntity
,
checkAttendRecordEntity
,
new
String
[]{
"id"
,
"recordId"
});
checkAttendRecordEntity
.
setSubAddType
(
SubAddTypeEnum
.
增加
.
getValue
());
checkAttendRecordEntity
.
setSubMethod
(
SubMethodEnum
.
申诉冲销
.
getValue
());
checkAttendRecordEntity
.
setRemark
(
appealMsg
);
checkAttendRecordService
.
save
(
checkAttendRecordEntity
,
context
);
}
}
else
if
(
PerformTypeEnum
.
评价差评绩效
.
getValue
().
equals
(
appealEntity
.
getPerformType
()))
{
CheckReviewRecordEntity
checkEntity
=
checkReviewRecordService
.
get
(
appealEntity
.
getCheckRecordId
(),
context
);
CheckReviewRecordEntity
checkRecordEntity
=
new
CheckReviewRecordEntity
();
checkRecordEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
checkEntity
,
checkRecordEntity
,
new
String
[]{
"id"
,
"recordId"
});
checkRecordEntity
.
setSubAddType
(
SubAddTypeEnum
.
增加
.
getValue
());
checkRecordEntity
.
setSubMethod
(
SubMethodEnum
.
申诉冲销
.
getValue
());
checkRecordEntity
.
setRemark
(
appealMsg
);
checkRecordEntity
.
setCreateTime
(
new
Date
());
checkRecordEntity
.
setCreateUserId
(
this
.
getContextUserId
(
context
));
checkReviewRecordService
.
save
(
checkRecordEntity
,
context
);
if
(
checkEntity
!=
null
)
{
BeanUtils
.
copyProperties
(
checkEntity
,
checkRecordEntity
,
new
String
[]{
"id"
,
"recordId"
});
checkRecordEntity
.
setSubAddType
(
SubAddTypeEnum
.
增加
.
getValue
());
checkRecordEntity
.
setSubMethod
(
SubMethodEnum
.
申诉冲销
.
getValue
());
checkRecordEntity
.
setRemark
(
appealMsg
);
checkRecordEntity
.
setCreateTime
(
new
Date
());
checkRecordEntity
.
setCreateUserId
(
this
.
getContextUserId
(
context
));
checkReviewRecordService
.
save
(
checkRecordEntity
,
context
);
}
}
else
if
(
PerformTypeEnum
.
评价投诉绩效
.
getValue
().
equals
(
appealEntity
.
getPerformType
()))
{
CheckComplainRecordEntity
checkEntity
=
checkComplainRecordService
.
get
(
appealEntity
.
getCheckRecordId
(),
context
);
CheckComplainRecordEntity
checkRecordEntity
=
new
CheckComplainRecordEntity
();
checkRecordEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
checkEntity
,
checkRecordEntity
,
new
String
[]{
"id"
,
"recordId"
});
checkRecordEntity
.
setSubAddType
(
SubAddTypeEnum
.
增加
.
getValue
());
checkRecordEntity
.
setSubMethod
(
SubMethodEnum
.
申诉冲销
.
getValue
());
checkRecordEntity
.
setRemark
(
appealMsg
);
checkRecordEntity
.
setCreateTime
(
new
Date
());
checkRecordEntity
.
setCreateUserId
(
this
.
getContextUserId
(
context
));
checkComplainRecordService
.
save
(
checkRecordEntity
,
context
);
if
(
checkEntity
!=
null
)
{
CheckComplainRecordEntity
checkRecordEntity
=
new
CheckComplainRecordEntity
();
checkRecordEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
checkEntity
,
checkRecordEntity
,
new
String
[]{
"id"
,
"recordId"
});
checkRecordEntity
.
setSubAddType
(
SubAddTypeEnum
.
增加
.
getValue
());
checkRecordEntity
.
setSubMethod
(
SubMethodEnum
.
申诉冲销
.
getValue
());
checkRecordEntity
.
setRemark
(
appealMsg
);
checkRecordEntity
.
setCreateTime
(
new
Date
());
checkRecordEntity
.
setCreateUserId
(
this
.
getContextUserId
(
context
));
checkComplainRecordService
.
save
(
checkRecordEntity
,
context
);
}
}
else
if
(
PerformTypeEnum
.
办件绩效
.
getValue
().
equals
(
appealEntity
.
getPerformType
()))
{
CheckGoworkRecordEntity
checkEntity
=
checkGoworkRecordService
.
get
(
appealEntity
.
getCheckRecordId
(),
context
);
CheckGoworkRecordEntity
checkRecordEntity
=
new
CheckGoworkRecordEntity
();
checkRecordEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
checkEntity
,
checkRecordEntity
,
new
String
[]{
"id"
,
"recordId"
});
checkRecordEntity
.
setSubAddType
(
SubAddTypeEnum
.
增加
.
getValue
());
checkRecordEntity
.
setSubMethod
(
SubMethodEnum
.
申诉冲销
.
getValue
());
checkRecordEntity
.
setRemark
(
appealMsg
);
checkRecordEntity
.
setCreateTime
(
new
Date
());
checkRecordEntity
.
setCreateUserId
(
this
.
getContextUserId
(
context
));
checkGoworkRecordService
.
save
(
checkRecordEntity
,
context
);
if
(
checkEntity
!=
null
)
{
CheckGoworkRecordEntity
checkRecordEntity
=
new
CheckGoworkRecordEntity
();
checkRecordEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
checkEntity
,
checkRecordEntity
,
new
String
[]{
"id"
,
"recordId"
});
checkRecordEntity
.
setSubAddType
(
SubAddTypeEnum
.
增加
.
getValue
());
checkRecordEntity
.
setSubMethod
(
SubMethodEnum
.
申诉冲销
.
getValue
());
checkRecordEntity
.
setRemark
(
appealMsg
);
checkRecordEntity
.
setCreateTime
(
new
Date
());
checkRecordEntity
.
setCreateUserId
(
this
.
getContextUserId
(
context
));
checkGoworkRecordService
.
save
(
checkRecordEntity
,
context
);
}
}
else
if
(
PerformTypeEnum
.
效能绩效
.
getValue
().
equals
(
appealEntity
.
getPerformType
()))
{
CheckEffectRecordEntity
checkEntity
=
checkEffectRecordService
.
get
(
appealEntity
.
getCheckRecordId
(),
context
);
CheckEffectRecordEntity
checkRecordEntity
=
new
CheckEffectRecordEntity
();
checkRecordEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
checkEntity
,
checkRecordEntity
,
new
String
[]{
"id"
,
"recordId"
});
checkRecordEntity
.
setSubAddType
(
SubAddTypeEnum
.
增加
.
getValue
());
checkRecordEntity
.
setSubMethod
(
SubMethodEnum
.
申诉冲销
.
getValue
());
checkRecordEntity
.
setRemark
(
appealMsg
);
checkRecordEntity
.
setCreateTime
(
new
Date
());
checkRecordEntity
.
setCreateUserId
(
this
.
getContextUserId
(
context
));
checkEffectRecordService
.
save
(
checkRecordEntity
,
context
);
if
(
checkEntity
!=
null
)
{
CheckEffectRecordEntity
checkRecordEntity
=
new
CheckEffectRecordEntity
();
checkRecordEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
checkEntity
,
checkRecordEntity
,
new
String
[]{
"id"
,
"recordId"
});
checkRecordEntity
.
setSubAddType
(
SubAddTypeEnum
.
增加
.
getValue
());
checkRecordEntity
.
setSubMethod
(
SubMethodEnum
.
申诉冲销
.
getValue
());
checkRecordEntity
.
setRemark
(
appealMsg
);
checkRecordEntity
.
setCreateTime
(
new
Date
());
checkRecordEntity
.
setCreateUserId
(
this
.
getContextUserId
(
context
));
checkEffectRecordService
.
save
(
checkRecordEntity
,
context
);
}
}
else
if
(
PerformTypeEnum
.
其它绩效
.
getValue
().
equals
(
appealEntity
.
getPerformType
()))
{
CheckOtherRecordEntity
checkEntity
=
checkOtherRecordService
.
get
(
appealEntity
.
getCheckRecordId
(),
context
);
CheckOtherRecordEntity
checkRecordEntity
=
new
CheckOtherRecordEntity
();
checkRecordEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
checkEntity
,
checkRecordEntity
,
new
String
[]{
"id"
,
"recordId"
});
checkRecordEntity
.
setSubAddType
(
SubAddTypeEnum
.
增加
.
getValue
());
checkRecordEntity
.
setSubMethod
(
SubMethodEnum
.
申诉冲销
.
getValue
());
checkRecordEntity
.
setRemark
(
appealMsg
);
checkRecordEntity
.
setCreateTime
(
new
Date
());
checkRecordEntity
.
setCreateUserId
(
this
.
getContextUserId
(
context
));
checkOtherRecordService
.
save
(
checkRecordEntity
,
context
);
if
(
checkEntity
!=
null
)
{
CheckOtherRecordEntity
checkRecordEntity
=
new
CheckOtherRecordEntity
();
checkRecordEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
checkEntity
,
checkRecordEntity
,
new
String
[]{
"id"
,
"recordId"
});
checkRecordEntity
.
setSubAddType
(
SubAddTypeEnum
.
增加
.
getValue
());
checkRecordEntity
.
setSubMethod
(
SubMethodEnum
.
申诉冲销
.
getValue
());
checkRecordEntity
.
setRemark
(
appealMsg
);
checkRecordEntity
.
setCreateTime
(
new
Date
());
checkRecordEntity
.
setCreateUserId
(
this
.
getContextUserId
(
context
));
checkOtherRecordService
.
save
(
checkRecordEntity
,
context
);
}
}
}
}
...
...
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