|
@@ -270,29 +270,39 @@ public class RepairApplicationFormController {
|
|
|
List<RepairApplicationFormVO> list = repairApplicationFormService.getVOListByDTO(repairApplicationFormDTO);
|
|
|
List<ExportRepairApplicationFormVO> excelList = new ArrayList<>();
|
|
|
for (RepairApplicationFormVO vo : list) {
|
|
|
- ExportRepairApplicationFormVO excel = BeanConverterUtil.copyObjectProperties(vo, ExportRepairApplicationFormVO.class);
|
|
|
+ ExportRepairApplicationFormVO excel = BeanConverterUtil.copyObjectProperties(vo, ExportRepairApplicationFormVO.class);
|
|
|
excelList.add(excel);
|
|
|
- if(vo.getChangeRepairPlan() != null && vo.getChangeRepairPlan()){
|
|
|
+ boolean find = false;
|
|
|
+ if (vo.getChangeRepairPlan() != null && vo.getChangeRepairPlan()) {
|
|
|
+ find = true;
|
|
|
excel.setChangeRepairPlan("更新维修计划");
|
|
|
excel.setChangeRepairPlanContent(vo.getChangeRepairPlanContent());
|
|
|
}
|
|
|
- if(vo.getChangeSparePlan() != null && vo.getChangeSparePlan()){
|
|
|
+ if (vo.getChangeSparePlan() != null && vo.getChangeSparePlan()) {
|
|
|
+ find = true;
|
|
|
excel.setChangeRepairPlan("更新备件计划");
|
|
|
excel.setChangeRepairPlanContent(vo.getChangeSparePlanContent());
|
|
|
}
|
|
|
- if(vo.getUserTeach() != null && vo.getUserTeach() ){
|
|
|
+ if (vo.getUserTeach() != null && vo.getUserTeach()) {
|
|
|
+ find = true;
|
|
|
excel.setChangeRepairPlan("人员培训");
|
|
|
excel.setChangeRepairPlanContent(vo.getUserTeachContent());
|
|
|
|
|
|
}
|
|
|
- if(vo.getSbChange() != null && vo.getSbChange()){
|
|
|
+ if (vo.getSbChange() != null && vo.getSbChange()) {
|
|
|
+ find = true;
|
|
|
excel.setChangeRepairPlan("设备改造升级");
|
|
|
excel.setChangeRepairPlanContent(vo.getSbChangeContent());
|
|
|
}
|
|
|
- if(vo.getOtherChange() != null && vo.getOtherChange()){
|
|
|
+ if (vo.getOtherChange() != null && vo.getOtherChange()) {
|
|
|
+ find = true;
|
|
|
excel.setChangeRepairPlan("其他");
|
|
|
excel.setChangeRepairPlanContent(vo.getOtherChangeContent());
|
|
|
}
|
|
|
+ if (!find) {
|
|
|
+ excel.setChangeRepairPlan("无");
|
|
|
+ excel.setChangeRepairPlanContent("无");
|
|
|
+ }
|
|
|
}
|
|
|
ExcelUtil.exportResponseDict(response, ExportRepairApplicationFormVO.class, excelList, "维修工单");
|
|
|
}
|