Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
MustangDeng 2022-05-24 13:42:25 +08:00
commit 5cd4e46b8a
2 changed files with 12 additions and 11 deletions

View File

@ -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;

View File

@ -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 {
}
/**
* 为对象的每一个属性赋值
*