Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
5cd4e46b8a
|
|
@ -87,53 +87,53 @@ public class AddUpDeductionDTO {
|
|||
* 入职日期
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@ExcelProperty(index = 6)
|
||||
@ExcelProperty(index = 6, msg = "第7列,入职日期解析错误,标准格式应为yyyy-MM-dd,例如:2022-01-01")
|
||||
@SalaryTableColumn(text = "入职日期", width = "10%", column = "hiredate")
|
||||
private String hiredate;
|
||||
|
||||
/**
|
||||
* 累计子女教育
|
||||
*/
|
||||
@ExcelProperty(index = 7)
|
||||
@ExcelProperty(index = 7, msg = "第8列,累计子女教育解析错误,请输入数字")
|
||||
@SalaryTableColumn(text = "累计子女教育", width = "10%", column = "addUpChildEducation")
|
||||
private BigDecimal addUpChildEducation;
|
||||
|
||||
/**
|
||||
* 累计继续教育
|
||||
*/
|
||||
@ExcelProperty(index = 8)
|
||||
@ExcelProperty(index = 8, msg = "第9列,累计继续教育教育解析错误,请输入数字")
|
||||
@SalaryTableColumn(text = "累计继续教育", width = "10%", column = "addUpContinuingEducation")
|
||||
private BigDecimal addUpContinuingEducation;
|
||||
|
||||
/**
|
||||
* 累计住房贷款利息
|
||||
*/
|
||||
@ExcelProperty(index = 9)
|
||||
@ExcelProperty(index = 9, msg = "第10列,累计住房贷款利息解析错误,请输入数字")
|
||||
@SalaryTableColumn(text = "累计住房贷款利息", width = "10%", column = "addUpHousingLoanInterest")
|
||||
private BigDecimal addUpHousingLoanInterest;
|
||||
|
||||
/**
|
||||
* 累计住房租金
|
||||
*/
|
||||
@ExcelProperty(index = 10)
|
||||
@ExcelProperty(index = 10, msg = "第11列,累计住房租金解析错误,请输入数字")
|
||||
@SalaryTableColumn(text = "累计住房租金", width = "10%", column = "addUpHousingRent")
|
||||
private BigDecimal addUpHousingRent;
|
||||
|
||||
/**
|
||||
* 累计赡养老人
|
||||
*/
|
||||
@ExcelProperty(index = 11)
|
||||
@ExcelProperty(index = 11, msg = "第12列,累计赡养老人解析错误,请输入数字")
|
||||
@SalaryTableColumn(text = "累计赡养老人", width = "10%", column = "addUpSupportElderly")
|
||||
private BigDecimal addUpSupportElderly;
|
||||
|
||||
/**
|
||||
* 累计大病医疗
|
||||
*/
|
||||
@ExcelProperty(index = 12)
|
||||
@ExcelProperty(index = 12, msg = "第13列,累计大病医疗解析错误,请输入数字")
|
||||
@SalaryTableColumn(text = "累计大病医疗", width = "10%", column = "addUpIllnessMedical")
|
||||
private BigDecimal addUpIllnessMedical;
|
||||
|
||||
@ExcelProperty(index = 13)
|
||||
@ExcelProperty(index = 13, msg = "第14列,累计婴幼儿照护解析错误,请输入数字")
|
||||
@SalaryTableColumn(text = "累计婴幼儿照护", width = "10%", column = "addUpInfantCare")
|
||||
private BigDecimal addUpInfantCare;
|
||||
|
||||
|
|
|
|||
|
|
@ -124,9 +124,10 @@ public class ExcelParseHelper {
|
|||
|
||||
/**
|
||||
* 将sheet数据转为map
|
||||
*
|
||||
* @param file
|
||||
* @param sheetIndex sheet下标
|
||||
* @param rowIndex 从哪行开始解析
|
||||
* @param rowIndex 从哪行开始解析
|
||||
* @return
|
||||
*/
|
||||
public static List<Map<String, Object>> parse2Map(InputStream file, int sheetIndex, int rowIndex) {
|
||||
|
|
@ -149,9 +150,9 @@ public class ExcelParseHelper {
|
|||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 将sheet数据转为map
|
||||
*
|
||||
* @param rowIndex 从哪行开始解析
|
||||
* @return
|
||||
*/
|
||||
|
|
@ -175,6 +176,7 @@ public class ExcelParseHelper {
|
|||
|
||||
/**
|
||||
* 将sheet数据转为List
|
||||
*
|
||||
* @param rowIndex 从哪行开始解析
|
||||
* @return
|
||||
*/
|
||||
|
|
@ -194,7 +196,6 @@ public class ExcelParseHelper {
|
|||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 为对象的每一个属性赋值
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue