工资单发放预览,兼容很早之前新建的工资单模板

This commit is contained in:
Harryxzy 2024-11-11 15:02:21 +08:00
parent 6ebef0cd5e
commit 02de1e4444
1 changed files with 2 additions and 2 deletions

View File

@ -1920,7 +1920,7 @@ public class SalarySendServiceImpl extends Service implements SalarySendService
map.put("salaryAcctResult", salaryAcctResultS);
// 工资单确认按钮
if (NumberUtils.compare(salaryTemplate.getAckFeedbackStatus(), 1) == 0) {
if (salaryTemplate.getAckFeedbackStatus() != null && NumberUtils.compare(salaryTemplate.getAckFeedbackStatus(), 1) == 0) {
// 开启了工资单确认
Integer ackStatus = salarySendInfo.getBillConfirmStatus();
if (ackStatus == null || ackStatus != BillConfimStatusEnum.CONFIRMED.getValue()) {
@ -1935,7 +1935,7 @@ public class SalarySendServiceImpl extends Service implements SalarySendService
// 工资单反馈
if (NumberUtils.compare(salaryTemplate.getFeedbackStatus(), 1) == 0) {
if (salaryTemplate.getFeedbackStatus() != null && NumberUtils.compare(salaryTemplate.getFeedbackStatus(), 1) == 0) {
// 开启了工资单反馈按钮
Integer confirmStatus = salarySendInfo.getBillConfirmStatus();
map.put("showFeedback", "1");