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
1440d7e7
Commit
1440d7e7
authored
Aug 18, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
619982ab
769325dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
50 deletions
+12
-50
SysMessageSalaryService.java
.../plus/v1/yifu/salary/service/SysMessageSalaryService.java
+0
-2
SysMessageSalaryServiceImpl.java
...yifu/salary/service/impl/SysMessageSalaryServiceImpl.java
+6
-48
THaveSalaryNosocialServiceImpl.java
...u/salary/service/impl/THaveSalaryNosocialServiceImpl.java
+6
-0
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/SysMessageSalaryService.java
View file @
1440d7e7
...
...
@@ -46,8 +46,6 @@ public interface SysMessageSalaryService extends IService<SysMessageSalary> {
**/
void
deleteAllBySettleMonth
(
String
settleMonth
);
void
createSysMessageSalaryTemp
(
String
settleMonth
);
void
listExport
(
HttpServletResponse
response
,
SysMessageSalarySearchVo
searchVo
);
R
<
String
>
feedback
(
Integer
reasonType
,
String
id
,
String
feedBack
);
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/SysMessageSalaryServiceImpl.java
View file @
1440d7e7
...
...
@@ -96,6 +96,12 @@ public class SysMessageSalaryServiceImpl extends ServiceImpl<SysMessageSalaryMap
/**
* @Author fxj
* @Description 新增-普通工资
* 最低工资提醒(和档案属性在职状态和员工类型无关):
* 1.执行时间:每月1号上午六点 salaryTask createSysMessageSalary
* 2.判断逻辑:先上传上月(发送EKP时间对应的月份)数据,然后取值薪资合计-(薪资单状态发送成功)实发小于配置的最低工资
* 3.数据消失逻辑:当月不消失;次月定时任务执行的时候删除,重新计算生成
* 4.反馈:只能反馈创建人为自己的数据
* 5.导出:可选择/按查询条件/全量导出,导出字段为列表字段
* @Date 18:19 2022/8/17
**/
@Transactional
...
...
@@ -137,54 +143,6 @@ public class SysMessageSalaryServiceImpl extends ServiceImpl<SysMessageSalaryMap
baseMapper
.
deleteAllBySettleMonth
(
settleMonth
);
}
@Override
public
void
createSysMessageSalaryTemp
(
String
month
)
{
//删除之前的数据
sysMessageSalaryTempService
.
remove
(
Wrappers
.<
SysMessageSalaryTemp
>
query
().
lambda
().
eq
(
SysMessageSalaryTemp:
:
getSettleMonth
,
month
));
//获取当月的所有最低工资,并且是临时人员
// 获取他上次发工资是不是在最低工资表里面 次数+1
//继续循环上次,如果发现上次没有在最低工资表里面,则循环下一个人员
List
<
SysMessageSalary
>
list
=
this
.
list
(
Wrappers
.<
SysMessageSalary
>
query
().
lambda
().
eq
(
SysMessageSalary:
:
getSettleMonth
,
month
));
R
<
List
<
TEmployeeInfo
>>
employeeInfoListR
=
null
;
//remoteBasicArchivesService.getEmployeeListForImportCheckByIds(Common.listObjectToStr(list, "employeeId", CommonConstants.COMMA_STRING), SecurityConstants.FROM_IN);
HashMap
<
String
,
TEmployeeInfo
>
employeeInfoMap
=
Maps
.
newHashMap
();
List
<
TEmployeeInfo
>
employeeInfoList
=
employeeInfoListR
.
getData
();
for
(
TEmployeeInfo
employeeInfo
:
employeeInfoList
)
{
employeeInfoMap
.
put
(
employeeInfo
.
getId
(),
employeeInfo
);
}
//获取当月的所有最低工资,并且是临时人员
List
<
SysMessageSalary
>
tempSysMessageSalary
=
Lists
.
newArrayList
();
for
(
SysMessageSalary
salary
:
list
)
{
TEmployeeInfo
employeeInfo
=
employeeInfoMap
.
get
(
salary
.
getEmployeeId
());
tempSysMessageSalary
.
add
(
salary
);
}
for
(
SysMessageSalary
messageSalary
:
tempSysMessageSalary
)
{
//获取他上次发工资是不是在最低工资表里面 次数+1
List
<
TSalaryAccount
>
accountList
=
salaryAccountService
.
list
(
Wrappers
.<
TSalaryAccount
>
query
().
lambda
().
eq
(
TSalaryAccount:
:
getEmpIdcard
,
messageSalary
.
getEmployeeIdnum
())
.
lt
(
TSalaryAccount:
:
getSalaryGiveTime
,
messageSalary
.
getSalaryMonth
()).
groupBy
(
TSalaryAccount:
:
getSalaryGiveTime
).
orderByDesc
(
TSalaryAccount:
:
getSalaryGiveTime
));
int
lowerConut
=
1
;
for
(
TSalaryAccount
salaryAccount
:
accountList
)
{
long
count
=
this
.
count
(
Wrappers
.<
SysMessageSalary
>
query
().
lambda
().
eq
(
SysMessageSalary:
:
getEmployeeId
,
salaryAccount
.
getEmpId
()).
eq
(
SysMessageSalary:
:
getSalaryMonth
,
salaryAccount
.
getSalaryGiveTime
()));
if
(
count
>
0
)
{
//如果大于0 则上次也是最低工资。
lowerConut
++;
}
else
{
break
;
}
}
//判断最低次数
if
(
lowerConut
>
1
)
{
SysMessageSalaryTemp
messageSalaryTemp
=
new
SysMessageSalaryTemp
();
messageSalaryTemp
.
setRelateId
(
messageSalary
.
getId
());
messageSalaryTemp
.
setTimes
(
lowerConut
);
messageSalaryTemp
.
setSettleMonth
(
month
);
sysMessageSalaryTempService
.
save
(
messageSalaryTemp
);
}
}
}
/**
* @Author fxj
* @Description 最低工资提醒导出
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/THaveSalaryNosocialServiceImpl.java
View file @
1440d7e7
...
...
@@ -100,6 +100,12 @@ public class THaveSalaryNosocialServiceImpl extends ServiceImpl<THaveSalaryNosoc
/**
* @Author fxj
* @Description 每月生成有工资没有社保(首页提醒定时任务 )
*有工资无社保提醒 ( 和档案属性在职状态和员工类型无关 ) :
*1.执行时间 : 每月1号上午六点 salaryTask createHaveSalaryNoSocial
*2.判断逻辑 : 先删除上月 ( 发送EKP时间对应的月份 ) 提醒数据 , 然后查找连续三个月 ( 不包含当月 ) 有发薪记录 - ( 薪资单状态发送成功 ) , 但是对应三个月均无社保缴费记录 ( 无个人社保数据 ) 并生成
*3.数据消失逻辑 : 当月不消失 ; 次月定时任务执行的时候删除 , 重新计算生成
*4.反馈 : 只能反馈创建人为自己的数据
*5.导出 : 可选择 / 按查询条件 / 全量导出 , 导出字段为列表字段
* @Date 18:30 2022/8/16
* @Param
* @return
...
...
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