|
@@ -584,8 +584,12 @@ public class MaintenanceRecordService extends ServiceImpl<MaintenanceRecordMappe
|
|
|
if (CollUtil.isNotEmpty(page.getRecords())) {
|
|
|
List<MtRecordResponse> records = page.getRecords();
|
|
|
for (MtRecordResponse mtRecord : records) {
|
|
|
- String repairDuration = getRepairDuration(mtRecord.getRepairDiff());
|
|
|
- mtRecord.setRepairDuration(repairDuration);
|
|
|
+ if (mtRecord.getRepairDiff() != null) {
|
|
|
+ String repairDuration = getRepairDuration(mtRecord.getRepairDiff());
|
|
|
+ mtRecord.setRepairDuration(repairDuration);
|
|
|
+ } else {
|
|
|
+ mtRecord.setRepairDuration("");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return page;
|