Commit a166cd6f authored by fangxinjiang's avatar fangxinjiang

公积金导入批量办理

parent f9a6b095
......@@ -551,5 +551,8 @@ public interface ErrorCodes {
* 公积金办理:无办理权限或无可需要办理的公积金数据
*/
String FUND_IMPORT_HANDLE_NOT_EXITS = "fund.import.handle.not.exits";
/**
* 公积金办理:办理失败,失败原因必填
*/
String FUND_IMPORT_HANDLE_REASON_NOT_EMPY = "fund_import_handle_reason_not_empty";
}
package com.yifu.cloud.plus.v1.yifu.common.core.util;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
import java.util.HashSet;
......@@ -10,7 +12,7 @@ import java.util.Set;
* @author fang
*/
@Data
public class ErrorMessage implements Serializable {
public class ErrorMessage<T> implements Serializable {
/**
* 行数或INDEX
*/
......@@ -29,18 +31,35 @@ public class ErrorMessage implements Serializable {
* 错误信息
*/
private String message;
/**
* 数据
*/
private T data;
public ErrorMessage(Integer lineNum, String message) {
this.lineNum = lineNum;
this.color = "red";
this.message = message;
}
public ErrorMessage(Integer lineNum, String message, T t) {
this.lineNum = lineNum;
this.color = "red";
this.message = message;
this.data = t;
}
public ErrorMessage(Integer lineNum, String message, String color) {
this.lineNum = lineNum;
this.color = color;
this.message = message;
}
public ErrorMessage(Integer lineNum, String message, String color, T t) {
this.lineNum = lineNum;
this.color = color;
this.message = message;
this.data = t;
}
public ErrorMessage(Integer lineNum, String message, String color, String name) {
this.lineNum = lineNum;
this.color = color;
......
......@@ -216,6 +216,8 @@ fund.hold.is.empty=\u516C\u79EF\u91D1\u6237\u4E0D\u80FD\u4E3A\u7A7A
fund.import.handle.not.exits=\u65E0\u529E\u7406\u6743\u9650\u6216\u65E0\u53EF\u9700\u8981\u529E\u7406\u7684\u516C\u79EF\u91D1\u6570\u636E
fund_import_handle_reason_not_empty=\u516C\u79EF\u91D1\u529E\u7406\uFF1A\u529E\u7406\u5931\u8D25\uFF0C\u5931\u8D25\u7C7B\u578B\u5FC5\u586B
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment