工资单发放详情模板名称调整

This commit is contained in:
Harryxzy 2022-12-16 15:53:34 +08:00
parent 0ace75ab06
commit eaa9b7515f
1 changed files with 1 additions and 3 deletions

View File

@ -413,9 +413,7 @@ public class SalarySendServiceImpl extends Service implements SalarySendService
List<SalaryTemplatePO> salaryTemplates = getSalaryTemplateService(user).getDefaultTemplates(Collections.singletonList(salarySend.getSalarySobId()));
if (CollectionUtils.isNotEmpty(salaryTemplates)) {
// 是否是回算
SalaryAcctRecordPO salaryAcctRecord = getSalaryAcctRecordService(user).getById(salarySend.getSalaryAccountingId());
boolean isReplenish = salaryAcctRecord != null && Objects.equals(salaryAcctRecord.getBackCalcStatus(), (NumberUtils.INTEGER_ONE));
if(isReplenish){
if(Objects.equals(salarySend.getSalaryAcctType(), NumberUtils.INTEGER_ONE)){
template = salaryTemplates.get(0).getReplenishName();
}else{
template = salaryTemplates.get(0).getName();