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;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @Description: 数据采集-考勤引用数据
|
|
|
|
|
* @Author: wangxiangzhong
|
|
|
|
|
* @Date: 2021-11-17 14:37
|
|
|
|
|
*/
|
|
|
|
|
@Data
|
|
|
|
|
@Builder
|
|
|
|
|
@NoArgsConstructor
|
|
|
|
|
@AllArgsConstructor
|
|
|
|
|
//数据采集-考勤引用数据同步参数")
|
|
|
|
|
public class AttendQuoteDataSyncParam {
|
|
|
|
|
|
|
|
|
|
//薪资所属月")
|
|
|
|
|
private String salaryYearMonth;
|
|
|
|
|
|
|
|
|
|
//关联账套id")
|
|
|
|
|
private Long salarySobId;
|
|
|
|
|
|
|
|
|
|
//账套外人员主键id")
|
|
|
|
|
private Collection<Long> employeeIds;
|
|
|
|
|
|
|
|
|
|
//备注")
|
|
|
|
|
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
|
|
|
}
|