2022-04-12 10:11:53 +08:00
|
|
|
package com.engine.salary.entity.salaryBill.param;
|
|
|
|
|
|
|
|
|
|
import com.engine.salary.exception.SalaryRunTimeException;
|
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
|
import lombok.Builder;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @Description: 工资单模板
|
|
|
|
|
*/
|
|
|
|
|
@Data
|
|
|
|
|
@Builder
|
|
|
|
|
@NoArgsConstructor
|
|
|
|
|
@AllArgsConstructor
|
2023-04-07 14:38:38 +08:00
|
|
|
////"工资单复制参数")
|
2022-04-12 10:11:53 +08:00
|
|
|
public class SalaryTemplateCopyParam {
|
|
|
|
|
|
2023-04-24 14:09:27 +08:00
|
|
|
// 主键")
|
2022-04-12 10:11:53 +08:00
|
|
|
private Long id;
|
|
|
|
|
|
2023-04-24 14:09:27 +08:00
|
|
|
// 模板名称")
|
2022-04-12 10:11:53 +08:00
|
|
|
private String name;
|
|
|
|
|
|
2024-01-23 10:52:53 +08:00
|
|
|
private Long salarySobId;
|
|
|
|
|
|
2022-04-12 10:11:53 +08:00
|
|
|
public static void checkParam(SalaryTemplateCopyParam copyParam) {
|
|
|
|
|
if (copyParam.getId() == null) {
|
|
|
|
|
throw new SalaryRunTimeException("id必选");
|
|
|
|
|
}
|
|
|
|
|
if (StringUtils.isEmpty(copyParam.getName())) {
|
|
|
|
|
throw new SalaryRunTimeException("模板名称必填");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|