Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
28ff2267
Commit
28ff2267
authored
Jan 09, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
假勤信息优化修改
parent
8d64e01e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
4 deletions
+39
-4
TBusWarningEmployeeMapper.java
.../v1/business/mapper/system/TBusWarningEmployeeMapper.java
+2
-0
TBusWarningEmployeeService.java
...1/business/service/system/TBusWarningEmployeeService.java
+2
-0
TBusWarningEmployeeServiceImpl.java
...s/service/system/impl/TBusWarningEmployeeServiceImpl.java
+10
-0
TBusWarningServiceImpl.java
.../business/service/system/impl/TBusWarningServiceImpl.java
+14
-4
TBusWarningEmployeeMapper.xml
...z/src/main/resources/mapper/TBusWarningEmployeeMapper.xml
+11
-0
No files found.
yifu-business/yifu-business-biz/src/main/java/com/yifu/cloud/plus/v1/business/mapper/system/TBusWarningEmployeeMapper.java
View file @
28ff2267
...
...
@@ -91,4 +91,6 @@ public interface TBusWarningEmployeeMapper extends BaseMapper<TBusWarningEmploye
**/
String
getVacationInfoEmpName
();
String
getVacationEmpName
();
}
yifu-business/yifu-business-biz/src/main/java/com/yifu/cloud/plus/v1/business/service/system/TBusWarningEmployeeService.java
View file @
28ff2267
...
...
@@ -93,4 +93,6 @@ public interface TBusWarningEmployeeService extends IService<TBusWarningEmployee
**/
String
getVacationInfoEmpName
();
String
getVacationEmpName
();
}
yifu-business/yifu-business-biz/src/main/java/com/yifu/cloud/plus/v1/business/service/system/impl/TBusWarningEmployeeServiceImpl.java
View file @
28ff2267
...
...
@@ -179,5 +179,15 @@ public class TBusWarningEmployeeServiceImpl extends ServiceImpl<TBusWarningEmplo
return
baseMapper
.
getVacationInfoEmpName
();
}
/**
* @Description: 获取假期结束人员姓名
* @Author: hgw
* @Date: 2021/8/24 17:54
* @return: int
**/
@Override
public
String
getVacationEmpName
()
{
return
baseMapper
.
getVacationEmpName
();
}
}
yifu-business/yifu-business-biz/src/main/java/com/yifu/cloud/plus/v1/business/service/system/impl/TBusWarningServiceImpl.java
View file @
28ff2267
...
...
@@ -188,7 +188,7 @@ public class TBusWarningServiceImpl extends ServiceImpl<TBusWarningMapper, TBusW
empList
=
busWarningEmployeeService
.
getByBizId
(
bizId
);
// 1添加复审、到期、年假系统消息
this
.
getRemindInfo
(
empList
,
sysBus
);
this
.
getRemindInfo
(
empList
,
sysBus
,
monthDay
);
si
.
setEmpList
(
empList
);
siList
.
add
(
si
);
}
...
...
@@ -197,9 +197,19 @@ public class TBusWarningServiceImpl extends ServiceImpl<TBusWarningMapper, TBusW
return
siList
;
}
private
void
getRemindInfo
(
List
<
TBusWarningEmployee
>
empList
,
TBusWarning
sysBus
)
{
if
(
empList
!=
null
&&
!
empList
.
isEmpty
())
{
TBusWarningMessage
message
=
new
TBusWarningMessage
();
private
void
getRemindInfo
(
List
<
TBusWarningEmployee
>
empList
,
TBusWarning
sysBus
,
String
monthDay
)
{
TBusWarningMessage
message
=
new
TBusWarningMessage
();
if
(
sysBus
.
getRemindType
()
==
2
&&
Common
.
isNotNull
(
sysBus
.
getSendDate
())
&&
sysBus
.
getSendDate
().
equals
(
monthDay
))
{
String
name
=
busWarningEmployeeService
.
getVacationEmpName
();
if
(
Common
.
isNotNull
(
name
))
{
message
.
setRemindContent
(
name
+
sysBus
.
getRemindTemplate
());
message
.
setRemindObject
(
sysBus
.
getRemindObject
());
message
.
setRemindType
(
sysBus
.
getRemindType
());
message
.
setWarningId
(
sysBus
.
getId
());
message
.
setCreateDate
(
LocalDateTime
.
now
());
busWarningMessageService
.
save
(
message
);
}
}
else
if
(
empList
!=
null
&&
!
empList
.
isEmpty
())
{
message
.
setRemindContent
(
empList
.
get
(
0
).
getEmpName
()
+
sysBus
.
getRemindTemplate
());
message
.
setRemindObject
(
sysBus
.
getRemindObject
());
message
.
setRemindType
(
sysBus
.
getRemindType
());
...
...
yifu-business/yifu-business-biz/src/main/resources/mapper/TBusWarningEmployeeMapper.xml
View file @
28ff2267
...
...
@@ -199,6 +199,17 @@
GROUP BY c.id
</insert>
<!--假期结束提醒-->
<select
id=
"getVacationEmpName"
resultType=
"java.lang.String"
>
SELECT c.EMP_NAME
FROM t_vacation_monitor c
where c.NOT_USED_VACATION_DURATION>0 and DATE_FORMAT(now(),'%Y') = c.VACATION_YEAR
and not exists (
select 1 from t_bus_leave l where l.tele_no = c.business_telecom_number
)
limit 1
</select>
<!--假期结束提醒-->
<select
id=
"getVacationInfoEmpName"
resultType=
"java.lang.String"
>
SELECT c.EMP_NAME
...
...
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