weaver-hrm-salary/src/com/engine/salary/entity/datacollection/param/AttendQuoteDataSyncParam.java

51 lines
1.4 KiB
Java
Raw Normal View History

2022-03-11 16:19:47 +08:00
package com.engine.salary.entity.datacollection.param;
2022-03-16 14:29:02 +08:00
import com.engine.salary.exception.SalaryRunTimeException;
import com.engine.salary.util.SalaryI18nUtil;
2022-03-11 16:19:47 +08:00
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
2022-03-16 14:29:02 +08:00
import org.apache.commons.lang3.StringUtils;
2022-03-11 16:19:47 +08:00
import java.util.Collection;
/**
2022-04-21 14:15:56 +08:00
* 数据采集-考勤引用数据同步参数
* <p>Copyright: Copyright (c) 2022</p>
* <p>Company: 泛微软件</p>
*
* @author qiantao
* @version 1.0
**/
2022-03-11 16:19:47 +08:00
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AttendQuoteDataSyncParam {
2022-04-21 14:15:56 +08:00
//薪资所属月
2022-03-11 16:19:47 +08:00
private String salaryYearMonth;
2022-04-21 14:15:56 +08:00
//关联账套id
2022-03-11 16:19:47 +08:00
private Long salarySobId;
2022-04-21 14:15:56 +08:00
//账套外人员主键id
2022-03-11 16:19:47 +08:00
private Collection<Long> employeeIds;
2022-04-21 14:15:56 +08:00
//备注
2022-03-11 16:19:47 +08:00
private String description;
2022-03-16 14:29:02 +08:00
public static void checkParam(AttendQuoteDataSyncParam saveParam) {
if (saveParam == null){
throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(100294, "参数异常"));
}
if (StringUtils.isEmpty(saveParam.getSalaryYearMonth())) {
throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(100294, "薪资所属月必传"));
}
if (saveParam.getSalarySobId() == null) {
throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(100295, "薪资账套必传"));
}
}
2022-03-11 16:19:47 +08:00
}