没有设置工资单模板时报错
This commit is contained in:
parent
1ea80b8fe9
commit
31a863c937
|
|
@ -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) {
|
||||
// 默认为空时,未读未确认
|
||||
|
|
|
|||
Loading…
Reference in New Issue