2022-04-12 10:11:53 +08:00
|
|
|
package com.engine.salary.entity.salaryBill.dto;
|
|
|
|
|
|
|
|
|
|
import com.engine.salary.enums.salarybill.SalaryTemplateTextContentPositionEnum;
|
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
|
import lombok.Builder;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @Description: 工资单模板
|
|
|
|
|
* @Author: wangxiangzhong
|
|
|
|
|
* @Date: 2021-12-08 14:44
|
|
|
|
|
*/
|
|
|
|
|
@Data
|
|
|
|
|
@Builder
|
|
|
|
|
@NoArgsConstructor
|
|
|
|
|
@AllArgsConstructor
|
2023-04-07 14:38:38 +08:00
|
|
|
////"主题及其他设置")
|
2022-04-12 10:11:53 +08:00
|
|
|
public class SalaryTemplateShowSetDTO {
|
|
|
|
|
|
2023-04-24 14:09:27 +08:00
|
|
|
// 工资单主题")
|
2022-04-12 10:11:53 +08:00
|
|
|
private String theme;
|
|
|
|
|
|
2023-04-24 14:09:27 +08:00
|
|
|
// 工资单背景图")
|
2022-04-12 10:11:53 +08:00
|
|
|
private String background;
|
|
|
|
|
|
2023-04-24 14:09:27 +08:00
|
|
|
// 文本内容")
|
2022-04-12 10:11:53 +08:00
|
|
|
private String textContent;
|
|
|
|
|
|
2023-04-24 14:09:27 +08:00
|
|
|
// 文本内容位置")
|
2022-04-12 10:11:53 +08:00
|
|
|
private String textContentPosition;
|
|
|
|
|
|
|
|
|
|
private List<Map<String, Object>> getTextContentPositionOptions () {
|
|
|
|
|
return Arrays.stream(SalaryTemplateTextContentPositionEnum.values())
|
|
|
|
|
.map(m->
|
|
|
|
|
{
|
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
|
|
map.put("id", String.valueOf(m.getValue()));
|
|
|
|
|
map.put("content", m.getDefaultLabel());
|
|
|
|
|
return map;
|
|
|
|
|
})
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-24 14:09:27 +08:00
|
|
|
// 薪资项为空时不显示")
|
2022-04-12 10:11:53 +08:00
|
|
|
private Boolean salaryItemNullStatus;
|
|
|
|
|
|
|
|
|
|
|
2023-04-24 14:09:27 +08:00
|
|
|
// 薪资项为0时不显示")
|
2022-04-12 10:11:53 +08:00
|
|
|
private Boolean salaryItemZeroStatus;
|
2023-07-13 11:50:02 +08:00
|
|
|
|
2022-04-12 10:11:53 +08:00
|
|
|
}
|