薪资档案、薪资核算编辑前端控制保留位数

This commit is contained in:
Harryxzy 2023-08-25 15:09:12 +08:00
parent ea1a46839d
commit e83db15bc7
3 changed files with 5 additions and 0 deletions

View File

@ -510,6 +510,7 @@ public class SalaryAcctResultBO {
.itemFormulaContent(itemFormulaContent)
// .canEdit(Objects.equals(Optional.ofNullable(salaryItemPO).map(SalaryItemPO::getUseInEmployeeSalary).orElse(0), 0))
.canEdit(true)
.pattern(salarySobItemPO.getPattern())
.build();
}

View File

@ -68,6 +68,9 @@ public class SalaryAcctResultDetailDTO {
//是否可编辑
private Boolean canEdit;
// 保留小数位数
private Integer pattern;
}
@Data

View File

@ -376,6 +376,7 @@ public class SalaryArchiveWrapper extends Service {
salaryItemMap.put("name", s.getName());
salaryItemMap.put("value", optionalItem.isPresent() ? optionalItem.get().getItemValue() : "");
salaryItemMap.put("dataType", s.getDataType());
salaryItemMap.put("pattern", s.getPattern());
salaryItems.add(salaryItemMap);
});