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
0044358e
Commit
0044358e
authored
Aug 30, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息提醒优化
parent
d6c2011e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
13 deletions
+15
-13
SysMessageSalaryController.java
...v1/yifu/salary/controller/SysMessageSalaryController.java
+4
-4
THaveSalaryNosocialController.java
...yifu/salary/controller/THaveSalaryNosocialController.java
+2
-2
THaveSalaryNosocialServiceImpl.java
...u/salary/service/impl/THaveSalaryNosocialServiceImpl.java
+4
-4
SysMessageSalaryMapper.xml
...-biz/src/main/resources/mapper/SysMessageSalaryMapper.xml
+3
-2
TSalaryAccountMapper.xml
...ry-biz/src/main/resources/mapper/TSalaryAccountMapper.xml
+2
-1
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/SysMessageSalaryController.java
View file @
0044358e
...
...
@@ -78,13 +78,13 @@ public class SysMessageSalaryController {
@Operation
(
description
=
"生成最低工资提醒"
)
@GetMapping
(
"/inner/createSysMessageSalary"
)
public
void
createSysMessageSalary
()
{
//
结算月
String
s
ettle
Month
=
DateUtil
.
addMonth
(-
1
);
//
薪资月份
String
s
alary
Month
=
DateUtil
.
addMonth
(-
1
);
//1:删除当前结算月数据:
sysMessageSalaryService
.
deleteAllBySettleMonth
(
s
ettle
Month
);
sysMessageSalaryService
.
deleteAllBySettleMonth
(
s
alary
Month
);
//2:开始生成:
//2.1:普通工资
sysMessageSalaryService
.
insertSalaryBySettleMonth
(
s
ettle
Month
);
sysMessageSalaryService
.
insertSalaryBySettleMonth
(
s
alary
Month
);
}
/**
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/THaveSalaryNosocialController.java
View file @
0044358e
...
...
@@ -159,8 +159,8 @@ public class THaveSalaryNosocialController {
@Inner
@PostMapping
(
"/inner/generate"
)
public
void
generate
()
{
String
s
ettleMonth
=
DateUtil
.
addMonth
(
0
);
tHaveSalaryNosocialService
.
generate
(
s
ettle
Month
);
String
s
alaryMonth
=
DateUtil
.
addMonth
(-
1
);
tHaveSalaryNosocialService
.
generate
(
s
alary
Month
);
}
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/THaveSalaryNosocialServiceImpl.java
View file @
0044358e
...
...
@@ -115,17 +115,17 @@ public class THaveSalaryNosocialServiceImpl extends ServiceImpl<THaveSalaryNosoc
* * 4.生成记录
**/
@Override
public
void
generate
(
String
s
ettle
Month
)
{
public
void
generate
(
String
s
alary
Month
)
{
//重新跑上月数据
this
.
remove
(
Wrappers
.<
THaveSalaryNosocial
>
query
().
lambda
().
eq
(
THaveSalaryNosocial:
:
get
SettleMonth
,
settle
Month
));
List
<
THaveSalaryNosocial
>
haveSalaryNosocialList
=
salaryAccountService
.
getLastMonthTHaveSalaryNosocial
(
s
ettle
Month
);
this
.
remove
(
Wrappers
.<
THaveSalaryNosocial
>
query
().
lambda
().
eq
(
THaveSalaryNosocial:
:
get
Month
,
salary
Month
));
List
<
THaveSalaryNosocial
>
haveSalaryNosocialList
=
salaryAccountService
.
getLastMonthTHaveSalaryNosocial
(
s
alary
Month
);
if
(!
Common
.
isNotEmpty
(
haveSalaryNosocialList
)){
log
.
error
(
"获取有社保无工资数据为空"
);
return
;
}
//去缴费库查询查询这些人社保是否存在
Map
<
String
,
TPaymentInfo
>
empPaymentInfoMap
=
Maps
.
newHashMap
();
R
<
HaveSalaryNoSocialVo
>
noSocialVoR
=
socialDaprUtils
.
getPaymentinfoListByEmpdIdCard
(
Common
.
listObjectToStrList
(
haveSalaryNosocialList
,
"employeeIdCard"
),
s
ettle
Month
);
R
<
HaveSalaryNoSocialVo
>
noSocialVoR
=
socialDaprUtils
.
getPaymentinfoListByEmpdIdCard
(
Common
.
listObjectToStrList
(
haveSalaryNosocialList
,
"employeeIdCard"
),
s
alary
Month
);
if
(
Common
.
isNotNull
(
noSocialVoR
)&&
Common
.
isNotNull
(
noSocialVoR
.
getData
()))
{
for
(
TPaymentInfo
paymentInfo
:
noSocialVoR
.
getData
().
getPaymentInfos
())
{
empPaymentInfoMap
.
put
(
paymentInfo
.
getEmpIdcard
(),
paymentInfo
);
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/SysMessageSalaryMapper.xml
View file @
0044358e
...
...
@@ -210,7 +210,8 @@
LEFT JOIN t_salary_account_item l ON l.SALARY_ACCOUNT_ID = a.id and l.JAVA_FIED_NAME = 'relaySalary'
WHERE
a.DELETE_FLAG = 0
and s.SEND_MONTH = #{settleMonth}
and a.FORM_TYPE='0'
and a.SALARY_MONTH = #{settleMonth}
AND s.STATUS IN (3, 4)
GROUP BY a.EMP_IDCARD,a.SALARY_MONTH
) b
...
...
@@ -273,7 +274,7 @@
<!--生成前,先删除老数据-->
<delete
id=
"deleteAllBySettleMonth"
>
delete from sys_message_salary where
settle_month
= #{settleMonth}
delete from sys_message_salary where
SALARY_MONTH
= #{settleMonth}
</delete>
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/TSalaryAccountMapper.xml
View file @
0044358e
...
...
@@ -382,7 +382,8 @@
where
a.DELETE_FLAG = 0
and a.send_month in ( #{month} , #{month2} , #{month3})
and a.FORM_TYPE='0'
and a.SALARY_MONTH in ( #{month} , #{month2} , #{month3})
AND s.STATUS IN (3, 4)
GROUP BY a.EMP_IDCARD, a.SALARY_MONTH limit 10
) a
...
...
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