没有设置工资单模板时报错

This commit is contained in:
Harryxzy 2023-07-19 11:51:31 +08:00
parent 1ea80b8fe9
commit 31a863c937
1 changed files with 2 additions and 0 deletions

View File

@ -664,6 +664,8 @@ public class SalarySendServiceImpl extends Service implements SalarySendService
if (ObjectUtils.isEmpty(salarySendPO))
throw new SalaryRunTimeException("工资单不存在或已被删除");
List<SalaryTemplatePO> salaryTemplates = getSalaryTemplateService(user).getDefaultTemplates(Collections.singletonList(salarySendPO.getSalarySobId()));
if(CollectionUtils.isEmpty(salaryTemplates))
throw new SalaryRunTimeException("请先设置工资单模板");
Integer ackFeedbackStatus = salaryTemplates.get(0).getAckFeedbackStatus();
if (ackFeedbackStatus!=null && NumberUtils.compare(ackFeedbackStatus,1) == 0) {
// 默认为空时未读未确认