Commit 20e3ea3e authored by xixinzhao's avatar xixinzhao

人员导出

parent 75be00e5
...@@ -745,7 +745,7 @@ public class ExcelServiceImpl { ...@@ -745,7 +745,7 @@ public class ExcelServiceImpl {
} }
} }
} }
if ("birthdayTime".equals(key)) { if ("birthdayTime".equals(key) && !ObjectUtils.isEmpty(value)) {
SimpleDateFormat ft = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat ft = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try { try {
String date = ft.format(value); String date = ft.format(value);
...@@ -754,6 +754,11 @@ public class ExcelServiceImpl { ...@@ -754,6 +754,11 @@ public class ExcelServiceImpl {
logger.error("日期转换失败"); logger.error("日期转换失败");
} }
} }
if ("peopleType".equals(key)) {
dynamicFormInstanceDto.setFieldValue("1");
dynamicFormInstanceDto.setFieldValueLabel("非消防人员");
orgUsrExcelDto.setPeopleType("1");
}
DynamicFormInstance dynamicFormInstance = new DynamicFormInstance(); DynamicFormInstance dynamicFormInstance = new DynamicFormInstance();
BeanUtils.copyProperties(dynamicFormInstanceDto, dynamicFormInstance); BeanUtils.copyProperties(dynamicFormInstanceDto, dynamicFormInstance);
dynamicFormInstancelist.add(dynamicFormInstance); dynamicFormInstancelist.add(dynamicFormInstance);
......
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