fix:添加计划状态

ck
HuangHuiKang 1 month ago
parent 6d651523c3
commit f804a95f24

@ -1279,7 +1279,7 @@ public class DeviceServiceImpl implements DeviceService {
standbyCount++; standbyCount++;
} else if ("3".equals(status)) { } else if ("3".equals(status)) {
faultCount++; faultCount++;
} else { } else if ("0".equals(status)){
offlineCount++; offlineCount++;
} }
} }

@ -70,7 +70,8 @@ public class TaskOneClickScheduleRespVO {
@Schema(description = "产品名称", example = "汽车内饰件A") @Schema(description = "产品名称", example = "汽车内饰件A")
private String productName; private String productName;
@Schema(description = "计划状态", example = "")
private Integer planStatus;
@Schema(description = "计划开始时间(yyyy-MM-dd HH:mm:ss)") @Schema(description = "计划开始时间(yyyy-MM-dd HH:mm:ss)")
private String planStartTimeStr; private String planStartTimeStr;

@ -675,7 +675,7 @@ public class TaskServiceImpl implements TaskService {
deliveryDate = taskDO.getDeliveryDate().toLocalDate(); deliveryDate = taskDO.getDeliveryDate().toLocalDate();
} }
h.setDeliveryDateStr(deliveryDate == null ? null : deliveryDate.format(DATE_FMT)); h.setDeliveryDateStr(deliveryDate == null ? null : deliveryDate.format(DATE_FMT));
h.setPlanStatus(history.getStatus());
historyItems.add(h); historyItems.add(h);
} }

Loading…
Cancel
Save